Versions in this module Expand all Collapse all v2 v2.5.3 Jun 11, 2022 Changes in this version type Client + func (c *Client) UpdateRedemptionStatus(params *UpdateRedemptionStatusParams) (*RedemptionResponse, error) + type UpdateRedemptionStatusParams struct + BroadcasterID string + ID string + RewardId string + Status string v2.5.2 Jun 11, 2022 Changes in this version + const ALREADY_CLAIMED + const AuthBaseURL + const DefaultAPIBaseURL + const EXPIRED + const EventSubExtensionBitsTransactionCreate + const EventSubStatusAuthorizationRevoked + const EventSubStatusEnabled + const EventSubStatusFailed + const EventSubStatusNotificationFailuresExceeded + const EventSubStatusPending + const EventSubStatusUserRemoved + const EventSubTypeChannelBan + const EventSubTypeChannelCheer + const EventSubTypeChannelFollow + const EventSubTypeChannelGoalBegin + const EventSubTypeChannelGoalEnd + const EventSubTypeChannelGoalProgress + const EventSubTypeChannelPointsCustomRewardAdd + const EventSubTypeChannelPointsCustomRewardRedemptionAdd + const EventSubTypeChannelPointsCustomRewardRedemptionUpdate + const EventSubTypeChannelPointsCustomRewardRemove + const EventSubTypeChannelPointsCustomRewardUpdate + const EventSubTypeChannelPollBegin + const EventSubTypeChannelPollEnd + const EventSubTypeChannelPollProgress + const EventSubTypeChannelPredictionBegin + const EventSubTypeChannelPredictionEnd + const EventSubTypeChannelPredictionLock + const EventSubTypeChannelPredictionProgress + const EventSubTypeChannelRaid + const EventSubTypeChannelSubscription + const EventSubTypeChannelSubscriptionEnd + const EventSubTypeChannelSubscriptionGift + const EventSubTypeChannelSubscriptionMessage + const EventSubTypeChannelUnban + const EventSubTypeChannelUpdate + const EventSubTypeHypeTrainBegin + const EventSubTypeHypeTrainEnd + const EventSubTypeHypeTrainProgress + const EventSubTypeModeratorAdd + const EventSubTypeModeratorRemove + const EventSubTypeStreamOffline + const EventSubTypeStreamOnline + const EventSubTypeUserAuthorizationRevoke + const EventSubTypeUserUpdate + const INACTIVE + const INCORRECT_FORMAT + const INTERNAL_ERROR + const NOT_FOUND + const SUCCESSFULLY_REDEEMED + const UNUSED + const USER_NOT_ELIGIBLE + var ExtensionAnalyticsRegexp = regexp.MustCompile("helix/analytics\\?extension_id=(?P<extension_id>\\w+)>") + var GameAnalyticsRegexp = regexp.MustCompile("helix/analytics\\?game_id=(?P<game_id>\\w+)>") + var StreamChangedRegexp = regexp.MustCompile("helix/streams\\?user_id=(?P<user_id>\\d+)>") + var UserChangedRegexp = regexp.MustCompile("helix/users\\?id=(?P<id>\\d+)>") + var UserFollowsRegexp = regexp.MustCompile(...) + func GetWebhookTopicValuesFromRequest(req *http.Request, topic WebhookTopic) map[string]string + func VerifyEventSubNotification(secret string, header http.Header, message string) bool + type AccessCredentials struct + AccessToken string + ExpiresIn int + RefreshToken string + Scopes []string + type AdDetails struct + Length AdLengthEnum + Message string + RetryAfter int + type AdLengthEnum int + const AdLen120 + const AdLen150 + const AdLen180 + const AdLen30 + const AdLen60 + const AdLen90 + type AppAccessTokenResponse struct + Data AccessCredentials + type AuthorizationURLParams struct + ForceVerify bool + ResponseType string + Scopes []string + State string + type BadgeVersion struct + ID string + ImageUrl1x string + ImageUrl2x string + ImageUrl4x string + type Ban struct + ExpiresAt Time + UserID string + UserLogin string + UserName string + type BannedUsersParams struct + After string + Before string + BroadcasterID string + UserID string + type BannedUsersResponse struct + Data ManyBans + type BitsLeaderboardParams struct + Count int + Period string + StartedAt time.Time + UserID string + type BitsLeaderboardResponse struct + Data ManyUserBitTotals + type BlockUserParams struct + Reason string + SourceContext string + TargetUserID string + type BlockUserResponse struct + type Channel struct + BroadcasterLogin string + DisplayName string + GameID string + GameName string + ID string + IsLive bool + Language string + StartedAt Time + TagIDs []string + ThumbnailURL string + Title string + type ChannelCustomReward struct + BroadcasterID string + BroadcasterLogin string + BroadcasterName string + CooldownExpiresAt string + Cost int + DefaultImage RewardImage + GlobalCooldownSetting GlobalCooldownSettings + ID string + Image RewardImage + IsEnabled bool + IsInStock bool + IsPaused bool + IsUserInputRequired bool + MaxPerStreamSetting MaxPerStreamSettings + MaxPerUserPerStreamSetting MaxPerUserPerStreamSettings + Prompt string + RedemptionsRedeemedCurrentStream int + ShouldRedemptionsSkipRequestQueue bool + Title string + type ChannelCustomRewardResponse struct + Data ManyChannelCustomRewards + type ChannelCustomRewardsParams struct + BackgroundColor string + BroadcasterID string + Cost int + GlobalCooldownSeconds int + IsEnabled bool + IsGlobalCooldownEnabled bool + IsMaxPerStreamEnabled bool + IsMaxPerUserPerStreamEnabled bool + IsUserInputRequired bool + MaxPerStream int + MaxPerUserPerStream int + Prompt string + ShouldRedemptionsSkipRequestQueue bool + Title string + type ChannelEditor struct + CreatedAt Time + UserID string + UserName string + type ChannelEditorsParams struct + BroadcasterID string + type ChannelEditorsResponse struct + Data ManyChannelEditors + type ChannelInformation struct + BroadcasterID string + BroadcasterLanguage string + BroadcasterName string + Delay int + GameID string + GameName string + Title string + type ChatBadge struct + SetID string + Versions []BadgeVersion + type CheermoteTierImages struct + Dark TierImageTypes + Light TierImageTypes + type CheermoteTiers struct + CanCheer bool + Color string + ID string + Images CheermoteTierImages + MinBits uint + ShowInBitsCard bool + type Cheermotes struct + IsCharitable bool + LastUpdated Time + Order uint + Prefix string + Tiers []CheermoteTiers + Type string + type CheermotesParams struct + BroadcasterID string + type CheermotesResponse struct + Data ManyCheermotes + type Client struct + func NewClient(options *Options) (*Client, error) + func (c *Client) BlockUser(params *BlockUserParams) (*BlockUserResponse, error) + func (c *Client) CheckUserSubscription(params *UserSubscriptionsParams) (*UserSubscriptionResponse, error) + func (c *Client) CreateClip(params *CreateClipParams) (*CreateClipResponse, error) + func (c *Client) CreateCustomReward(params *ChannelCustomRewardsParams) (*ChannelCustomRewardResponse, error) + func (c *Client) CreateEntitlementsUploadURL(manifestID, entitlementType string) (*EntitlementsUploadResponse, error) + func (c *Client) CreateEventSubSubscription(payload *EventSubSubscription) (*EventSubSubscriptionsResponse, error) + func (c *Client) CreateExtensionSecret(params *ExtensionSecretCreationParams) (*ExtensionSecretCreationResponse, error) + func (c *Client) CreatePoll(params *CreatePollParams) (*PollsResponse, error) + func (c *Client) CreatePrediction(params *CreatePredictionParams) (*PredictionsResponse, error) + func (c *Client) CreateStreamMarker(params *CreateStreamMarkerParams) (*CreateStreamMarkerResponse, error) + func (c *Client) DeleteCustomRewards(params *DeleteCustomRewardsParams) (*DeleteCustomRewardsResponse, error) + func (c *Client) DeleteVideos(params *DeleteVideosParams) (*DeleteVideosResponse, error) + func (c *Client) EditChannelInformation(params *EditChannelInformationParams) (*EditChannelInformationResponse, error) + func (c *Client) EndPoll(params *EndPollParams) (*PollsResponse, error) + func (c *Client) EndPrediction(params *EndPredictionParams) (*PredictionsResponse, error) + func (c *Client) ExtensionCreateClaims(params *ExtensionCreateClaimsParams) (*TwitchJWTClaims, error) + func (c *Client) ExtensionJWTSign(claims *TwitchJWTClaims) (tokenString string, err error) + func (c *Client) ExtensionJWTVerify(token string) (claims *TwitchJWTClaims, err error) + func (c *Client) FormBroadcastSendPubSubPermissions() *PubSubPermissions + func (c *Client) FormGenericPubSubPermissions() *PubSubPermissions + func (c *Client) FormGlobalSendPubSubPermissions() *PubSubPermissions + func (c *Client) FormWhisperSendPubSubPermissions(opaqueId string) *PubSubPermissions + func (c *Client) GetAppAccessToken() string + func (c *Client) GetAuthorizationURL(params *AuthorizationURLParams) string + func (c *Client) GetBannedUsers(params *BannedUsersParams) (*BannedUsersResponse, error) + func (c *Client) GetBitsLeaderboard(params *BitsLeaderboardParams) (*BitsLeaderboardResponse, error) + func (c *Client) GetChannelChatBadges(params *GetChatBadgeParams) (*GetChatBadgeResponse, error) + func (c *Client) GetChannelEditors(params *ChannelEditorsParams) (*ChannelEditorsResponse, error) + func (c *Client) GetChannelEmotes(params *GetChannelEmotesParams) (*GetChannelEmotesResponse, error) + func (c *Client) GetChannelInformation(params *GetChannelInformationParams) (*GetChannelInformationResponse, error) + func (c *Client) GetCheermotes(params *CheermotesParams) (*CheermotesResponse, error) + func (c *Client) GetClips(params *ClipsParams) (*ClipsResponse, error) + func (c *Client) GetCreatorGoals(payload *GetCreatorGoalsParams) (*CreatorGoalsResponse, error) + func (c *Client) GetCustomRewardRedemption(params *GetCustomRewardsRedemptionParams) (*RedemptionResponse, error) + func (c *Client) GetCustomRewards(params *GetCustomRewardsParams) (*ChannelCustomRewardResponse, error) + func (c *Client) GetDropsEntitlements(params *GetDropEntitlementsParams) (*GetDropsEntitlementsResponse, error) + func (c *Client) GetEmoteSets(params *GetEmoteSetsParams) (*GetEmoteSetsResponse, error) + func (c *Client) GetEntitlementCodeStatus(params *CodesParams) (*CodeResponse, error) + func (c *Client) GetEventSubSubscriptions(params *EventSubSubscriptionsParams) (*EventSubSubscriptionsResponse, error) + func (c *Client) GetExtensionAnalytics(params *ExtensionAnalyticsParams) (*ExtensionAnalyticsResponse, error) + func (c *Client) GetExtensionConfigurationSegment(params *ExtensionGetConfigurationParams) (*ExtensionGetConfigurationSegmentResponse, error) + func (c *Client) GetExtensionLiveChannels(params *ExtensionLiveChannelsParams) (*ExtensionLiveChannelsResponse, error) + func (c *Client) GetExtensionSecrets(params *GetExtensionSecretParams) (*GetExtensionSecretResponse, error) + func (c *Client) GetExtensionSignedJWTToken() string + func (c *Client) GetExtensionTransactions(params *ExtensionTransactionsParams) (*ExtensionTransactionsResponse, error) + func (c *Client) GetFollowedStream(params *FollowedStreamsParams) (*StreamsResponse, error) + func (c *Client) GetGameAnalytics(params *GameAnalyticsParams) (*GameAnalyticsResponse, error) + func (c *Client) GetGames(params *GamesParams) (*GamesResponse, error) + func (c *Client) GetGlobalChatBadges() (*GetChatBadgeResponse, error) + func (c *Client) GetGlobalEmotes() (*GetChannelEmotesResponse, error) + func (c *Client) GetHypeTrainEvents(params *HypeTrainEventsParams) (*HypeTrainEventsResponse, error) + func (c *Client) GetPolls(params *PollsParams) (*PollsResponse, error) + func (c *Client) GetPredictions(params *PredictionsParams) (*PredictionsResponse, error) + func (c *Client) GetStreamKey(params *StreamKeyParams) (*StreamKeysResponse, error) + func (c *Client) GetStreamMarkers(params *StreamMarkersParams) (*StreamMarkersResponse, error) + func (c *Client) GetStreams(params *StreamsParams) (*StreamsResponse, error) + func (c *Client) GetSubscriptions(params *SubscriptionsParams) (*SubscriptionsResponse, error) + func (c *Client) GetTopGames(params *TopGamesParams) (*TopGamesResponse, error) + func (c *Client) GetUserAccessToken() string + func (c *Client) GetUserActiveExtensions(params *UserActiveExtensionsParams) (*UserActiveExtensionsResponse, error) + func (c *Client) GetUserExtensions() (*UserExtensionsResponse, error) + func (c *Client) GetUsers(params *UsersParams) (*UsersResponse, error) + func (c *Client) GetUsersBlocked(params *UsersBlockedParams) (*UsersBlockedResponse, error) + func (c *Client) GetUsersFollows(params *UsersFollowsParams) (*UsersFollowsResponse, error) + func (c *Client) GetVideos(params *VideosParams) (*VideosResponse, error) + func (c *Client) GetWebhookSubscriptions(params *WebhookSubscriptionsParams) (*WebhookSubscriptionsResponse, error) + func (c *Client) ModerateHeldMessage(params *HeldMessageModerationParams) (*HeldMessageModerationResponse, error) + func (c *Client) PostWebhookSubscription(payload *WebhookSubscriptionPayload) (*WebhookSubscriptionResponse, error) + func (c *Client) RedeemEntitlementCode(params *CodesParams) (*CodeResponse, error) + func (c *Client) RefreshUserAccessToken(refreshToken string) (*RefreshTokenResponse, error) + func (c *Client) RemoveEventSubSubscription(id string) (*RemoveEventSubSubscriptionParamsResponse, error) + func (c *Client) RequestAppAccessToken(scopes []string) (*AppAccessTokenResponse, error) + func (c *Client) RequestUserAccessToken(code string) (*UserAccessTokenResponse, error) + func (c *Client) RevokeUserAccessToken(accessToken string) (*RevokeAccessTokenResponse, error) + func (c *Client) SearchChannels(params *SearchChannelsParams) (*SearchChannelsResponse, error) + func (c *Client) SendExtensionChatMessage(params *ExtensionSendChatMessageParams) (*ExtensionSendChatMessageResponse, error) + func (c *Client) SendExtensionPubSubMessage(params *ExtensionSendPubSubMessageParams) (*ExtensionSendPubSubMessageResponse, error) + func (c *Client) SetAppAccessToken(accessToken string) + func (c *Client) SetExtensionRequiredConfiguration(params *ExtensionSetRequiredConfigurationParams) (*ExtensionSetRequiredConfigurationResponse, error) + func (c *Client) SetExtensionSegmentConfig(params *ExtensionSetConfigurationParams) (*ExtensionSetConfigurationResponse, error) + func (c *Client) SetExtensionSignedJWTToken(jwt string) + func (c *Client) SetRedirectURI(uri string) + func (c *Client) SetUserAccessToken(accessToken string) + func (c *Client) SetUserAgent(userAgent string) + func (c *Client) StartCommercial(params *StartCommercialParams) (*StartCommercialResponse, error) + func (c *Client) UnblockUser(params *UnblockUserParams) (*BlockUserResponse, error) + func (c *Client) UpdateCustomRewards(params *UpdateCustomRewardsParams) (*ChannelCustomRewardResponse, error) + func (c *Client) UpdateDropsEntitlements(params *UpdateDropsEntitlementsParams) (*UpdateDropsEntitlementsResponse, error) + func (c *Client) UpdateUser(params *UpdateUserParams) (*UsersResponse, error) + func (c *Client) UpdateUserExtensions(payload *UpdateUserExtensionsPayload) (*UserActiveExtensionsResponse, error) + func (c *Client) ValidateToken(accessToken string) (bool, *ValidateTokenResponse, error) + type Clip struct + BroadcasterID string + BroadcasterName string + CreatedAt string + CreatorID string + CreatorName string + Duration float64 + EmbedURL string + GameID string + ID string + Language string + ThumbnailURL string + Title string + URL string + VideoID string + ViewCount int + type ClipEditURL struct + EditURL string + ID string + type ClipsParams struct + After string + Before string + BroadcasterID string + EndedAt Time + First int + GameID string + IDs []string + StartedAt Time + type ClipsResponse struct + Data ManyClips + type CodeResponse struct + Data ManyCodes + type CodeStatus struct + Code string + Status EntitlementCodeStatus + type CodesParams struct + Codes []string + UserID string + type CreateClipParams struct + BroadcasterID string + HasDelay bool + type CreateClipResponse struct + Data ManyClipEditURLs + func (ccr *CreateClipResponse) GetClipsCreationRateLimit() int + func (ccr *CreateClipResponse) GetClipsCreationRateLimitRemaining() int + type CreatePollParams struct + BitsPerVote int + BitsVotingEnabled bool + BroadcasterID string + ChannelPointsPerVote int + ChannelPointsVotingEnabled bool + Choices []PollChoiceParam + Duration int + Title string + type CreatePredictionParams struct + BroadcasterID string + Outcomes []PredictionChoiceParam + PredictionWindow int + Title string + type CreateStreamMarker struct + CreatedAt Time + Description string + ID string + PositionSeconds int + type CreateStreamMarkerParams struct + Description string + UserID string + type CreateStreamMarkerResponse struct + Data ManyCreateStreamMarkers + type CreatorGoalsResponse struct + Data ManyGoals + type CustomRewardRedemption struct + BroadcasterID string + BroadcasterLogin string + BroadcasterName string + ID string + RedeemedAt string + Reward Reward + Status string + UserID string + UserInput string + UserLogin *string + UserName string + type DateRange struct + EndedAt Time + StartedAt Time + type DeleteCustomRewardsParams struct + BroadcasterID string + ID string + type DeleteCustomRewardsResponse struct + type DeleteVideosParams struct + IDs []string + type DeleteVideosResponse struct + type EditChannelInformationParams struct + BroadcasterID string + BroadcasterLanguage string + Delay int + GameID string + Title string + type EditChannelInformationResponse struct + type Emote struct + EmoteSetId string + EmoteType string + ID string + Images EmoteImage + Name string + Tier string + type EmoteImage struct + Url1x string + Url2x string + Url4x string + type EmoteWithOwner struct + OwnerID string + type EndPollParams struct + BroadcasterID string + ID string + Status string + type EndPredictionParams struct + BroadcasterID string + ID string + Status string + WinningOutcomeID string + type Entitlement struct + BenefitID string + FulfillmentStatus string + GameID string + ID string + Timestamp Time + UpdatedAt Time + UserID string + type EntitlementCodeStatus string + type EntitlementsUploadResponse struct + Data ManyEntitlementsUploadURLs + type EntitlementsUploadURL struct + URL string + type EventSubBitVoting struct + AmountPerVote int + IsEnabled bool + type EventSubChannelBanEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + EndsAt Time + IsPermanent bool + ModeratorUserID string + ModeratorUserLogin string + ModeratorUserName string + Reason string + UserID string + UserLogin string + UserName string + type EventSubChannelCheerEvent struct + Bits int + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + IsAnonymous bool + Message string + UserID string + UserLogin string + UserName string + type EventSubChannelFollowEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + UserID string + UserLogin string + UserName string + type EventSubChannelGoalEndEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + CurrentAmount int + Description string + EndedAt Time + ID string + IsAchieved bool + StartedAt Time + TargetAmount int + Type string + type EventSubChannelGoalProgressEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + CurrentAmount int + Description string + ID string + StartedAt Time + TargetAmount int + Type string + type EventSubChannelGoalStartEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + CurrentAmount int + Description string + ID string + StartedAt Time + TargetAmount int + Type string + type EventSubChannelPointsCustomRewardEvent struct + BackgroundColor string + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + CooldownExpiresAt Time + Cost int + DefaultImage EventSubImage + GlobalCooldown EventSubGlobalCooldown + ID string + Image EventSubImage + IsEnabled bool + IsInStock bool + IsPaused bool + IsUserInputRequired bool + MaxPerStream EventSubMaxPerStream + MaxPerUserPerStream EventSubMaxPerStream + Prompt string + RedemptionsRedeemedCurrentStream int + ShouldRedemptionsSkipRequestQueue bool + Title string + type EventSubChannelPointsCustomRewardRedemptionEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + ID string + RedeemedAt Time + Reward EventSubReward + Status string + UserID string + UserInput string + UserLogin string + UserName string + type EventSubChannelPointsVoting = EventSubBitVoting + type EventSubChannelPollBeginEvent struct + BitsVoting EventSubBitVoting + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + ChannelPointsVoting EventSubChannelPointsVoting + Choices []PollChoice + EndsAt Time + ID string + StartedAt Time + Title string + type EventSubChannelPollEndEvent struct + BitsVoting EventSubBitVoting + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + ChannelPointsVoting EventSubChannelPointsVoting + Choices []PollChoice + EndedAt Time + ID string + StartedAt Time + Status string + Title string + type EventSubChannelPollProgressEvent = EventSubChannelPollBeginEvent + type EventSubChannelPredictionBeginEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + ID string + LocksAt Time + Outcomes []EventSubOutcome + StartedAt Time + Title string + type EventSubChannelPredictionEndEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + EndedAt Time + ID string + Outcomes []EventSubOutcome + StartedAt Time + Status string + Title string + WinningOutcomeID string + type EventSubChannelPredictionLockEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + ID string + LockedAt Time + Outcomes []EventSubOutcome + StartedAt Time + Status string + Title string + WinningOutcomeID string + type EventSubChannelPredictionProgressEvent = EventSubChannelPredictionBeginEvent + type EventSubChannelRaidEvent struct + FromBroadcasterUserID string + FromBroadcasterUserLogin string + FromBroadcasterUserName string + ToBroadcasterUserID string + ToBroadcasterUserLogin string + ToBroadcasterUserName string + Viewers int + type EventSubChannelSubscribeEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + IsGift bool + Tier string + UserID string + UserLogin string + UserName string + type EventSubChannelSubscriptionGiftEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + CumulativeTotal int + IsAnonymous bool + Tier string + Total int + UserID string + UserLogin string + UserName string + type EventSubChannelSubscriptionMessageEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + CumulativeMonths int + DurationMonths int + Message EventSubMessage + StreakMonths int + Tier string + UserID string + UserLogin string + UserName string + type EventSubChannelUnbanEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + ModeratorUserID string + ModeratorUserLogin string + ModeratorUserName string + UserID string + UserLogin string + UserName string + type EventSubChannelUpdateEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + CategoryID string + CategoryName string + IsMature bool + Language string + Title string + type EventSubCondition struct + BroadcasterUserID string + ClientID string + ExtensionClientID string + FromBroadcasterUserID string + RewardID string + ToBroadcasterUserID string + UserID string + type EventSubContribution struct + Total int64 + Type string + UserID string + UserLogin string + UserName string + type EventSubEmote struct + Begin int + End int + ID string + type EventSubExtensionBitsTransactionCreateEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + ExtensionClientID string + ID string + Product EventSubProduct + UserID string + UserLogin string + UserName string + type EventSubGlobalCooldown struct + IsEnabled bool + Seconds int + type EventSubHypeTrainBeginEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + ExpiresAt Time + Goal int + LastContribution EventSubContribution + Progress int + StartedAt Time + TopContributions []EventSubContribution + Total int + type EventSubHypeTrainEndEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + CooldownEndsAt Time + ExpiresAt Time + Level int + StartedAt Time + TopContributions []EventSubContribution + Total int + type EventSubHypeTrainProgressEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + ExpiresAt Time + Goal int + LastContribution EventSubContribution + Level int + Progress int + StartedAt Time + TopContributions []EventSubContribution + Total int + type EventSubImage struct + Url1x string + Url2x string + Url4x string + type EventSubMaxPerStream struct + IsEnabled bool + Value int + type EventSubMessage struct + Emotes []EventSubEmote + Text string + type EventSubModeratorAddEvent = EventSubChannelFollowEvent + type EventSubModeratorRemoveEvent = EventSubChannelFollowEvent + type EventSubOutcome struct + ChannelPoints int + Color string + ID string + Title string + TopPredictors []EventSubTopPredictor + Users int + type EventSubProduct struct + Bits int + InDevelopment bool + Name string + Sku string + type EventSubReward struct + Cost int + ID string + Prompt string + Title string + type EventSubStreamOfflineEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + type EventSubStreamOnlineEvent struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + ID string + StartedAt Time + Type string + type EventSubSubscription struct + Condition EventSubCondition + Cost int + CreatedAt Time + ID string + Status string + Transport EventSubTransport + Type string + Version string + type EventSubSubscriptionsParams struct + After string + Status string + Type string + type EventSubSubscriptionsResponse struct + Data ManyEventSubSubscriptions + type EventSubTopPredictor struct + ChannelPointWon int + ChannelPointsUsed int + UserID string + UserLogin string + UserName string + type EventSubTransport struct + Callback string + Method string + Secret string + type EventSubUserAuthenticationRevokeEvent struct + ClientID string + UserID string + UserLogin string + UserName string + type EventSubUserUpdateEvent struct + Description string + Email string + UserID string + UserLogin string + UserName string + type ExtensionAnalytic struct + DateRange DateRange + ExtensionID string + Type string + URL string + type ExtensionAnalyticsParams struct + After string + EndedAt Time + ExtensionID string + First int + StartedAt Time + Type string + type ExtensionAnalyticsResponse struct + Data ManyExtensionAnalytics + type ExtensionConfigurationSegment struct + Content string + Segment ExtensionSegmentType + Version string + type ExtensionCreateClaimsParams struct + ChannelID string + Expiration int64 + PubSub *PubSubPermissions + type ExtensionGetConfigurationParams struct + BroadcasterID string + ExtensionID string + Segments []ExtensionSegmentType + type ExtensionGetConfigurationSegmentResponse struct + Data ManyExtensionConfigurationSegments + type ExtensionLiveChannel struct + BroadcasterID string + BroadcasterName string + GameID string + GameName string + Title string + type ExtensionLiveChannelsParams struct + After string + ExtensionID string + First int + type ExtensionLiveChannelsResponse struct + Data ManyExtensionLiveChannels + type ExtensionOptions struct + OwnerUserID string + Secret string + SignedJWTToken string + type ExtensionPubSubPublishType string + const ExtensionPubSubBroadcastPublish + const ExtensionPubSubGenericPublish + const ExtensionPubSubGlobalPublish + func (p ExtensionPubSubPublishType) String() string + type ExtensionSecretCreationParams struct + ActivationDelay int + ExtensionID string + type ExtensionSecretCreationResponse struct + Data ManyExtensionSecrets + type ExtensionSegmentType string + const ExtensionConfigrationBroadcasterSegment + const ExtensionConfigurationDeveloperSegment + const ExtensionConfigurationGlobalSegment + func (s ExtensionSegmentType) String() string + type ExtensionSendChatMessageParams struct + BroadcasterID string + ExtensionID string + ExtensionVersion string + Text string + type ExtensionSendChatMessageResponse struct + type ExtensionSendPubSubMessageParams struct + BroadcasterID string + IsGlobalBroadcast bool + Message string + Target []ExtensionPubSubPublishType + type ExtensionSendPubSubMessageResponse struct + type ExtensionSetConfigurationParams struct + BroadcasterID string + Content string + ExtensionID string + Segment ExtensionSegmentType + Version string + type ExtensionSetConfigurationResponse struct + type ExtensionSetRequiredConfigurationParams struct + BroadcasterID string + ConfigurationVersion string + ExtensionID string + ExtensionVersion string + RequiredConfiguration string + type ExtensionSetRequiredConfigurationResponse struct + type ExtensionTransaction struct + BroadcasterID string + BroadcasterLogin string + BroadcasterName string + ID string + ProductData struct{ ... } + ProductType string + Timestamp Time + UserID string + UserLogin string + UserName string + type ExtensionTransactionsParams struct + After string + ExtensionID string + First int + ID []string + type ExtensionTransactionsResponse struct + Data ManyExtensionTransactions + type FollowedStreamsParams struct + After string + Before string + First int + UserID string + type Game struct + BoxArtURL string + ID string + Name string + type GameAnalytic struct + DateRange DateRange + GameID string + Type string + URL string + type GameAnalyticsParams struct + After string + EndedAt Time + First int + GameID string + StartedAt Time + Type string + type GameAnalyticsResponse struct + Data ManyGameAnalytics + type GamesParams struct + IDs []string + Names []string + type GamesResponse struct + Data ManyGames + type GetChannelEmotesParams struct + BroadcasterID string + type GetChannelEmotesResponse struct + Data ManyEmotes + type GetChannelInformationParams struct + BroadcasterID string + BroadcasterIDs []string + type GetChannelInformationResponse struct + Data ManyChannelInformation + type GetChatBadgeParams struct + BroadcasterID string + type GetChatBadgeResponse struct + Data ManyChatBadge + type GetCreatorGoalsParams struct + BroadcasterID string + type GetCustomRewardsParams struct + BroadcasterID string + ID string + OnlyManageableRewards bool + type GetCustomRewardsRedemptionParams struct + After string + BroadcasterID string + First int + ID string + RewardId string + Status string + type GetDropEntitlementsParams struct + After string + First int + FulfillmentStatus string + GameID string + ID string + UserID string + type GetDropsEntitlementsResponse struct + Data ManyEntitlementsWithPagination + type GetEmoteSetsParams struct + EmoteSetIDs []string + type GetEmoteSetsResponse struct + Data ManyEmotesWithOwner + type GetExtensionSecretParams struct + ExtensionID string + type GetExtensionSecretResponse struct + Data ManyExtensionSecrets + type GetPollsResponse struct + Data ManyPolls + type GetPredictionsResponse struct + Data ManyPredictions + type GlobalCooldownSettings struct + GlobalCooldownSeconds int + IsEnabled bool + type Goal struct + BroadcasterID string + BroadcasterLogin string + BroadcasterName string + CreatedAt Time + CurrentAmount int + Description string + ID string + TargetAmount int + Type string + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type HeldMessageModerationParams struct + Action string + MsgID string + UserID string + type HeldMessageModerationResponse struct + type HypeTrainContribuition struct + Total int64 + Type string + User string + type HypeTrainEvent struct + Event HypeTrainEventData + EventTimestamp Time + EventType string + ID string + Version string + type HypeTrainEventData struct + BroadcasterID string + CooldownEndTime Time + ExpiresAt Time + Goal int64 + ID string + LastContribution HypeTrainContribuition + Level int64 + StartedAt Time + TopContributions []HypeTrainContribuition + Total int64 + type HypeTrainEventsParams struct + After string + BroadcasterID string + First int + ID string + type HypeTrainEventsResponse struct + Data ManyHypeTrainEvents + type ManyAdDetails struct + AdDetails []AdDetails + type ManyBans struct + Bans []Ban + Pagination Pagination + type ManyChannelCustomRewards struct + ChannelCustomRewards []ChannelCustomReward + type ManyChannelEditors struct + ChannelEditors []ChannelEditor + type ManyChannelInformation struct + Channels []ChannelInformation + type ManyChatBadge struct + Badges []ChatBadge + type ManyCheermotes struct + Cheermotes []Cheermotes + type ManyClipEditURLs struct + ClipEditURLs []ClipEditURL + type ManyClips struct + Clips []Clip + Pagination Pagination + type ManyCodes struct + Codes []CodeStatus + type ManyCreateStreamMarkers struct + CreateStreamMarkers []CreateStreamMarker + type ManyCustomRewardRedemption struct + CustomRewardRedemption []CustomRewardRedemption + Pagination *Pagination + type ManyEmotes struct + Emotes []Emote + type ManyEmotesWithOwner struct + Emotes []EmoteWithOwner + type ManyEntitlements struct + Entitlements []Entitlement + type ManyEntitlementsUploadURLs struct + URLs []EntitlementsUploadURL + type ManyEntitlementsWithPagination struct + type ManyEventSubSubscriptions struct + EventSubSubscriptions []EventSubSubscription + MaxTotalCost int + Pagination Pagination + Total int + TotalCost int + type ManyExtensionAnalytics struct + ExtensionAnalytics []ExtensionAnalytic + Pagination Pagination + type ManyExtensionConfigurationSegments struct + Segments []ExtensionConfigurationSegment + type ManyExtensionLiveChannels struct + LiveChannels []ExtensionLiveChannel + Pagination string + type ManyExtensionSecrets struct + SecretInfo []SecretsInformation + type ManyExtensionTransactions struct + ExtensionTransactions []ExtensionTransaction + Pagination Pagination + type ManyFollows struct + Follows []UserFollow + Pagination Pagination + Total int + type ManyGameAnalytics struct + GameAnalytics []GameAnalytic + Pagination Pagination + type ManyGames struct + Games []Game + type ManyGamesWithPagination struct + Pagination Pagination + type ManyGoals struct + Goals []Goal + Pagination Pagination + type ManyHypeTrainEvents struct + Events []HypeTrainEvent + Pagination Pagination + type ManyPolls struct + Pagination Pagination + Polls []Poll + type ManyPredictions struct + Pagination Pagination + Predictions []Prediction + type ManySearchChannels struct + Channels []Channel + Pagination Pagination + type ManyStreamKeys struct + Data []struct{ ... } + type ManyStreamMarkers struct + Pagination Pagination + StreamMarkers []StreamMarker + type ManyStreams struct + Pagination Pagination + Streams []Stream + type ManySubscriptions struct + Pagination Pagination + Points int + Subscriptions []Subscription + Total int + type ManyUpdatedEntitlementSet struct + EntitlementSets []UpdatedEntitlementSet + type ManyUserBitTotals struct + DateRange DateRange + Total int + UserBitTotals []UserBitTotal + type ManyUserExtensions struct + UserExtensions []UserExtension + type ManyUserSubscriptions struct + UserSubscriptions []UserSubscription + type ManyUsers struct + Users []User + type ManyUsersBlocked struct + Pagination Pagination + Users []UserBlocked + type ManyVideos struct + Pagination Pagination + Videos []Video + type ManyWebhookSubscriptions struct + Pagination Pagination + Total int + WebhookSubscriptions []WebhookSubscription + type Marker struct + CreatedAt Time + Description string + ID string + PositionSeconds int + URL string + type MaxPerStreamSettings struct + IsEnabled bool + MaxPerStream int + type MaxPerUserPerStreamSettings struct + IsEnabled bool + MaxPerUserPerStream int + type Options struct + APIBaseURL string + AppAccessToken string + ClientID string + ClientSecret string + ExtensionOpts ExtensionOptions + HTTPClient HTTPClient + RateLimitFunc RateLimitFunc + RedirectURI string + UserAccessToken string + UserAgent string + type Outcomes struct + ChannelPoints int + Color string + ID string + Title string + TopPredictors []TopPredictor + Users int + type Pagination struct + Cursor string + type Poll struct + BitsPerVote int + BitsVotingEnabled bool + BroadcasterID string + BroadcasterLogin string + BroadcasterName string + ChannelPointsPerVote int + ChannelPointsVotingEnabled bool + Choices []PollChoice + Duration int + EndedAt Time + ID string + StartedAt Time + Status string + Title string + type PollChoice struct + BitsVotes int + ChannelPointsVotes int + ID string + Title string + Votes int + type PollChoiceParam struct + Title string + type PollsParams struct + After string + BroadcasterID string + First string + ID string + type PollsResponse struct + Data ManyPolls + type Prediction struct + BroadcasterUserID string + BroadcasterUserLogin string + BroadcasterUserName string + CreatedAt Time + EndedAt Time + ID string + LockedAt Time + Outcomes []Outcomes + PredictionWindow int + Status string + Title string + WinningOutcomeID string + type PredictionChoiceParam struct + Title string + type PredictionsParams struct + After string + BroadcasterID string + First string + ID string + type PredictionsResponse struct + Data ManyPredictions + type PubSubPermissions struct + Listen []ExtensionPubSubPublishType + Send []ExtensionPubSubPublishType + type RateLimitFunc func(*Response) error + type RedemptionResponse struct + Data ManyCustomRewardRedemption + type RefreshTokenResponse struct + Data AccessCredentials + type RemoveEventSubSubscriptionParams struct + ID string + type RemoveEventSubSubscriptionParamsResponse struct + type Response struct + Data interface{} + func (r *Response) HydrateResponseCommon(rc *ResponseCommon) + type ResponseCommon struct + Error string + ErrorMessage string + ErrorStatus int + Header http.Header + StatusCode int + func (rc *ResponseCommon) GetRateLimit() int + func (rc *ResponseCommon) GetRateLimitRemaining() int + func (rc *ResponseCommon) GetRateLimitReset() int + type RevokeAccessTokenResponse struct + type Reward struct + Cost int64 + ID string + Prompt string + Title string + type RewardImage struct + Url1x string + Url2x string + Url4x string + type RoleType string + const BroadcasterRole + const ExternalRole + const ModeratorRole + const ViewerRole + type SearchChannelsParams struct + After string + Channel string + First int + LiveOnly bool + type SearchChannelsResponse struct + Data ManySearchChannels + type Secret struct + ActiveAt Time + Content string + Expires Time + type SecretsInformation struct + Secrets []Secret + Version int + type StartCommercialParams struct + BroadcasterID string + Length AdLengthEnum + type StartCommercialResponse struct + Data ManyAdDetails + type Stream struct + GameID string + GameName string + ID string + IsMature bool + Language string + StartedAt time.Time + TagIDs []string + ThumbnailURL string + Title string + Type string + UserID string + UserLogin string + UserName string + ViewerCount int + type StreamKeyParams struct + BroadcasterID string + type StreamKeysResponse struct + Data ManyStreamKeys + type StreamMarker struct + UserID string + UserLogin string + UserName string + Videos []VideoMarker + type StreamMarkersParams struct + After string + Before string + First int + UserID string + VideoID string + type StreamMarkersResponse struct + Data ManyStreamMarkers + type StreamsParams struct + After string + Before string + First int + GameIDs []string + Language []string + Type string + UserIDs []string + UserLogins []string + type StreamsResponse struct + Data ManyStreams + type Subscription struct + BroadcasterID string + BroadcasterLogin string + BroadcasterName string + GifterID string + GifterLogin string + GifterName string + IsGift bool + PlanName string + Tier string + UserID string + UserLogin string + UserName string + type SubscriptionsParams struct + After string + Before string + BroadcasterID string + First int + UserID []string + type SubscriptionsResponse struct + Data ManySubscriptions + type TierImageTypes struct + Animated TierImages + Static TierImages + type TierImages struct + Image1 string + Image1_5 string + Image2 string + Image3 string + Image4 string + type Time struct + func (t *Time) UnmarshalJSON(b []byte) (err error) + type TopGamesParams struct + After string + Before string + First int + type TopGamesResponse struct + Data ManyGamesWithPagination + type TopPredictor struct + ChannelPointsUsed int + ChannelPointsWon int + UserID string + UserLogin string + UserName string + type TwitchJWTClaims struct + ChannelID string + OpaqueUserID string + Permissions *PubSubPermissions + Role RoleType + Unlinked bool + UserID string + type UnblockUserParams struct + TargetUserID string + type UpdateCustomRewardsParams struct + BroadcasterID string + Cost int + Id string + IsEnabled bool + Prompt string + Title string + type UpdateDropsEntitlementsParams struct + EntitlementIDs []string + FulfillmentStatus string + type UpdateDropsEntitlementsResponse struct + Data ManyUpdatedEntitlementSet + type UpdateUserExtensionsPayload struct + Component map[string]UserActiveExtensionInfo + Overlay map[string]UserActiveExtensionInfo + Panel map[string]UserActiveExtensionInfo + type UpdateUserParams struct + Description string + type UpdatedEntitlementSet struct + IDs []string + Status string + type User struct + BroadcasterType string + CreatedAt Time + Description string + DisplayName string + Email string + ID string + Login string + OfflineImageURL string + ProfileImageURL string + Type string + ViewCount int + type UserAccessTokenResponse struct + Data AccessCredentials + type UserActiveExtension struct + Component map[string]UserActiveExtensionInfo + Overlay map[string]UserActiveExtensionInfo + Panel map[string]UserActiveExtensionInfo + type UserActiveExtensionInfo struct + Active bool + ID string + Name string + Version string + X int + Y int + type UserActiveExtensionSet struct + UserActiveExtensions UserActiveExtension + type UserActiveExtensionsParams struct + UserID string + type UserActiveExtensionsResponse struct + Data UserActiveExtensionSet + type UserBitTotal struct + Rank int + Score int + UserID string + UserLogin string + UserName string + type UserBlocked struct + DisplayName string + UserID string + UserLogin string + type UserExtension struct + CanActivate bool + ID string + Name string + Type []string + Version string + type UserExtensionsResponse struct + Data ManyUserExtensions + type UserFollow struct + FollowedAt time.Time + FromID string + FromLogin string + FromName string + ToID string + ToName string + type UserSubscription struct + BroadcasterID string + BroadcasterLogin string + BroadcasterName string + GifterLogin string + GifterName string + IsGift bool + Tier string + type UserSubscriptionResponse struct + Data ManyUserSubscriptions + type UserSubscriptionsParams struct + BroadcasterID string + UserID string + type UsersBlockedParams struct + After string + BroadcasterID string + First int + type UsersBlockedResponse struct + Data ManyUsersBlocked + type UsersFollowsParams struct + After string + First int + FromID string + ToID string + type UsersFollowsResponse struct + Data ManyFollows + type UsersParams struct + IDs []string + Logins []string + type UsersResponse struct + Data ManyUsers + type ValidateTokenResponse struct + Data validateTokenDetails + type Video struct + CreatedAt string + Description string + Duration string + ID string + Language string + MutedSegments []VideoMutedSegment + PublishedAt string + StreamID string + ThumbnailURL string + Title string + Type string + URL string + UserID string + UserLogin string + UserName string + ViewCount int + Viewable string + type VideoMarker struct + Markers []Marker + VideoID string + type VideoMutedSegment struct + Duration int + Offest int + type VideosParams struct + After string + Before string + First int + GameID string + IDs []string + Language string + Period string + Sort string + Type string + UserID string + type VideosResponse struct + Data ManyVideos + type WebhookSubscription struct + Callback string + ExpiresAt Time + Topic string + type WebhookSubscriptionPayload struct + Callback string + LeaseSeconds int + Mode string + Secret string + Topic string + type WebhookSubscriptionResponse struct + type WebhookSubscriptionsParams struct + After string + First int + type WebhookSubscriptionsResponse struct + Data ManyWebhookSubscriptions + type WebhookTopic int + const ExtensionAnalyticsTopic + const GameAnalyticsTopic + const StreamChangedTopic + const UserChangedTopic + const UserFollowsTopic + func GetWebhookTopicFromRequest(req *http.Request) WebhookTopic Other modules containing this package github.com/AndrewKraevskii/helix