From 76e72e81480802264b794d2d2a99e43094903359 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 27 Jul 2023 12:38:50 +0200 Subject: [PATCH] [core] Use app-access-tokens for stream info Signed-off-by: Knut Ahlers --- pkg/twitch/streams.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/twitch/streams.go b/pkg/twitch/streams.go index bdd6b26..eef0360 100644 --- a/pkg/twitch/streams.go +++ b/pkg/twitch/streams.go @@ -44,7 +44,7 @@ func (c *Client) GetCurrentStreamInfo(username string) (*StreamInfo, error) { } if err := c.Request(ClientRequestOpts{ - AuthType: AuthTypeBearerToken, + AuthType: AuthTypeAppAccessToken, Context: context.Background(), Method: http.MethodGet, OKStatus: http.StatusOK, @@ -85,7 +85,7 @@ func (c *Client) GetRecentStreamInfo(username string) (string, string, error) { } if err := c.Request(ClientRequestOpts{ - AuthType: AuthTypeBearerToken, + AuthType: AuthTypeAppAccessToken, Context: context.Background(), Method: http.MethodGet, OKStatus: http.StatusOK, @@ -120,7 +120,7 @@ func (c *Client) HasLiveStream(username string) (bool, error) { } if err := c.Request(ClientRequestOpts{ - AuthType: AuthTypeBearerToken, + AuthType: AuthTypeAppAccessToken, Context: context.Background(), Method: http.MethodGet, OKStatus: http.StatusOK,