Documentation
¶
Index ¶
- type TwitchAPI
- func (api *TwitchAPI) CreateAuthLink(chatID int64, state string) string
- func (api *TwitchAPI) DeleteEventSub(ctx context.Context, eventID string) error
- func (api *TwitchAPI) GetAccountClaims(token *twitchmodels.UserAccessToken) (twitchmodels.DeafultAccountClaims, error)
- func (api *TwitchAPI) GetAccountFollows(twitchID string, userAccessToken *twitchmodels.UserAccessToken) ([]twitchmodels.FollowInfo, error)
- func (api *TwitchAPI) GetAllSubs(ctx context.Context) ([]string, error)
- func (api *TwitchAPI) GetStreamInfo(id string) (twitchmodels.StreamInfo, error)
- func (api *TwitchAPI) GetUserAccessToken(code string) (twitchmodels.UserAccessToken, error)
- func (api *TwitchAPI) RefreshUserAccessToken(ctx context.Context, refreshToken string) (twitchmodels.UserAccessToken, error)
- func (api *TwitchAPI) SubscribeToTwitchEvent(ctx context.Context, broadcasterID string) (string, error)
- func (api *TwitchAPI) UpdateOAuthToken()
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 (*TwitchAPI) CreateAuthLink ¶
func (*TwitchAPI) DeleteEventSub ¶
func (*TwitchAPI) GetAccountClaims ¶
func (api *TwitchAPI) GetAccountClaims(token *twitchmodels.UserAccessToken) (twitchmodels.DeafultAccountClaims, error)
func (*TwitchAPI) GetAccountFollows ¶
func (api *TwitchAPI) GetAccountFollows(twitchID string, userAccessToken *twitchmodels.UserAccessToken) ([]twitchmodels.FollowInfo, error)
func (*TwitchAPI) GetAllSubs ¶
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 (*TwitchAPI) UpdateOAuthToken ¶
func (api *TwitchAPI) UpdateOAuthToken()
Click to show internal directories.
Click to hide internal directories.