Documentation ¶
Index ¶
Constants ¶
View Source
const ( IRCWebSocketURL = "wss://irc-ws.chat.twitch.tv:443" PubSubURL = "wss://pubsub-edge.twitch.tv" OAuth2ValidateURL = "https://id.twitch.tv/oauth2/validate" EventSubSubscriptionsURL = "https://api.twitch.tv/helix/eventsub/subscriptions" )
Variables ¶
This section is empty.
Functions ¶
func QueryOAuth2TokenURL ¶
func QuerySubscriptionsURL ¶
func QueryUsersURL ¶
Types ¶
type OAuth2ValidateResponse ¶
type OAuth2ValidateResponse struct { ClientID string `json:"client_id"` Login string `json:"login"` Scopes []string `json:"scopes"` UserID string `json:"user_id"` ExpiresIn int `json:"expires_in"` }
func OAuth2Validate ¶
func OAuth2Validate(ctx context.Context, token string) (OAuth2ValidateResponse, error)
Click to show internal directories.
Click to hide internal directories.