twitch

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 5 Imported by: 0

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 QueryOAuth2TokenURL(values url.Values) string

func QuerySubscriptionsURL

func QuerySubscriptionsURL(values url.Values) string

func QueryUsersURL

func QueryUsersURL(values url.Values) string

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL