twitch

package
v0.0.0-...-102fae3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TwitchAPI

type TwitchAPI struct {
	OAuth twitchmodels.OAuthResponse
	// contains filtered or unexported fields
}

func NewTiwtchAPI

func NewTiwtchAPI(config *config.Config) *TwitchAPI
func (api *TwitchAPI) CreateAuthLink(chatID int64, state string) string

func (*TwitchAPI) DeleteEventSub

func (api *TwitchAPI) DeleteEventSub(ctx context.Context, eventID string) error

func (*TwitchAPI) GetAccountClaims

func (*TwitchAPI) GetAccountFollows

func (api *TwitchAPI) GetAccountFollows(twitchID string, userAccessToken *twitchmodels.UserAccessToken) ([]twitchmodels.FollowInfo, error)

func (*TwitchAPI) GetAllSubs

func (api *TwitchAPI) GetAllSubs(ctx context.Context) ([]string, error)

func (*TwitchAPI) GetStreamInfo

func (api *TwitchAPI) GetStreamInfo(id string) (twitchmodels.StreamInfo, error)

func (*TwitchAPI) GetUserAccessToken

func (api *TwitchAPI) GetUserAccessToken(code string) (twitchmodels.UserAccessToken, error)

func (*TwitchAPI) RefreshUserAccessToken

func (api *TwitchAPI) RefreshUserAccessToken(ctx context.Context, refreshToken string) (twitchmodels.UserAccessToken, error)

func (*TwitchAPI) SubscribeToTwitchEvent

func (api *TwitchAPI) SubscribeToTwitchEvent(ctx context.Context, broadcasterID string) (string, error)

func (*TwitchAPI) UpdateOAuthToken

func (api *TwitchAPI) UpdateOAuthToken()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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