Documentation
¶
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewAddBlockedTermRequest(server string, params *AddBlockedTermParams, ...) (*http.Request, error)
- func NewAddBlockedTermRequestWithBody(server string, params *AddBlockedTermParams, contentType string, ...) (*http.Request, error)
- func NewAddChannelModeratorRequest(server string, params *AddChannelModeratorParams) (*http.Request, error)
- func NewAddChannelVipRequest(server string, params *AddChannelVipParams) (*http.Request, error)
- func NewAssignGuestStarSlotRequest(server string, params *AssignGuestStarSlotParams) (*http.Request, error)
- func NewBanUserRequest(server string, params *BanUserParams, body BanUserJSONRequestBody) (*http.Request, error)
- func NewBanUserRequestWithBody(server string, params *BanUserParams, contentType string, body io.Reader) (*http.Request, error)
- func NewBlockUserRequest(server string, params *BlockUserParams) (*http.Request, error)
- func NewCancelARaidRequest(server string, params *CancelARaidParams) (*http.Request, error)
- func NewCheckAutomodStatusRequest(server string, params *CheckAutomodStatusParams, ...) (*http.Request, error)
- func NewCheckAutomodStatusRequestWithBody(server string, params *CheckAutomodStatusParams, contentType string, ...) (*http.Request, error)
- func NewCheckUserSubscriptionRequest(server string, params *CheckUserSubscriptionParams) (*http.Request, error)
- func NewCreateChannelStreamScheduleSegmentRequest(server string, params *CreateChannelStreamScheduleSegmentParams, ...) (*http.Request, error)
- func NewCreateChannelStreamScheduleSegmentRequestWithBody(server string, params *CreateChannelStreamScheduleSegmentParams, ...) (*http.Request, error)
- func NewCreateClipRequest(server string, params *CreateClipParams) (*http.Request, error)
- func NewCreateConduitsRequest(server string, body CreateConduitsJSONRequestBody) (*http.Request, error)
- func NewCreateConduitsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateCustomRewardsRequest(server string, params *CreateCustomRewardsParams, ...) (*http.Request, error)
- func NewCreateCustomRewardsRequestWithBody(server string, params *CreateCustomRewardsParams, contentType string, ...) (*http.Request, error)
- func NewCreateEventsubSubscriptionRequest(server string, body CreateEventsubSubscriptionJSONRequestBody) (*http.Request, error)
- func NewCreateEventsubSubscriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateExtensionSecretRequest(server string, params *CreateExtensionSecretParams) (*http.Request, error)
- func NewCreateGuestStarSessionRequest(server string, params *CreateGuestStarSessionParams) (*http.Request, error)
- func NewCreatePollRequest(server string, body CreatePollJSONRequestBody) (*http.Request, error)
- func NewCreatePollRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreatePredictionRequest(server string, body CreatePredictionJSONRequestBody) (*http.Request, error)
- func NewCreatePredictionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateStreamMarkerRequest(server string, body CreateStreamMarkerJSONRequestBody) (*http.Request, error)
- func NewCreateStreamMarkerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteChannelStreamScheduleSegmentRequest(server string, params *DeleteChannelStreamScheduleSegmentParams) (*http.Request, error)
- func NewDeleteChatMessagesRequest(server string, params *DeleteChatMessagesParams) (*http.Request, error)
- func NewDeleteConduitRequest(server string, params *DeleteConduitParams) (*http.Request, error)
- func NewDeleteCustomRewardRequest(server string, params *DeleteCustomRewardParams) (*http.Request, error)
- func NewDeleteEventsubSubscriptionRequest(server string, params *DeleteEventsubSubscriptionParams) (*http.Request, error)
- func NewDeleteGuestStarInviteRequest(server string, params *DeleteGuestStarInviteParams) (*http.Request, error)
- func NewDeleteGuestStarSlotRequest(server string, params *DeleteGuestStarSlotParams) (*http.Request, error)
- func NewDeleteVideosRequest(server string, params *DeleteVideosParams) (*http.Request, error)
- func NewEndGuestStarSessionRequest(server string, params *EndGuestStarSessionParams) (*http.Request, error)
- func NewEndPollRequest(server string, body EndPollJSONRequestBody) (*http.Request, error)
- func NewEndPollRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEndPredictionRequest(server string, body EndPredictionJSONRequestBody) (*http.Request, error)
- func NewEndPredictionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetAdScheduleRequest(server string, params *GetAdScheduleParams) (*http.Request, error)
- func NewGetAllStreamTagsRequest(server string, params *GetAllStreamTagsParams) (*http.Request, error)
- func NewGetAutomodSettingsRequest(server string, params *GetAutomodSettingsParams) (*http.Request, error)
- func NewGetBannedUsersRequest(server string, params *GetBannedUsersParams) (*http.Request, error)
- func NewGetBitsLeaderboardRequest(server string, params *GetBitsLeaderboardParams) (*http.Request, error)
- func NewGetBlockedTermsRequest(server string, params *GetBlockedTermsParams) (*http.Request, error)
- func NewGetBroadcasterSubscriptionsRequest(server string, params *GetBroadcasterSubscriptionsParams) (*http.Request, error)
- func NewGetChannelChatBadgesRequest(server string, params *GetChannelChatBadgesParams) (*http.Request, error)
- func NewGetChannelEditorsRequest(server string, params *GetChannelEditorsParams) (*http.Request, error)
- func NewGetChannelEmotesRequest(server string, params *GetChannelEmotesParams) (*http.Request, error)
- func NewGetChannelFollowersRequest(server string, params *GetChannelFollowersParams) (*http.Request, error)
- func NewGetChannelGuestStarSettingsRequest(server string, params *GetChannelGuestStarSettingsParams) (*http.Request, error)
- func NewGetChannelIcalendarRequest(server string, params *GetChannelIcalendarParams) (*http.Request, error)
- func NewGetChannelInformationRequest(server string, params *GetChannelInformationParams) (*http.Request, error)
- func NewGetChannelStreamScheduleRequest(server string, params *GetChannelStreamScheduleParams) (*http.Request, error)
- func NewGetChannelTeamsRequest(server string, params *GetChannelTeamsParams) (*http.Request, error)
- func NewGetCharityCampaignDonationsRequest(server string, params *GetCharityCampaignDonationsParams) (*http.Request, error)
- func NewGetCharityCampaignRequest(server string, params *GetCharityCampaignParams) (*http.Request, error)
- func NewGetChatSettingsRequest(server string, params *GetChatSettingsParams) (*http.Request, error)
- func NewGetChattersRequest(server string, params *GetChattersParams) (*http.Request, error)
- func NewGetCheermotesRequest(server string, params *GetCheermotesParams) (*http.Request, error)
- func NewGetClipsRequest(server string, params *GetClipsParams) (*http.Request, error)
- func NewGetConduitShardsRequest(server string, params *GetConduitShardsParams) (*http.Request, error)
- func NewGetConduitsRequest(server string) (*http.Request, error)
- func NewGetContentClassificationLabelsRequest(server string, params *GetContentClassificationLabelsParams) (*http.Request, error)
- func NewGetCreatorGoalsRequest(server string, params *GetCreatorGoalsParams) (*http.Request, error)
- func NewGetCustomRewardRedemptionRequest(server string, params *GetCustomRewardRedemptionParams) (*http.Request, error)
- func NewGetCustomRewardRequest(server string, params *GetCustomRewardParams) (*http.Request, error)
- func NewGetDropsEntitlementsRequest(server string, params *GetDropsEntitlementsParams) (*http.Request, error)
- func NewGetEmoteSetsRequest(server string, params *GetEmoteSetsParams) (*http.Request, error)
- func NewGetEventsubSubscriptionsRequest(server string, params *GetEventsubSubscriptionsParams) (*http.Request, error)
- func NewGetExtensionAnalyticsRequest(server string, params *GetExtensionAnalyticsParams) (*http.Request, error)
- func NewGetExtensionBitsProductsRequest(server string, params *GetExtensionBitsProductsParams) (*http.Request, error)
- func NewGetExtensionConfigurationSegmentRequest(server string, params *GetExtensionConfigurationSegmentParams) (*http.Request, error)
- func NewGetExtensionLiveChannelsRequest(server string, params *GetExtensionLiveChannelsParams) (*http.Request, error)
- func NewGetExtensionSecretsRequest(server string) (*http.Request, error)
- func NewGetExtensionTransactionsRequest(server string, params *GetExtensionTransactionsParams) (*http.Request, error)
- func NewGetExtensionsRequest(server string, params *GetExtensionsParams) (*http.Request, error)
- func NewGetFollowedChannelsRequest(server string, params *GetFollowedChannelsParams) (*http.Request, error)
- func NewGetFollowedStreamsRequest(server string, params *GetFollowedStreamsParams) (*http.Request, error)
- func NewGetGameAnalyticsRequest(server string, params *GetGameAnalyticsParams) (*http.Request, error)
- func NewGetGamesRequest(server string, params *GetGamesParams) (*http.Request, error)
- func NewGetGlobalChatBadgesRequest(server string) (*http.Request, error)
- func NewGetGlobalEmotesRequest(server string) (*http.Request, error)
- func NewGetGuestStarInvitesRequest(server string, params *GetGuestStarInvitesParams) (*http.Request, error)
- func NewGetGuestStarSessionRequest(server string, params *GetGuestStarSessionParams) (*http.Request, error)
- func NewGetHypeTrainEventsRequest(server string, params *GetHypeTrainEventsParams) (*http.Request, error)
- func NewGetModeratedChannelsRequest(server string, params *GetModeratedChannelsParams) (*http.Request, error)
- func NewGetModeratorsRequest(server string, params *GetModeratorsParams) (*http.Request, error)
- func NewGetPollsRequest(server string, params *GetPollsParams) (*http.Request, error)
- func NewGetPredictionsRequest(server string, params *GetPredictionsParams) (*http.Request, error)
- func NewGetReleasedExtensionsRequest(server string, params *GetReleasedExtensionsParams) (*http.Request, error)
- func NewGetSharedChatSessionRequest(server string, params *GetSharedChatSessionParams) (*http.Request, error)
- func NewGetShieldModeStatusRequest(server string, params *GetShieldModeStatusParams) (*http.Request, error)
- func NewGetStreamKeyRequest(server string, params *GetStreamKeyParams) (*http.Request, error)
- func NewGetStreamMarkersRequest(server string, params *GetStreamMarkersParams) (*http.Request, error)
- func NewGetStreamTagsRequest(server string, params *GetStreamTagsParams) (*http.Request, error)
- func NewGetStreamsRequest(server string, params *GetStreamsParams) (*http.Request, error)
- func NewGetTeamsRequest(server string, params *GetTeamsParams) (*http.Request, error)
- func NewGetTopGamesRequest(server string, params *GetTopGamesParams) (*http.Request, error)
- func NewGetUnbanRequestsRequest(server string, params *GetUnbanRequestsParams) (*http.Request, error)
- func NewGetUserActiveExtensionsRequest(server string, params *GetUserActiveExtensionsParams) (*http.Request, error)
- func NewGetUserBlockListRequest(server string, params *GetUserBlockListParams) (*http.Request, error)
- func NewGetUserChatColorRequest(server string, params *GetUserChatColorParams) (*http.Request, error)
- func NewGetUserEmotesRequest(server string, params *GetUserEmotesParams) (*http.Request, error)
- func NewGetUserExtensionsRequest(server string) (*http.Request, error)
- func NewGetUsersRequest(server string, params *GetUsersParams) (*http.Request, error)
- func NewGetVideosRequest(server string, params *GetVideosParams) (*http.Request, error)
- func NewGetVipsRequest(server string, params *GetVipsParams) (*http.Request, error)
- func NewManageHeldAutomodMessagesRequest(server string, body ManageHeldAutomodMessagesJSONRequestBody) (*http.Request, error)
- func NewManageHeldAutomodMessagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewModifyChannelInformationRequest(server string, params *ModifyChannelInformationParams, ...) (*http.Request, error)
- func NewModifyChannelInformationRequestWithBody(server string, params *ModifyChannelInformationParams, contentType string, ...) (*http.Request, error)
- func NewRemoveBlockedTermRequest(server string, params *RemoveBlockedTermParams) (*http.Request, error)
- func NewRemoveChannelModeratorRequest(server string, params *RemoveChannelModeratorParams) (*http.Request, error)
- func NewRemoveChannelVipRequest(server string, params *RemoveChannelVipParams) (*http.Request, error)
- func NewResolveUnbanRequestsRequest(server string, params *ResolveUnbanRequestsParams) (*http.Request, error)
- func NewSearchCategoriesRequest(server string, params *SearchCategoriesParams) (*http.Request, error)
- func NewSearchChannelsRequest(server string, params *SearchChannelsParams) (*http.Request, error)
- func NewSendAShoutoutRequest(server string, params *SendAShoutoutParams) (*http.Request, error)
- func NewSendChatAnnouncementRequest(server string, params *SendChatAnnouncementParams, ...) (*http.Request, error)
- func NewSendChatAnnouncementRequestWithBody(server string, params *SendChatAnnouncementParams, contentType string, ...) (*http.Request, error)
- func NewSendChatMessageRequest(server string, body SendChatMessageJSONRequestBody) (*http.Request, error)
- func NewSendChatMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendExtensionChatMessageRequest(server string, params *SendExtensionChatMessageParams, ...) (*http.Request, error)
- func NewSendExtensionChatMessageRequestWithBody(server string, params *SendExtensionChatMessageParams, contentType string, ...) (*http.Request, error)
- func NewSendExtensionPubsubMessageRequest(server string, body SendExtensionPubsubMessageJSONRequestBody) (*http.Request, error)
- func NewSendExtensionPubsubMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendGuestStarInviteRequest(server string, params *SendGuestStarInviteParams) (*http.Request, error)
- func NewSendWhisperRequest(server string, params *SendWhisperParams, body SendWhisperJSONRequestBody) (*http.Request, error)
- func NewSendWhisperRequestWithBody(server string, params *SendWhisperParams, contentType string, body io.Reader) (*http.Request, error)
- func NewSetExtensionConfigurationSegmentRequest(server string, body SetExtensionConfigurationSegmentJSONRequestBody) (*http.Request, error)
- func NewSetExtensionConfigurationSegmentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetExtensionRequiredConfigurationRequest(server string, params *SetExtensionRequiredConfigurationParams, ...) (*http.Request, error)
- func NewSetExtensionRequiredConfigurationRequestWithBody(server string, params *SetExtensionRequiredConfigurationParams, ...) (*http.Request, error)
- func NewSnoozeNextAdRequest(server string, params *SnoozeNextAdParams) (*http.Request, error)
- func NewStartARaidRequest(server string, params *StartARaidParams) (*http.Request, error)
- func NewStartCommercialRequest(server string, body StartCommercialJSONRequestBody) (*http.Request, error)
- func NewStartCommercialRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUnbanUserRequest(server string, params *UnbanUserParams) (*http.Request, error)
- func NewUnblockUserRequest(server string, params *UnblockUserParams) (*http.Request, error)
- func NewUpdateAutomodSettingsRequest(server string, params *UpdateAutomodSettingsParams, ...) (*http.Request, error)
- func NewUpdateAutomodSettingsRequestWithBody(server string, params *UpdateAutomodSettingsParams, contentType string, ...) (*http.Request, error)
- func NewUpdateChannelGuestStarSettingsRequest(server string, params *UpdateChannelGuestStarSettingsParams, ...) (*http.Request, error)
- func NewUpdateChannelGuestStarSettingsRequestWithBody(server string, params *UpdateChannelGuestStarSettingsParams, ...) (*http.Request, error)
- func NewUpdateChannelStreamScheduleRequest(server string, params *UpdateChannelStreamScheduleParams) (*http.Request, error)
- func NewUpdateChannelStreamScheduleSegmentRequest(server string, params *UpdateChannelStreamScheduleSegmentParams, ...) (*http.Request, error)
- func NewUpdateChannelStreamScheduleSegmentRequestWithBody(server string, params *UpdateChannelStreamScheduleSegmentParams, ...) (*http.Request, error)
- func NewUpdateChatSettingsRequest(server string, params *UpdateChatSettingsParams, ...) (*http.Request, error)
- func NewUpdateChatSettingsRequestWithBody(server string, params *UpdateChatSettingsParams, contentType string, ...) (*http.Request, error)
- func NewUpdateConduitShardsRequest(server string, body UpdateConduitShardsJSONRequestBody) (*http.Request, error)
- func NewUpdateConduitShardsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateConduitsRequest(server string, body UpdateConduitsJSONRequestBody) (*http.Request, error)
- func NewUpdateConduitsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateCustomRewardRequest(server string, params *UpdateCustomRewardParams, ...) (*http.Request, error)
- func NewUpdateCustomRewardRequestWithBody(server string, params *UpdateCustomRewardParams, contentType string, ...) (*http.Request, error)
- func NewUpdateDropsEntitlementsRequest(server string, body UpdateDropsEntitlementsJSONRequestBody) (*http.Request, error)
- func NewUpdateDropsEntitlementsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateExtensionBitsProductRequest(server string, body UpdateExtensionBitsProductJSONRequestBody) (*http.Request, error)
- func NewUpdateExtensionBitsProductRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateGuestStarSlotRequest(server string, params *UpdateGuestStarSlotParams) (*http.Request, error)
- func NewUpdateGuestStarSlotSettingsRequest(server string, params *UpdateGuestStarSlotSettingsParams) (*http.Request, error)
- func NewUpdateRedemptionStatusRequest(server string, params *UpdateRedemptionStatusParams, ...) (*http.Request, error)
- func NewUpdateRedemptionStatusRequestWithBody(server string, params *UpdateRedemptionStatusParams, contentType string, ...) (*http.Request, error)
- func NewUpdateShieldModeStatusRequest(server string, params *UpdateShieldModeStatusParams, ...) (*http.Request, error)
- func NewUpdateShieldModeStatusRequestWithBody(server string, params *UpdateShieldModeStatusParams, contentType string, ...) (*http.Request, error)
- func NewUpdateUserChatColorRequest(server string, params *UpdateUserChatColorParams) (*http.Request, error)
- func NewUpdateUserExtensionsRequest(server string, body UpdateUserExtensionsJSONRequestBody) (*http.Request, error)
- func NewUpdateUserExtensionsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateUserRequest(server string, params *UpdateUserParams) (*http.Request, error)
- func NewWarnChatUserRequest(server string, params *WarnChatUserParams, body WarnChatUserJSONRequestBody) (*http.Request, error)
- func NewWarnChatUserRequestWithBody(server string, params *WarnChatUserParams, contentType string, body io.Reader) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type AddBlockedTermBody
- type AddBlockedTermHTTPResponse
- type AddBlockedTermJSONRequestBody
- type AddBlockedTermParams
- type AddBlockedTermResponse
- type AddChannelModeratorHTTPResponse
- type AddChannelModeratorParams
- type AddChannelVipHTTPResponse
- type AddChannelVipParams
- type AssignGuestStarSlotHTTPResponse
- type AssignGuestStarSlotParams
- type AutoModSettings
- func (datatype AutoModSettings) GetAggression() int32
- func (datatype AutoModSettings) GetBroadcasterId() string
- func (datatype AutoModSettings) GetBullying() int32
- func (datatype AutoModSettings) GetDisability() int32
- func (datatype AutoModSettings) GetMisogyny() int32
- func (datatype AutoModSettings) GetModeratorId() string
- func (datatype AutoModSettings) GetOverallLevel() int32
- func (datatype AutoModSettings) GetRaceEthnicityOrReligion() int32
- func (datatype AutoModSettings) GetSexBasedTerms() int32
- func (datatype AutoModSettings) GetSexualitySexOrGender() int32
- func (datatype AutoModSettings) GetSwearing() int32
- type AutoModStatus
- type BanUserBody
- type BanUserHTTPResponse
- type BanUserJSONRequestBody
- type BanUserParams
- type BanUserResponse
- type BannedUser
- func (datatype BannedUser) GetCreatedAt() time.Time
- func (datatype BannedUser) GetExpiresAt() time.Time
- func (datatype BannedUser) GetModeratorId() string
- func (datatype BannedUser) GetModeratorLogin() string
- func (datatype BannedUser) GetModeratorName() string
- func (datatype BannedUser) GetReason() string
- func (datatype BannedUser) GetUserId() string
- func (datatype BannedUser) GetUserLogin() string
- func (datatype BannedUser) GetUserName() string
- type BitsLeaderboard
- type BlockUserHTTPResponse
- type BlockUserParams
- type BlockUserParamsReason
- type BlockUserParamsSourceContext
- type BlockedTerm
- func (datatype BlockedTerm) GetBroadcasterId() string
- func (datatype BlockedTerm) GetCreatedAt() time.Time
- func (datatype BlockedTerm) GetExpiresAt() time.Time
- func (datatype BlockedTerm) GetId() string
- func (datatype BlockedTerm) GetModeratorId() string
- func (datatype BlockedTerm) GetText() string
- func (datatype BlockedTerm) GetUpdatedAt() time.Time
- type BroadcasterSubscription
- func (datatype BroadcasterSubscription) GetBroadcasterId() string
- func (datatype BroadcasterSubscription) GetBroadcasterLogin() string
- func (datatype BroadcasterSubscription) GetBroadcasterName() string
- func (datatype BroadcasterSubscription) GetGifterId() string
- func (datatype BroadcasterSubscription) GetGifterLogin() string
- func (datatype BroadcasterSubscription) GetGifterName() string
- func (datatype BroadcasterSubscription) GetIsGift() bool
- func (datatype BroadcasterSubscription) GetPlanName() string
- func (datatype BroadcasterSubscription) GetTier() BroadcasterSubscriptionTier
- func (datatype BroadcasterSubscription) GetUserId() string
- func (datatype BroadcasterSubscription) GetUserLogin() string
- func (datatype BroadcasterSubscription) GetUserName() string
- type BroadcasterSubscriptionTier
- type CancelARaidHTTPResponse
- type CancelARaidParams
- type Category
- type Channel
- func (datatype Channel) GetBroadcasterLanguage() string
- func (datatype Channel) GetBroadcasterLogin() string
- func (datatype Channel) GetDisplayName() string
- func (datatype Channel) GetGameId() string
- func (datatype Channel) GetGameName() string
- func (datatype Channel) GetId() string
- func (datatype Channel) GetIsLive() bool
- func (datatype Channel) GetStartedAt() time.Time
- func (datatype Channel) GetTagIds() []string
- func (datatype Channel) GetTags() []string
- func (datatype Channel) GetThumbnailUrl() string
- func (datatype Channel) GetTitle() string
- type ChannelEditor
- type ChannelEmote
- func (datatype ChannelEmote) GetEmoteSetId() string
- func (datatype ChannelEmote) GetEmoteType() ChannelEmoteEmoteType
- func (datatype ChannelEmote) GetFormat() []ChannelEmoteFormat
- func (datatype ChannelEmote) GetId() string
- func (datatype ChannelEmote) GetImages() struct{ ... }
- func (datatype ChannelEmote) GetName() string
- func (datatype ChannelEmote) GetScale() []ChannelEmoteScale
- func (datatype ChannelEmote) GetThemeMode() []ChannelEmoteThemeMode
- func (datatype ChannelEmote) GetTier() string
- type ChannelEmoteEmoteType
- type ChannelEmoteFormat
- type ChannelEmoteScale
- type ChannelEmoteThemeMode
- type ChannelInformation
- func (datatype ChannelInformation) GetBroadcasterId() string
- func (datatype ChannelInformation) GetBroadcasterLanguage() string
- func (datatype ChannelInformation) GetBroadcasterLogin() string
- func (datatype ChannelInformation) GetBroadcasterName() string
- func (datatype ChannelInformation) GetContentClassificationLabels() []string
- func (datatype ChannelInformation) GetDelay() int32
- func (datatype ChannelInformation) GetGameId() string
- func (datatype ChannelInformation) GetGameName() string
- func (datatype ChannelInformation) GetIsBrandedContent() bool
- func (datatype ChannelInformation) GetTags() []string
- func (datatype ChannelInformation) GetTitle() string
- type ChannelStreamScheduleSegment
- func (datatype ChannelStreamScheduleSegment) GetCanceledUntil() string
- func (datatype ChannelStreamScheduleSegment) GetCategory() struct{ ... }
- func (datatype ChannelStreamScheduleSegment) GetEndTime() time.Time
- func (datatype ChannelStreamScheduleSegment) GetId() string
- func (datatype ChannelStreamScheduleSegment) GetIsRecurring() bool
- func (datatype ChannelStreamScheduleSegment) GetStartTime() time.Time
- func (datatype ChannelStreamScheduleSegment) GetTitle() string
- type ChannelTeam
- func (datatype ChannelTeam) GetBackgroundImageUrl() string
- func (datatype ChannelTeam) GetBanner() string
- func (datatype ChannelTeam) GetBroadcasterId() string
- func (datatype ChannelTeam) GetBroadcasterLogin() string
- func (datatype ChannelTeam) GetBroadcasterName() string
- func (datatype ChannelTeam) GetCreatedAt() time.Time
- func (datatype ChannelTeam) GetId() string
- func (datatype ChannelTeam) GetInfo() string
- func (datatype ChannelTeam) GetTeamDisplayName() string
- func (datatype ChannelTeam) GetTeamName() string
- func (datatype ChannelTeam) GetThumbnailUrl() string
- func (datatype ChannelTeam) GetUpdatedAt() time.Time
- type CharityCampaign
- func (datatype CharityCampaign) GetBroadcasterId() string
- func (datatype CharityCampaign) GetBroadcasterLogin() string
- func (datatype CharityCampaign) GetBroadcasterName() string
- func (datatype CharityCampaign) GetCharityDescription() string
- func (datatype CharityCampaign) GetCharityLogo() string
- func (datatype CharityCampaign) GetCharityName() string
- func (datatype CharityCampaign) GetCharityWebsite() string
- func (datatype CharityCampaign) GetCurrentAmount() struct{ ... }
- func (datatype CharityCampaign) GetId() string
- func (datatype CharityCampaign) GetTargetAmount() struct{ ... }
- type CharityCampaignDonation
- func (datatype CharityCampaignDonation) GetAmount() struct{ ... }
- func (datatype CharityCampaignDonation) GetCampaignId() string
- func (datatype CharityCampaignDonation) GetId() string
- func (datatype CharityCampaignDonation) GetUserId() string
- func (datatype CharityCampaignDonation) GetUserLogin() string
- func (datatype CharityCampaignDonation) GetUserName() string
- type ChatBadge
- type ChatSettings
- func (datatype ChatSettings) GetBroadcasterId() string
- func (datatype ChatSettings) GetEmoteMode() bool
- func (datatype ChatSettings) GetFollowerMode() bool
- func (datatype ChatSettings) GetFollowerModeDuration() int32
- func (datatype ChatSettings) GetModeratorId() string
- func (datatype ChatSettings) GetNonModeratorChatDelay() bool
- func (datatype ChatSettings) GetNonModeratorChatDelayDuration() int32
- func (datatype ChatSettings) GetSlowMode() bool
- func (datatype ChatSettings) GetSlowModeWaitTime() int32
- func (datatype ChatSettings) GetSubscriberMode() bool
- func (datatype ChatSettings) GetUniqueChatMode() bool
- type ChatSettingsUpdated
- func (datatype ChatSettingsUpdated) GetBroadcasterId() string
- func (datatype ChatSettingsUpdated) GetEmoteMode() bool
- func (datatype ChatSettingsUpdated) GetFollowerMode() bool
- func (datatype ChatSettingsUpdated) GetFollowerModeDuration() int32
- func (datatype ChatSettingsUpdated) GetModeratorId() string
- func (datatype ChatSettingsUpdated) GetNonModeratorChatDelay() bool
- func (datatype ChatSettingsUpdated) GetNonModeratorChatDelayDuration() int32
- func (datatype ChatSettingsUpdated) GetSlowMode() bool
- func (datatype ChatSettingsUpdated) GetSlowModeWaitTime() int32
- func (datatype ChatSettingsUpdated) GetSubscriberMode() bool
- func (datatype ChatSettingsUpdated) GetUniqueChatMode() bool
- type Chatter
- type CheckAutoModStatusBody
- type CheckAutoModStatusResponse
- type CheckAutomodStatusHTTPResponse
- type CheckAutomodStatusJSONRequestBody
- type CheckAutomodStatusParams
- type CheckUserSubscriptionHTTPResponse
- type CheckUserSubscriptionParams
- type CheckUserSubscriptionResponse
- type Cheermote
- type CheermoteImageFormat
- type CheermoteImageTheme
- type CheermoteImages
- type CheermoteTiersId
- type CheermoteType
- type CircuitWrapperClientWithResponsesCircuit
- func (w *CircuitWrapperClientWithResponsesCircuit) AddBlockedTermWithBodyWithResponse(ctx context.Context, p1 *AddBlockedTermParams, p2 string, p3 io.Reader, ...) (*AddBlockedTermHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) AddBlockedTermWithResponse(ctx context.Context, p1 *AddBlockedTermParams, p2 AddBlockedTermBody, ...) (*AddBlockedTermHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) AddChannelModeratorWithResponse(ctx context.Context, p1 *AddChannelModeratorParams, p2 ...RequestEditorFn) (*AddChannelModeratorHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) AddChannelVipWithResponse(ctx context.Context, p1 *AddChannelVipParams, p2 ...RequestEditorFn) (*AddChannelVipHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) AssignGuestStarSlotWithResponse(ctx context.Context, p1 *AssignGuestStarSlotParams, p2 ...RequestEditorFn) (*AssignGuestStarSlotHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) BanUserWithBodyWithResponse(ctx context.Context, p1 *BanUserParams, p2 string, p3 io.Reader, ...) (*BanUserHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) BanUserWithResponse(ctx context.Context, p1 *BanUserParams, p2 BanUserBody, p3 ...RequestEditorFn) (*BanUserHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) BlockUserWithResponse(ctx context.Context, p1 *BlockUserParams, p2 ...RequestEditorFn) (*BlockUserHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CancelARaidWithResponse(ctx context.Context, p1 *CancelARaidParams, p2 ...RequestEditorFn) (*CancelARaidHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CheckAutomodStatusWithBodyWithResponse(ctx context.Context, p1 *CheckAutomodStatusParams, p2 string, p3 io.Reader, ...) (*CheckAutomodStatusHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CheckAutomodStatusWithResponse(ctx context.Context, p1 *CheckAutomodStatusParams, p2 CheckAutoModStatusBody, ...) (*CheckAutomodStatusHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CheckUserSubscriptionWithResponse(ctx context.Context, p1 *CheckUserSubscriptionParams, p2 ...RequestEditorFn) (*CheckUserSubscriptionHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CreateChannelStreamScheduleSegmentWithBodyWithResponse(ctx context.Context, p1 *CreateChannelStreamScheduleSegmentParams, p2 string, ...) (*CreateChannelStreamScheduleSegmentHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CreateChannelStreamScheduleSegmentWithResponse(ctx context.Context, p1 *CreateChannelStreamScheduleSegmentParams, ...) (*CreateChannelStreamScheduleSegmentHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CreateClipWithResponse(ctx context.Context, p1 *CreateClipParams, p2 ...RequestEditorFn) (*CreateClipHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CreateConduitsWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*CreateConduitsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CreateConduitsWithResponse(ctx context.Context, p1 CreateConduitsBody, p2 ...RequestEditorFn) (*CreateConduitsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CreateCustomRewardsWithBodyWithResponse(ctx context.Context, p1 *CreateCustomRewardsParams, p2 string, p3 io.Reader, ...) (*CreateCustomRewardsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CreateCustomRewardsWithResponse(ctx context.Context, p1 *CreateCustomRewardsParams, p2 CreateCustomRewardsBody, ...) (*CreateCustomRewardsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CreateEventsubSubscriptionWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*CreateEventsubSubscriptionHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CreateEventsubSubscriptionWithResponse(ctx context.Context, p1 CreateEventSubSubscriptionBody, p2 ...RequestEditorFn) (*CreateEventsubSubscriptionHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CreateExtensionSecretWithResponse(ctx context.Context, p1 *CreateExtensionSecretParams, p2 ...RequestEditorFn) (*CreateExtensionSecretHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CreateGuestStarSessionWithResponse(ctx context.Context, p1 *CreateGuestStarSessionParams, p2 ...RequestEditorFn) (*CreateGuestStarSessionHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CreatePollWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*CreatePollHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CreatePollWithResponse(ctx context.Context, p1 CreatePollBody, p2 ...RequestEditorFn) (*CreatePollHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CreatePredictionWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*CreatePredictionHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CreatePredictionWithResponse(ctx context.Context, p1 CreatePredictionBody, p2 ...RequestEditorFn) (*CreatePredictionHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CreateStreamMarkerWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*CreateStreamMarkerHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) CreateStreamMarkerWithResponse(ctx context.Context, p1 CreateStreamMarkerBody, p2 ...RequestEditorFn) (*CreateStreamMarkerHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) DeleteChannelStreamScheduleSegmentWithResponse(ctx context.Context, p1 *DeleteChannelStreamScheduleSegmentParams, ...) (*DeleteChannelStreamScheduleSegmentHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) DeleteChatMessagesWithResponse(ctx context.Context, p1 *DeleteChatMessagesParams, p2 ...RequestEditorFn) (*DeleteChatMessagesHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) DeleteConduitWithResponse(ctx context.Context, p1 *DeleteConduitParams, p2 ...RequestEditorFn) (*DeleteConduitHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) DeleteCustomRewardWithResponse(ctx context.Context, p1 *DeleteCustomRewardParams, p2 ...RequestEditorFn) (*DeleteCustomRewardHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) DeleteEventsubSubscriptionWithResponse(ctx context.Context, p1 *DeleteEventsubSubscriptionParams, ...) (*DeleteEventsubSubscriptionHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) DeleteGuestStarInviteWithResponse(ctx context.Context, p1 *DeleteGuestStarInviteParams, p2 ...RequestEditorFn) (*DeleteGuestStarInviteHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) DeleteGuestStarSlotWithResponse(ctx context.Context, p1 *DeleteGuestStarSlotParams, p2 ...RequestEditorFn) (*DeleteGuestStarSlotHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) DeleteVideosWithResponse(ctx context.Context, p1 *DeleteVideosParams, p2 ...RequestEditorFn) (*DeleteVideosHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) EndGuestStarSessionWithResponse(ctx context.Context, p1 *EndGuestStarSessionParams, p2 ...RequestEditorFn) (*EndGuestStarSessionHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) EndPollWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*EndPollHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) EndPollWithResponse(ctx context.Context, p1 EndPollBody, p2 ...RequestEditorFn) (*EndPollHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) EndPredictionWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*EndPredictionHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) EndPredictionWithResponse(ctx context.Context, p1 EndPredictionBody, p2 ...RequestEditorFn) (*EndPredictionHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetAdScheduleWithResponse(ctx context.Context, p1 *GetAdScheduleParams, p2 ...RequestEditorFn) (*GetAdScheduleHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetAllStreamTagsWithResponse(ctx context.Context, p1 *GetAllStreamTagsParams, p2 ...RequestEditorFn) (*GetAllStreamTagsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetAutomodSettingsWithResponse(ctx context.Context, p1 *GetAutomodSettingsParams, p2 ...RequestEditorFn) (*GetAutomodSettingsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetBannedUsersWithResponse(ctx context.Context, p1 *GetBannedUsersParams, p2 ...RequestEditorFn) (*GetBannedUsersHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetBitsLeaderboardWithResponse(ctx context.Context, p1 *GetBitsLeaderboardParams, p2 ...RequestEditorFn) (*GetBitsLeaderboardHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetBlockedTermsWithResponse(ctx context.Context, p1 *GetBlockedTermsParams, p2 ...RequestEditorFn) (*GetBlockedTermsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetBroadcasterSubscriptionsWithResponse(ctx context.Context, p1 *GetBroadcasterSubscriptionsParams, ...) (*GetBroadcasterSubscriptionsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelChatBadgesWithResponse(ctx context.Context, p1 *GetChannelChatBadgesParams, p2 ...RequestEditorFn) (*GetChannelChatBadgesHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelEditorsWithResponse(ctx context.Context, p1 *GetChannelEditorsParams, p2 ...RequestEditorFn) (*GetChannelEditorsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelEmotesWithResponse(ctx context.Context, p1 *GetChannelEmotesParams, p2 ...RequestEditorFn) (*GetChannelEmotesHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelFollowersWithResponse(ctx context.Context, p1 *GetChannelFollowersParams, p2 ...RequestEditorFn) (*GetChannelFollowersHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelGuestStarSettingsWithResponse(ctx context.Context, p1 *GetChannelGuestStarSettingsParams, ...) (*GetChannelGuestStarSettingsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelIcalendarWithResponse(ctx context.Context, p1 *GetChannelIcalendarParams, p2 ...RequestEditorFn) (*GetChannelIcalendarHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelInformationWithResponse(ctx context.Context, p1 *GetChannelInformationParams, p2 ...RequestEditorFn) (*GetChannelInformationHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelStreamScheduleWithResponse(ctx context.Context, p1 *GetChannelStreamScheduleParams, p2 ...RequestEditorFn) (*GetChannelStreamScheduleHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelTeamsWithResponse(ctx context.Context, p1 *GetChannelTeamsParams, p2 ...RequestEditorFn) (*GetChannelTeamsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetCharityCampaignDonationsWithResponse(ctx context.Context, p1 *GetCharityCampaignDonationsParams, ...) (*GetCharityCampaignDonationsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetCharityCampaignWithResponse(ctx context.Context, p1 *GetCharityCampaignParams, p2 ...RequestEditorFn) (*GetCharityCampaignHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetChatSettingsWithResponse(ctx context.Context, p1 *GetChatSettingsParams, p2 ...RequestEditorFn) (*GetChatSettingsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetChattersWithResponse(ctx context.Context, p1 *GetChattersParams, p2 ...RequestEditorFn) (*GetChattersHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetCheermotesWithResponse(ctx context.Context, p1 *GetCheermotesParams, p2 ...RequestEditorFn) (*GetCheermotesHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetClipsWithResponse(ctx context.Context, p1 *GetClipsParams, p2 ...RequestEditorFn) (*GetClipsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetConduitShardsWithResponse(ctx context.Context, p1 *GetConduitShardsParams, p2 ...RequestEditorFn) (*GetConduitShardsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetConduitsWithResponse(ctx context.Context, p1 ...RequestEditorFn) (*GetConduitsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetContentClassificationLabelsWithResponse(ctx context.Context, p1 *GetContentClassificationLabelsParams, ...) (*GetContentClassificationLabelsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetCreatorGoalsWithResponse(ctx context.Context, p1 *GetCreatorGoalsParams, p2 ...RequestEditorFn) (*GetCreatorGoalsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetCustomRewardRedemptionWithResponse(ctx context.Context, p1 *GetCustomRewardRedemptionParams, ...) (*GetCustomRewardRedemptionHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetCustomRewardWithResponse(ctx context.Context, p1 *GetCustomRewardParams, p2 ...RequestEditorFn) (*GetCustomRewardHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetDropsEntitlementsWithResponse(ctx context.Context, p1 *GetDropsEntitlementsParams, p2 ...RequestEditorFn) (*GetDropsEntitlementsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetEmoteSetsWithResponse(ctx context.Context, p1 *GetEmoteSetsParams, p2 ...RequestEditorFn) (*GetEmoteSetsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetEventsubSubscriptionsWithResponse(ctx context.Context, p1 *GetEventsubSubscriptionsParams, p2 ...RequestEditorFn) (*GetEventsubSubscriptionsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetExtensionAnalyticsWithResponse(ctx context.Context, p1 *GetExtensionAnalyticsParams, p2 ...RequestEditorFn) (*GetExtensionAnalyticsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetExtensionBitsProductsWithResponse(ctx context.Context, p1 *GetExtensionBitsProductsParams, p2 ...RequestEditorFn) (*GetExtensionBitsProductsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetExtensionConfigurationSegmentWithResponse(ctx context.Context, p1 *GetExtensionConfigurationSegmentParams, ...) (*GetExtensionConfigurationSegmentHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetExtensionLiveChannelsWithResponse(ctx context.Context, p1 *GetExtensionLiveChannelsParams, p2 ...RequestEditorFn) (*GetExtensionLiveChannelsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetExtensionSecretsWithResponse(ctx context.Context, p1 ...RequestEditorFn) (*GetExtensionSecretsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetExtensionTransactionsWithResponse(ctx context.Context, p1 *GetExtensionTransactionsParams, p2 ...RequestEditorFn) (*GetExtensionTransactionsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetExtensionsWithResponse(ctx context.Context, p1 *GetExtensionsParams, p2 ...RequestEditorFn) (*GetExtensionsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetFollowedChannelsWithResponse(ctx context.Context, p1 *GetFollowedChannelsParams, p2 ...RequestEditorFn) (*GetFollowedChannelsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetFollowedStreamsWithResponse(ctx context.Context, p1 *GetFollowedStreamsParams, p2 ...RequestEditorFn) (*GetFollowedStreamsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetGameAnalyticsWithResponse(ctx context.Context, p1 *GetGameAnalyticsParams, p2 ...RequestEditorFn) (*GetGameAnalyticsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetGamesWithResponse(ctx context.Context, p1 *GetGamesParams, p2 ...RequestEditorFn) (*GetGamesHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetGlobalChatBadgesWithResponse(ctx context.Context, p1 ...RequestEditorFn) (*GetGlobalChatBadgesHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetGlobalEmotesWithResponse(ctx context.Context, p1 ...RequestEditorFn) (*GetGlobalEmotesHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetGuestStarInvitesWithResponse(ctx context.Context, p1 *GetGuestStarInvitesParams, p2 ...RequestEditorFn) (*GetGuestStarInvitesHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetGuestStarSessionWithResponse(ctx context.Context, p1 *GetGuestStarSessionParams, p2 ...RequestEditorFn) (*GetGuestStarSessionHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetHypeTrainEventsWithResponse(ctx context.Context, p1 *GetHypeTrainEventsParams, p2 ...RequestEditorFn) (*GetHypeTrainEventsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetModeratedChannelsWithResponse(ctx context.Context, p1 *GetModeratedChannelsParams, p2 ...RequestEditorFn) (*GetModeratedChannelsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetModeratorsWithResponse(ctx context.Context, p1 *GetModeratorsParams, p2 ...RequestEditorFn) (*GetModeratorsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetPollsWithResponse(ctx context.Context, p1 *GetPollsParams, p2 ...RequestEditorFn) (*GetPollsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetPredictionsWithResponse(ctx context.Context, p1 *GetPredictionsParams, p2 ...RequestEditorFn) (*GetPredictionsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetReleasedExtensionsWithResponse(ctx context.Context, p1 *GetReleasedExtensionsParams, p2 ...RequestEditorFn) (*GetReleasedExtensionsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetSharedChatSessionWithResponse(ctx context.Context, p1 *GetSharedChatSessionParams, p2 ...RequestEditorFn) (*GetSharedChatSessionHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetShieldModeStatusWithResponse(ctx context.Context, p1 *GetShieldModeStatusParams, p2 ...RequestEditorFn) (*GetShieldModeStatusHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetStreamKeyWithResponse(ctx context.Context, p1 *GetStreamKeyParams, p2 ...RequestEditorFn) (*GetStreamKeyHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetStreamMarkersWithResponse(ctx context.Context, p1 *GetStreamMarkersParams, p2 ...RequestEditorFn) (*GetStreamMarkersHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetStreamTagsWithResponse(ctx context.Context, p1 *GetStreamTagsParams, p2 ...RequestEditorFn) (*GetStreamTagsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetStreamsWithResponse(ctx context.Context, p1 *GetStreamsParams, p2 ...RequestEditorFn) (*GetStreamsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetTeamsWithResponse(ctx context.Context, p1 *GetTeamsParams, p2 ...RequestEditorFn) (*GetTeamsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetTopGamesWithResponse(ctx context.Context, p1 *GetTopGamesParams, p2 ...RequestEditorFn) (*GetTopGamesHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetUnbanRequestsWithResponse(ctx context.Context, p1 *GetUnbanRequestsParams, p2 ...RequestEditorFn) (*GetUnbanRequestsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetUserActiveExtensionsWithResponse(ctx context.Context, p1 *GetUserActiveExtensionsParams, p2 ...RequestEditorFn) (*GetUserActiveExtensionsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetUserBlockListWithResponse(ctx context.Context, p1 *GetUserBlockListParams, p2 ...RequestEditorFn) (*GetUserBlockListHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetUserChatColorWithResponse(ctx context.Context, p1 *GetUserChatColorParams, p2 ...RequestEditorFn) (*GetUserChatColorHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetUserEmotesWithResponse(ctx context.Context, p1 *GetUserEmotesParams, p2 ...RequestEditorFn) (*GetUserEmotesHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetUserExtensionsWithResponse(ctx context.Context, p1 ...RequestEditorFn) (*GetUserExtensionsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetUsersWithResponse(ctx context.Context, p1 *GetUsersParams, p2 ...RequestEditorFn) (*GetUsersHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetVideosWithResponse(ctx context.Context, p1 *GetVideosParams, p2 ...RequestEditorFn) (*GetVideosHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) GetVipsWithResponse(ctx context.Context, p1 *GetVipsParams, p2 ...RequestEditorFn) (*GetVipsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) ManageHeldAutomodMessagesWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*ManageHeldAutomodMessagesHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) ManageHeldAutomodMessagesWithResponse(ctx context.Context, p1 ManageHeldAutoModMessagesBody, p2 ...RequestEditorFn) (*ManageHeldAutomodMessagesHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) ModifyChannelInformationWithBodyWithResponse(ctx context.Context, p1 *ModifyChannelInformationParams, p2 string, ...) (*ModifyChannelInformationHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) ModifyChannelInformationWithResponse(ctx context.Context, p1 *ModifyChannelInformationParams, ...) (*ModifyChannelInformationHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) RemoveBlockedTermWithResponse(ctx context.Context, p1 *RemoveBlockedTermParams, p2 ...RequestEditorFn) (*RemoveBlockedTermHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) RemoveChannelModeratorWithResponse(ctx context.Context, p1 *RemoveChannelModeratorParams, p2 ...RequestEditorFn) (*RemoveChannelModeratorHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) RemoveChannelVipWithResponse(ctx context.Context, p1 *RemoveChannelVipParams, p2 ...RequestEditorFn) (*RemoveChannelVipHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) ResolveUnbanRequestsWithResponse(ctx context.Context, p1 *ResolveUnbanRequestsParams, p2 ...RequestEditorFn) (*ResolveUnbanRequestsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SearchCategoriesWithResponse(ctx context.Context, p1 *SearchCategoriesParams, p2 ...RequestEditorFn) (*SearchCategoriesHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SearchChannelsWithResponse(ctx context.Context, p1 *SearchChannelsParams, p2 ...RequestEditorFn) (*SearchChannelsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SendAShoutoutWithResponse(ctx context.Context, p1 *SendAShoutoutParams, p2 ...RequestEditorFn) (*SendAShoutoutHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SendChatAnnouncementWithBodyWithResponse(ctx context.Context, p1 *SendChatAnnouncementParams, p2 string, p3 io.Reader, ...) (*SendChatAnnouncementHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SendChatAnnouncementWithResponse(ctx context.Context, p1 *SendChatAnnouncementParams, ...) (*SendChatAnnouncementHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SendChatMessageWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*SendChatMessageHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SendChatMessageWithResponse(ctx context.Context, p1 SendChatMessageBody, p2 ...RequestEditorFn) (*SendChatMessageHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SendExtensionChatMessageWithBodyWithResponse(ctx context.Context, p1 *SendExtensionChatMessageParams, p2 string, ...) (*SendExtensionChatMessageHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SendExtensionChatMessageWithResponse(ctx context.Context, p1 *SendExtensionChatMessageParams, ...) (*SendExtensionChatMessageHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SendExtensionPubsubMessageWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*SendExtensionPubsubMessageHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SendExtensionPubsubMessageWithResponse(ctx context.Context, p1 SendExtensionPubSubMessageBody, p2 ...RequestEditorFn) (*SendExtensionPubsubMessageHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SendGuestStarInviteWithResponse(ctx context.Context, p1 *SendGuestStarInviteParams, p2 ...RequestEditorFn) (*SendGuestStarInviteHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SendWhisperWithBodyWithResponse(ctx context.Context, p1 *SendWhisperParams, p2 string, p3 io.Reader, ...) (*SendWhisperHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SendWhisperWithResponse(ctx context.Context, p1 *SendWhisperParams, p2 SendWhisperBody, ...) (*SendWhisperHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SetExtensionConfigurationSegmentWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*SetExtensionConfigurationSegmentHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SetExtensionConfigurationSegmentWithResponse(ctx context.Context, p1 SetExtensionConfigurationSegmentBody, ...) (*SetExtensionConfigurationSegmentHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SetExtensionRequiredConfigurationWithBodyWithResponse(ctx context.Context, p1 *SetExtensionRequiredConfigurationParams, p2 string, ...) (*SetExtensionRequiredConfigurationHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SetExtensionRequiredConfigurationWithResponse(ctx context.Context, p1 *SetExtensionRequiredConfigurationParams, ...) (*SetExtensionRequiredConfigurationHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) SnoozeNextAdWithResponse(ctx context.Context, p1 *SnoozeNextAdParams, p2 ...RequestEditorFn) (*SnoozeNextAdHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) StartARaidWithResponse(ctx context.Context, p1 *StartARaidParams, p2 ...RequestEditorFn) (*StartARaidHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) StartCommercialWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*StartCommercialHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) StartCommercialWithResponse(ctx context.Context, p1 StartCommercialBody, p2 ...RequestEditorFn) (*StartCommercialHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UnbanUserWithResponse(ctx context.Context, p1 *UnbanUserParams, p2 ...RequestEditorFn) (*UnbanUserHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UnblockUserWithResponse(ctx context.Context, p1 *UnblockUserParams, p2 ...RequestEditorFn) (*UnblockUserHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateAutomodSettingsWithBodyWithResponse(ctx context.Context, p1 *UpdateAutomodSettingsParams, p2 string, p3 io.Reader, ...) (*UpdateAutomodSettingsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateAutomodSettingsWithResponse(ctx context.Context, p1 *UpdateAutomodSettingsParams, ...) (*UpdateAutomodSettingsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateChannelGuestStarSettingsWithBodyWithResponse(ctx context.Context, p1 *UpdateChannelGuestStarSettingsParams, p2 string, ...) (*UpdateChannelGuestStarSettingsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateChannelGuestStarSettingsWithResponse(ctx context.Context, p1 *UpdateChannelGuestStarSettingsParams, ...) (*UpdateChannelGuestStarSettingsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateChannelStreamScheduleSegmentWithBodyWithResponse(ctx context.Context, p1 *UpdateChannelStreamScheduleSegmentParams, p2 string, ...) (*UpdateChannelStreamScheduleSegmentHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateChannelStreamScheduleSegmentWithResponse(ctx context.Context, p1 *UpdateChannelStreamScheduleSegmentParams, ...) (*UpdateChannelStreamScheduleSegmentHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateChannelStreamScheduleWithResponse(ctx context.Context, p1 *UpdateChannelStreamScheduleParams, ...) (*UpdateChannelStreamScheduleHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateChatSettingsWithBodyWithResponse(ctx context.Context, p1 *UpdateChatSettingsParams, p2 string, p3 io.Reader, ...) (*UpdateChatSettingsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateChatSettingsWithResponse(ctx context.Context, p1 *UpdateChatSettingsParams, p2 UpdateChatSettingsBody, ...) (*UpdateChatSettingsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateConduitShardsWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*UpdateConduitShardsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateConduitShardsWithResponse(ctx context.Context, p1 UpdateConduitShardsBody, p2 ...RequestEditorFn) (*UpdateConduitShardsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateConduitsWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*UpdateConduitsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateConduitsWithResponse(ctx context.Context, p1 UpdateConduitsBody, p2 ...RequestEditorFn) (*UpdateConduitsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateCustomRewardWithBodyWithResponse(ctx context.Context, p1 *UpdateCustomRewardParams, p2 string, p3 io.Reader, ...) (*UpdateCustomRewardHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateCustomRewardWithResponse(ctx context.Context, p1 *UpdateCustomRewardParams, p2 UpdateCustomRewardBody, ...) (*UpdateCustomRewardHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateDropsEntitlementsWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*UpdateDropsEntitlementsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateDropsEntitlementsWithResponse(ctx context.Context, p1 UpdateDropsEntitlementsBody, p2 ...RequestEditorFn) (*UpdateDropsEntitlementsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateExtensionBitsProductWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*UpdateExtensionBitsProductHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateExtensionBitsProductWithResponse(ctx context.Context, p1 UpdateExtensionBitsProductBody, p2 ...RequestEditorFn) (*UpdateExtensionBitsProductHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateGuestStarSlotSettingsWithResponse(ctx context.Context, p1 *UpdateGuestStarSlotSettingsParams, ...) (*UpdateGuestStarSlotSettingsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateGuestStarSlotWithResponse(ctx context.Context, p1 *UpdateGuestStarSlotParams, p2 ...RequestEditorFn) (*UpdateGuestStarSlotHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateRedemptionStatusWithBodyWithResponse(ctx context.Context, p1 *UpdateRedemptionStatusParams, p2 string, p3 io.Reader, ...) (*UpdateRedemptionStatusHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateRedemptionStatusWithResponse(ctx context.Context, p1 *UpdateRedemptionStatusParams, ...) (*UpdateRedemptionStatusHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateShieldModeStatusWithBodyWithResponse(ctx context.Context, p1 *UpdateShieldModeStatusParams, p2 string, p3 io.Reader, ...) (*UpdateShieldModeStatusHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateShieldModeStatusWithResponse(ctx context.Context, p1 *UpdateShieldModeStatusParams, ...) (*UpdateShieldModeStatusHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateUserChatColorWithResponse(ctx context.Context, p1 *UpdateUserChatColorParams, p2 ...RequestEditorFn) (*UpdateUserChatColorHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateUserExtensionsWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*UpdateUserExtensionsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateUserExtensionsWithResponse(ctx context.Context, p1 UpdateUserExtensionsBody, p2 ...RequestEditorFn) (*UpdateUserExtensionsHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) UpdateUserWithResponse(ctx context.Context, p1 *UpdateUserParams, p2 ...RequestEditorFn) (*UpdateUserHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) WarnChatUserWithBodyWithResponse(ctx context.Context, p1 *WarnChatUserParams, p2 string, p3 io.Reader, ...) (*WarnChatUserHTTPResponse, error)
- func (w *CircuitWrapperClientWithResponsesCircuit) WarnChatUserWithResponse(ctx context.Context, p1 *WarnChatUserParams, p2 WarnChatUserBody, ...) (*WarnChatUserHTTPResponse, error)
- type CircuitWrapperClientWithResponsesCircuitConfig
- type Client
- func (c *Client) AddBlockedTerm(ctx context.Context, params *AddBlockedTermParams, ...) (*http.Response, error)
- func (c *Client) AddBlockedTermWithBody(ctx context.Context, params *AddBlockedTermParams, contentType string, ...) (*http.Response, error)
- func (c *Client) AddChannelModerator(ctx context.Context, params *AddChannelModeratorParams, ...) (*http.Response, error)
- func (c *Client) AddChannelVip(ctx context.Context, params *AddChannelVipParams, ...) (*http.Response, error)
- func (c *Client) AssignGuestStarSlot(ctx context.Context, params *AssignGuestStarSlotParams, ...) (*http.Response, error)
- func (c *Client) BanUser(ctx context.Context, params *BanUserParams, body BanUserJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) BanUserWithBody(ctx context.Context, params *BanUserParams, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) BlockUser(ctx context.Context, params *BlockUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CancelARaid(ctx context.Context, params *CancelARaidParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CheckAutomodStatus(ctx context.Context, params *CheckAutomodStatusParams, ...) (*http.Response, error)
- func (c *Client) CheckAutomodStatusWithBody(ctx context.Context, params *CheckAutomodStatusParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CheckUserSubscription(ctx context.Context, params *CheckUserSubscriptionParams, ...) (*http.Response, error)
- func (c *Client) CreateChannelStreamScheduleSegment(ctx context.Context, params *CreateChannelStreamScheduleSegmentParams, ...) (*http.Response, error)
- func (c *Client) CreateChannelStreamScheduleSegmentWithBody(ctx context.Context, params *CreateChannelStreamScheduleSegmentParams, ...) (*http.Response, error)
- func (c *Client) CreateClip(ctx context.Context, params *CreateClipParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CreateConduits(ctx context.Context, body CreateConduitsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateConduitsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateCustomRewards(ctx context.Context, params *CreateCustomRewardsParams, ...) (*http.Response, error)
- func (c *Client) CreateCustomRewardsWithBody(ctx context.Context, params *CreateCustomRewardsParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateEventsubSubscription(ctx context.Context, body CreateEventsubSubscriptionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateEventsubSubscriptionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateExtensionSecret(ctx context.Context, params *CreateExtensionSecretParams, ...) (*http.Response, error)
- func (c *Client) CreateGuestStarSession(ctx context.Context, params *CreateGuestStarSessionParams, ...) (*http.Response, error)
- func (c *Client) CreatePoll(ctx context.Context, body CreatePollJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreatePollWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreatePrediction(ctx context.Context, body CreatePredictionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreatePredictionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateStreamMarker(ctx context.Context, body CreateStreamMarkerJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateStreamMarkerWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteChannelStreamScheduleSegment(ctx context.Context, params *DeleteChannelStreamScheduleSegmentParams, ...) (*http.Response, error)
- func (c *Client) DeleteChatMessages(ctx context.Context, params *DeleteChatMessagesParams, ...) (*http.Response, error)
- func (c *Client) DeleteConduit(ctx context.Context, params *DeleteConduitParams, ...) (*http.Response, error)
- func (c *Client) DeleteCustomReward(ctx context.Context, params *DeleteCustomRewardParams, ...) (*http.Response, error)
- func (c *Client) DeleteEventsubSubscription(ctx context.Context, params *DeleteEventsubSubscriptionParams, ...) (*http.Response, error)
- func (c *Client) DeleteGuestStarInvite(ctx context.Context, params *DeleteGuestStarInviteParams, ...) (*http.Response, error)
- func (c *Client) DeleteGuestStarSlot(ctx context.Context, params *DeleteGuestStarSlotParams, ...) (*http.Response, error)
- func (c *Client) DeleteVideos(ctx context.Context, params *DeleteVideosParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) EndGuestStarSession(ctx context.Context, params *EndGuestStarSessionParams, ...) (*http.Response, error)
- func (c *Client) EndPoll(ctx context.Context, body EndPollJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EndPollWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EndPrediction(ctx context.Context, body EndPredictionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EndPredictionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetAdSchedule(ctx context.Context, params *GetAdScheduleParams, ...) (*http.Response, error)
- func (c *Client) GetAllStreamTags(ctx context.Context, params *GetAllStreamTagsParams, ...) (*http.Response, error)
- func (c *Client) GetAutomodSettings(ctx context.Context, params *GetAutomodSettingsParams, ...) (*http.Response, error)
- func (c *Client) GetBannedUsers(ctx context.Context, params *GetBannedUsersParams, ...) (*http.Response, error)
- func (c *Client) GetBitsLeaderboard(ctx context.Context, params *GetBitsLeaderboardParams, ...) (*http.Response, error)
- func (c *Client) GetBlockedTerms(ctx context.Context, params *GetBlockedTermsParams, ...) (*http.Response, error)
- func (c *Client) GetBroadcasterSubscriptions(ctx context.Context, params *GetBroadcasterSubscriptionsParams, ...) (*http.Response, error)
- func (c *Client) GetChannelChatBadges(ctx context.Context, params *GetChannelChatBadgesParams, ...) (*http.Response, error)
- func (c *Client) GetChannelEditors(ctx context.Context, params *GetChannelEditorsParams, ...) (*http.Response, error)
- func (c *Client) GetChannelEmotes(ctx context.Context, params *GetChannelEmotesParams, ...) (*http.Response, error)
- func (c *Client) GetChannelFollowers(ctx context.Context, params *GetChannelFollowersParams, ...) (*http.Response, error)
- func (c *Client) GetChannelGuestStarSettings(ctx context.Context, params *GetChannelGuestStarSettingsParams, ...) (*http.Response, error)
- func (c *Client) GetChannelIcalendar(ctx context.Context, params *GetChannelIcalendarParams, ...) (*http.Response, error)
- func (c *Client) GetChannelInformation(ctx context.Context, params *GetChannelInformationParams, ...) (*http.Response, error)
- func (c *Client) GetChannelStreamSchedule(ctx context.Context, params *GetChannelStreamScheduleParams, ...) (*http.Response, error)
- func (c *Client) GetChannelTeams(ctx context.Context, params *GetChannelTeamsParams, ...) (*http.Response, error)
- func (c *Client) GetCharityCampaign(ctx context.Context, params *GetCharityCampaignParams, ...) (*http.Response, error)
- func (c *Client) GetCharityCampaignDonations(ctx context.Context, params *GetCharityCampaignDonationsParams, ...) (*http.Response, error)
- func (c *Client) GetChatSettings(ctx context.Context, params *GetChatSettingsParams, ...) (*http.Response, error)
- func (c *Client) GetChatters(ctx context.Context, params *GetChattersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCheermotes(ctx context.Context, params *GetCheermotesParams, ...) (*http.Response, error)
- func (c *Client) GetClips(ctx context.Context, params *GetClipsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetConduitShards(ctx context.Context, params *GetConduitShardsParams, ...) (*http.Response, error)
- func (c *Client) GetConduits(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetContentClassificationLabels(ctx context.Context, params *GetContentClassificationLabelsParams, ...) (*http.Response, error)
- func (c *Client) GetCreatorGoals(ctx context.Context, params *GetCreatorGoalsParams, ...) (*http.Response, error)
- func (c *Client) GetCustomReward(ctx context.Context, params *GetCustomRewardParams, ...) (*http.Response, error)
- func (c *Client) GetCustomRewardRedemption(ctx context.Context, params *GetCustomRewardRedemptionParams, ...) (*http.Response, error)
- func (c *Client) GetDropsEntitlements(ctx context.Context, params *GetDropsEntitlementsParams, ...) (*http.Response, error)
- func (c *Client) GetEmoteSets(ctx context.Context, params *GetEmoteSetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEventsubSubscriptions(ctx context.Context, params *GetEventsubSubscriptionsParams, ...) (*http.Response, error)
- func (c *Client) GetExtensionAnalytics(ctx context.Context, params *GetExtensionAnalyticsParams, ...) (*http.Response, error)
- func (c *Client) GetExtensionBitsProducts(ctx context.Context, params *GetExtensionBitsProductsParams, ...) (*http.Response, error)
- func (c *Client) GetExtensionConfigurationSegment(ctx context.Context, params *GetExtensionConfigurationSegmentParams, ...) (*http.Response, error)
- func (c *Client) GetExtensionLiveChannels(ctx context.Context, params *GetExtensionLiveChannelsParams, ...) (*http.Response, error)
- func (c *Client) GetExtensionSecrets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetExtensionTransactions(ctx context.Context, params *GetExtensionTransactionsParams, ...) (*http.Response, error)
- func (c *Client) GetExtensions(ctx context.Context, params *GetExtensionsParams, ...) (*http.Response, error)
- func (c *Client) GetFollowedChannels(ctx context.Context, params *GetFollowedChannelsParams, ...) (*http.Response, error)
- func (c *Client) GetFollowedStreams(ctx context.Context, params *GetFollowedStreamsParams, ...) (*http.Response, error)
- func (c *Client) GetGameAnalytics(ctx context.Context, params *GetGameAnalyticsParams, ...) (*http.Response, error)
- func (c *Client) GetGames(ctx context.Context, params *GetGamesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetGlobalChatBadges(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetGlobalEmotes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetGuestStarInvites(ctx context.Context, params *GetGuestStarInvitesParams, ...) (*http.Response, error)
- func (c *Client) GetGuestStarSession(ctx context.Context, params *GetGuestStarSessionParams, ...) (*http.Response, error)
- func (c *Client) GetHypeTrainEvents(ctx context.Context, params *GetHypeTrainEventsParams, ...) (*http.Response, error)
- func (c *Client) GetModeratedChannels(ctx context.Context, params *GetModeratedChannelsParams, ...) (*http.Response, error)
- func (c *Client) GetModerators(ctx context.Context, params *GetModeratorsParams, ...) (*http.Response, error)
- func (c *Client) GetPolls(ctx context.Context, params *GetPollsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPredictions(ctx context.Context, params *GetPredictionsParams, ...) (*http.Response, error)
- func (c *Client) GetReleasedExtensions(ctx context.Context, params *GetReleasedExtensionsParams, ...) (*http.Response, error)
- func (c *Client) GetSharedChatSession(ctx context.Context, params *GetSharedChatSessionParams, ...) (*http.Response, error)
- func (c *Client) GetShieldModeStatus(ctx context.Context, params *GetShieldModeStatusParams, ...) (*http.Response, error)
- func (c *Client) GetStreamKey(ctx context.Context, params *GetStreamKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetStreamMarkers(ctx context.Context, params *GetStreamMarkersParams, ...) (*http.Response, error)
- func (c *Client) GetStreamTags(ctx context.Context, params *GetStreamTagsParams, ...) (*http.Response, error)
- func (c *Client) GetStreams(ctx context.Context, params *GetStreamsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTeams(ctx context.Context, params *GetTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTopGames(ctx context.Context, params *GetTopGamesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUnbanRequests(ctx context.Context, params *GetUnbanRequestsParams, ...) (*http.Response, error)
- func (c *Client) GetUserActiveExtensions(ctx context.Context, params *GetUserActiveExtensionsParams, ...) (*http.Response, error)
- func (c *Client) GetUserBlockList(ctx context.Context, params *GetUserBlockListParams, ...) (*http.Response, error)
- func (c *Client) GetUserChatColor(ctx context.Context, params *GetUserChatColorParams, ...) (*http.Response, error)
- func (c *Client) GetUserEmotes(ctx context.Context, params *GetUserEmotesParams, ...) (*http.Response, error)
- func (c *Client) GetUserExtensions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUsers(ctx context.Context, params *GetUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetVideos(ctx context.Context, params *GetVideosParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetVips(ctx context.Context, params *GetVipsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ManageHeldAutomodMessages(ctx context.Context, body ManageHeldAutomodMessagesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ManageHeldAutomodMessagesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ModifyChannelInformation(ctx context.Context, params *ModifyChannelInformationParams, ...) (*http.Response, error)
- func (c *Client) ModifyChannelInformationWithBody(ctx context.Context, params *ModifyChannelInformationParams, ...) (*http.Response, error)
- func (c *Client) RemoveBlockedTerm(ctx context.Context, params *RemoveBlockedTermParams, ...) (*http.Response, error)
- func (c *Client) RemoveChannelModerator(ctx context.Context, params *RemoveChannelModeratorParams, ...) (*http.Response, error)
- func (c *Client) RemoveChannelVip(ctx context.Context, params *RemoveChannelVipParams, ...) (*http.Response, error)
- func (c *Client) ResolveUnbanRequests(ctx context.Context, params *ResolveUnbanRequestsParams, ...) (*http.Response, error)
- func (c *Client) SearchCategories(ctx context.Context, params *SearchCategoriesParams, ...) (*http.Response, error)
- func (c *Client) SearchChannels(ctx context.Context, params *SearchChannelsParams, ...) (*http.Response, error)
- func (c *Client) SendAShoutout(ctx context.Context, params *SendAShoutoutParams, ...) (*http.Response, error)
- func (c *Client) SendChatAnnouncement(ctx context.Context, params *SendChatAnnouncementParams, ...) (*http.Response, error)
- func (c *Client) SendChatAnnouncementWithBody(ctx context.Context, params *SendChatAnnouncementParams, contentType string, ...) (*http.Response, error)
- func (c *Client) SendChatMessage(ctx context.Context, body SendChatMessageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendChatMessageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendExtensionChatMessage(ctx context.Context, params *SendExtensionChatMessageParams, ...) (*http.Response, error)
- func (c *Client) SendExtensionChatMessageWithBody(ctx context.Context, params *SendExtensionChatMessageParams, ...) (*http.Response, error)
- func (c *Client) SendExtensionPubsubMessage(ctx context.Context, body SendExtensionPubsubMessageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendExtensionPubsubMessageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendGuestStarInvite(ctx context.Context, params *SendGuestStarInviteParams, ...) (*http.Response, error)
- func (c *Client) SendWhisper(ctx context.Context, params *SendWhisperParams, ...) (*http.Response, error)
- func (c *Client) SendWhisperWithBody(ctx context.Context, params *SendWhisperParams, contentType string, ...) (*http.Response, error)
- func (c *Client) SetExtensionConfigurationSegment(ctx context.Context, body SetExtensionConfigurationSegmentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetExtensionConfigurationSegmentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetExtensionRequiredConfiguration(ctx context.Context, params *SetExtensionRequiredConfigurationParams, ...) (*http.Response, error)
- func (c *Client) SetExtensionRequiredConfigurationWithBody(ctx context.Context, params *SetExtensionRequiredConfigurationParams, ...) (*http.Response, error)
- func (c *Client) SnoozeNextAd(ctx context.Context, params *SnoozeNextAdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) StartARaid(ctx context.Context, params *StartARaidParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) StartCommercial(ctx context.Context, body StartCommercialJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) StartCommercialWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UnbanUser(ctx context.Context, params *UnbanUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UnblockUser(ctx context.Context, params *UnblockUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateAutomodSettings(ctx context.Context, params *UpdateAutomodSettingsParams, ...) (*http.Response, error)
- func (c *Client) UpdateAutomodSettingsWithBody(ctx context.Context, params *UpdateAutomodSettingsParams, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateChannelGuestStarSettings(ctx context.Context, params *UpdateChannelGuestStarSettingsParams, ...) (*http.Response, error)
- func (c *Client) UpdateChannelGuestStarSettingsWithBody(ctx context.Context, params *UpdateChannelGuestStarSettingsParams, ...) (*http.Response, error)
- func (c *Client) UpdateChannelStreamSchedule(ctx context.Context, params *UpdateChannelStreamScheduleParams, ...) (*http.Response, error)
- func (c *Client) UpdateChannelStreamScheduleSegment(ctx context.Context, params *UpdateChannelStreamScheduleSegmentParams, ...) (*http.Response, error)
- func (c *Client) UpdateChannelStreamScheduleSegmentWithBody(ctx context.Context, params *UpdateChannelStreamScheduleSegmentParams, ...) (*http.Response, error)
- func (c *Client) UpdateChatSettings(ctx context.Context, params *UpdateChatSettingsParams, ...) (*http.Response, error)
- func (c *Client) UpdateChatSettingsWithBody(ctx context.Context, params *UpdateChatSettingsParams, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateConduitShards(ctx context.Context, body UpdateConduitShardsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateConduitShardsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateConduits(ctx context.Context, body UpdateConduitsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateConduitsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateCustomReward(ctx context.Context, params *UpdateCustomRewardParams, ...) (*http.Response, error)
- func (c *Client) UpdateCustomRewardWithBody(ctx context.Context, params *UpdateCustomRewardParams, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateDropsEntitlements(ctx context.Context, body UpdateDropsEntitlementsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateDropsEntitlementsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateExtensionBitsProduct(ctx context.Context, body UpdateExtensionBitsProductJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateExtensionBitsProductWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateGuestStarSlot(ctx context.Context, params *UpdateGuestStarSlotParams, ...) (*http.Response, error)
- func (c *Client) UpdateGuestStarSlotSettings(ctx context.Context, params *UpdateGuestStarSlotSettingsParams, ...) (*http.Response, error)
- func (c *Client) UpdateRedemptionStatus(ctx context.Context, params *UpdateRedemptionStatusParams, ...) (*http.Response, error)
- func (c *Client) UpdateRedemptionStatusWithBody(ctx context.Context, params *UpdateRedemptionStatusParams, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateShieldModeStatus(ctx context.Context, params *UpdateShieldModeStatusParams, ...) (*http.Response, error)
- func (c *Client) UpdateShieldModeStatusWithBody(ctx context.Context, params *UpdateShieldModeStatusParams, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateUser(ctx context.Context, params *UpdateUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateUserChatColor(ctx context.Context, params *UpdateUserChatColorParams, ...) (*http.Response, error)
- func (c *Client) UpdateUserExtensions(ctx context.Context, body UpdateUserExtensionsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateUserExtensionsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) WarnChatUser(ctx context.Context, params *WarnChatUserParams, ...) (*http.Response, error)
- func (c *Client) WarnChatUserWithBody(ctx context.Context, params *WarnChatUserParams, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddBlockedTermWithBodyWithResponse(ctx context.Context, params *AddBlockedTermParams, contentType string, ...) (r *AddBlockedTermHTTPResponse, err error)
- func (c *ClientWithResponses) AddBlockedTermWithResponse(ctx context.Context, params *AddBlockedTermParams, ...) (r *AddBlockedTermHTTPResponse, err error)
- func (c *ClientWithResponses) AddChannelModeratorWithResponse(ctx context.Context, params *AddChannelModeratorParams, ...) (r *AddChannelModeratorHTTPResponse, err error)
- func (c *ClientWithResponses) AddChannelVipWithResponse(ctx context.Context, params *AddChannelVipParams, ...) (r *AddChannelVipHTTPResponse, err error)
- func (c *ClientWithResponses) AssignGuestStarSlotWithResponse(ctx context.Context, params *AssignGuestStarSlotParams, ...) (r *AssignGuestStarSlotHTTPResponse, err error)
- func (c *ClientWithResponses) BanUserWithBodyWithResponse(ctx context.Context, params *BanUserParams, contentType string, body io.Reader, ...) (r *BanUserHTTPResponse, err error)
- func (c *ClientWithResponses) BanUserWithResponse(ctx context.Context, params *BanUserParams, body BanUserJSONRequestBody, ...) (r *BanUserHTTPResponse, err error)
- func (c *ClientWithResponses) BlockUserWithResponse(ctx context.Context, params *BlockUserParams, reqEditors ...RequestEditorFn) (r *BlockUserHTTPResponse, err error)
- func (c *ClientWithResponses) CancelARaidWithResponse(ctx context.Context, params *CancelARaidParams, reqEditors ...RequestEditorFn) (r *CancelARaidHTTPResponse, err error)
- func (c *ClientWithResponses) CheckAutomodStatusWithBodyWithResponse(ctx context.Context, params *CheckAutomodStatusParams, contentType string, ...) (r *CheckAutomodStatusHTTPResponse, err error)
- func (c *ClientWithResponses) CheckAutomodStatusWithResponse(ctx context.Context, params *CheckAutomodStatusParams, ...) (r *CheckAutomodStatusHTTPResponse, err error)
- func (c *ClientWithResponses) CheckUserSubscriptionWithResponse(ctx context.Context, params *CheckUserSubscriptionParams, ...) (r *CheckUserSubscriptionHTTPResponse, err error)
- func (c *ClientWithResponses) CreateChannelStreamScheduleSegmentWithBodyWithResponse(ctx context.Context, params *CreateChannelStreamScheduleSegmentParams, ...) (r *CreateChannelStreamScheduleSegmentHTTPResponse, err error)
- func (c *ClientWithResponses) CreateChannelStreamScheduleSegmentWithResponse(ctx context.Context, params *CreateChannelStreamScheduleSegmentParams, ...) (r *CreateChannelStreamScheduleSegmentHTTPResponse, err error)
- func (c *ClientWithResponses) CreateClipWithResponse(ctx context.Context, params *CreateClipParams, reqEditors ...RequestEditorFn) (r *CreateClipHTTPResponse, err error)
- func (c *ClientWithResponses) CreateConduitsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (r *CreateConduitsHTTPResponse, err error)
- func (c *ClientWithResponses) CreateConduitsWithResponse(ctx context.Context, body CreateConduitsJSONRequestBody, ...) (r *CreateConduitsHTTPResponse, err error)
- func (c *ClientWithResponses) CreateCustomRewardsWithBodyWithResponse(ctx context.Context, params *CreateCustomRewardsParams, contentType string, ...) (r *CreateCustomRewardsHTTPResponse, err error)
- func (c *ClientWithResponses) CreateCustomRewardsWithResponse(ctx context.Context, params *CreateCustomRewardsParams, ...) (r *CreateCustomRewardsHTTPResponse, err error)
- func (c *ClientWithResponses) CreateEventsubSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (r *CreateEventsubSubscriptionHTTPResponse, err error)
- func (c *ClientWithResponses) CreateEventsubSubscriptionWithResponse(ctx context.Context, body CreateEventsubSubscriptionJSONRequestBody, ...) (r *CreateEventsubSubscriptionHTTPResponse, err error)
- func (c *ClientWithResponses) CreateExtensionSecretWithResponse(ctx context.Context, params *CreateExtensionSecretParams, ...) (r *CreateExtensionSecretHTTPResponse, err error)
- func (c *ClientWithResponses) CreateGuestStarSessionWithResponse(ctx context.Context, params *CreateGuestStarSessionParams, ...) (r *CreateGuestStarSessionHTTPResponse, err error)
- func (c *ClientWithResponses) CreatePollWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (r *CreatePollHTTPResponse, err error)
- func (c *ClientWithResponses) CreatePollWithResponse(ctx context.Context, body CreatePollJSONRequestBody, ...) (r *CreatePollHTTPResponse, err error)
- func (c *ClientWithResponses) CreatePredictionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (r *CreatePredictionHTTPResponse, err error)
- func (c *ClientWithResponses) CreatePredictionWithResponse(ctx context.Context, body CreatePredictionJSONRequestBody, ...) (r *CreatePredictionHTTPResponse, err error)
- func (c *ClientWithResponses) CreateStreamMarkerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (r *CreateStreamMarkerHTTPResponse, err error)
- func (c *ClientWithResponses) CreateStreamMarkerWithResponse(ctx context.Context, body CreateStreamMarkerJSONRequestBody, ...) (r *CreateStreamMarkerHTTPResponse, err error)
- func (c *ClientWithResponses) DeleteChannelStreamScheduleSegmentWithResponse(ctx context.Context, params *DeleteChannelStreamScheduleSegmentParams, ...) (r *DeleteChannelStreamScheduleSegmentHTTPResponse, err error)
- func (c *ClientWithResponses) DeleteChatMessagesWithResponse(ctx context.Context, params *DeleteChatMessagesParams, ...) (r *DeleteChatMessagesHTTPResponse, err error)
- func (c *ClientWithResponses) DeleteConduitWithResponse(ctx context.Context, params *DeleteConduitParams, ...) (r *DeleteConduitHTTPResponse, err error)
- func (c *ClientWithResponses) DeleteCustomRewardWithResponse(ctx context.Context, params *DeleteCustomRewardParams, ...) (r *DeleteCustomRewardHTTPResponse, err error)
- func (c *ClientWithResponses) DeleteEventsubSubscriptionWithResponse(ctx context.Context, params *DeleteEventsubSubscriptionParams, ...) (r *DeleteEventsubSubscriptionHTTPResponse, err error)
- func (c *ClientWithResponses) DeleteGuestStarInviteWithResponse(ctx context.Context, params *DeleteGuestStarInviteParams, ...) (r *DeleteGuestStarInviteHTTPResponse, err error)
- func (c *ClientWithResponses) DeleteGuestStarSlotWithResponse(ctx context.Context, params *DeleteGuestStarSlotParams, ...) (r *DeleteGuestStarSlotHTTPResponse, err error)
- func (c *ClientWithResponses) DeleteVideosWithResponse(ctx context.Context, params *DeleteVideosParams, reqEditors ...RequestEditorFn) (r *DeleteVideosHTTPResponse, err error)
- func (c *ClientWithResponses) EndGuestStarSessionWithResponse(ctx context.Context, params *EndGuestStarSessionParams, ...) (r *EndGuestStarSessionHTTPResponse, err error)
- func (c *ClientWithResponses) EndPollWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (r *EndPollHTTPResponse, err error)
- func (c *ClientWithResponses) EndPollWithResponse(ctx context.Context, body EndPollJSONRequestBody, ...) (r *EndPollHTTPResponse, err error)
- func (c *ClientWithResponses) EndPredictionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (r *EndPredictionHTTPResponse, err error)
- func (c *ClientWithResponses) EndPredictionWithResponse(ctx context.Context, body EndPredictionJSONRequestBody, ...) (r *EndPredictionHTTPResponse, err error)
- func (c *ClientWithResponses) GetAdScheduleWithResponse(ctx context.Context, params *GetAdScheduleParams, ...) (r *GetAdScheduleHTTPResponse, err error)
- func (c *ClientWithResponses) GetAllStreamTagsWithResponse(ctx context.Context, params *GetAllStreamTagsParams, ...) (r *GetAllStreamTagsHTTPResponse, err error)
- func (c *ClientWithResponses) GetAutomodSettingsWithResponse(ctx context.Context, params *GetAutomodSettingsParams, ...) (r *GetAutomodSettingsHTTPResponse, err error)
- func (c *ClientWithResponses) GetBannedUsersWithResponse(ctx context.Context, params *GetBannedUsersParams, ...) (r *GetBannedUsersHTTPResponse, err error)
- func (c *ClientWithResponses) GetBitsLeaderboardWithResponse(ctx context.Context, params *GetBitsLeaderboardParams, ...) (r *GetBitsLeaderboardHTTPResponse, err error)
- func (c *ClientWithResponses) GetBlockedTermsWithResponse(ctx context.Context, params *GetBlockedTermsParams, ...) (r *GetBlockedTermsHTTPResponse, err error)
- func (c *ClientWithResponses) GetBroadcasterSubscriptionsWithResponse(ctx context.Context, params *GetBroadcasterSubscriptionsParams, ...) (r *GetBroadcasterSubscriptionsHTTPResponse, err error)
- func (c *ClientWithResponses) GetChannelChatBadgesWithResponse(ctx context.Context, params *GetChannelChatBadgesParams, ...) (r *GetChannelChatBadgesHTTPResponse, err error)
- func (c *ClientWithResponses) GetChannelEditorsWithResponse(ctx context.Context, params *GetChannelEditorsParams, ...) (r *GetChannelEditorsHTTPResponse, err error)
- func (c *ClientWithResponses) GetChannelEmotesWithResponse(ctx context.Context, params *GetChannelEmotesParams, ...) (r *GetChannelEmotesHTTPResponse, err error)
- func (c *ClientWithResponses) GetChannelFollowersWithResponse(ctx context.Context, params *GetChannelFollowersParams, ...) (r *GetChannelFollowersHTTPResponse, err error)
- func (c *ClientWithResponses) GetChannelGuestStarSettingsWithResponse(ctx context.Context, params *GetChannelGuestStarSettingsParams, ...) (r *GetChannelGuestStarSettingsHTTPResponse, err error)
- func (c *ClientWithResponses) GetChannelIcalendarWithResponse(ctx context.Context, params *GetChannelIcalendarParams, ...) (r *GetChannelIcalendarHTTPResponse, err error)
- func (c *ClientWithResponses) GetChannelInformationWithResponse(ctx context.Context, params *GetChannelInformationParams, ...) (r *GetChannelInformationHTTPResponse, err error)
- func (c *ClientWithResponses) GetChannelStreamScheduleWithResponse(ctx context.Context, params *GetChannelStreamScheduleParams, ...) (r *GetChannelStreamScheduleHTTPResponse, err error)
- func (c *ClientWithResponses) GetChannelTeamsWithResponse(ctx context.Context, params *GetChannelTeamsParams, ...) (r *GetChannelTeamsHTTPResponse, err error)
- func (c *ClientWithResponses) GetCharityCampaignDonationsWithResponse(ctx context.Context, params *GetCharityCampaignDonationsParams, ...) (r *GetCharityCampaignDonationsHTTPResponse, err error)
- func (c *ClientWithResponses) GetCharityCampaignWithResponse(ctx context.Context, params *GetCharityCampaignParams, ...) (r *GetCharityCampaignHTTPResponse, err error)
- func (c *ClientWithResponses) GetChatSettingsWithResponse(ctx context.Context, params *GetChatSettingsParams, ...) (r *GetChatSettingsHTTPResponse, err error)
- func (c *ClientWithResponses) GetChattersWithResponse(ctx context.Context, params *GetChattersParams, reqEditors ...RequestEditorFn) (r *GetChattersHTTPResponse, err error)
- func (c *ClientWithResponses) GetCheermotesWithResponse(ctx context.Context, params *GetCheermotesParams, ...) (r *GetCheermotesHTTPResponse, err error)
- func (c *ClientWithResponses) GetClipsWithResponse(ctx context.Context, params *GetClipsParams, reqEditors ...RequestEditorFn) (r *GetClipsHTTPResponse, err error)
- func (c *ClientWithResponses) GetConduitShardsWithResponse(ctx context.Context, params *GetConduitShardsParams, ...) (r *GetConduitShardsHTTPResponse, err error)
- func (c *ClientWithResponses) GetConduitsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (r *GetConduitsHTTPResponse, err error)
- func (c *ClientWithResponses) GetContentClassificationLabelsWithResponse(ctx context.Context, params *GetContentClassificationLabelsParams, ...) (r *GetContentClassificationLabelsHTTPResponse, err error)
- func (c *ClientWithResponses) GetCreatorGoalsWithResponse(ctx context.Context, params *GetCreatorGoalsParams, ...) (r *GetCreatorGoalsHTTPResponse, err error)
- func (c *ClientWithResponses) GetCustomRewardRedemptionWithResponse(ctx context.Context, params *GetCustomRewardRedemptionParams, ...) (r *GetCustomRewardRedemptionHTTPResponse, err error)
- func (c *ClientWithResponses) GetCustomRewardWithResponse(ctx context.Context, params *GetCustomRewardParams, ...) (r *GetCustomRewardHTTPResponse, err error)
- func (c *ClientWithResponses) GetDropsEntitlementsWithResponse(ctx context.Context, params *GetDropsEntitlementsParams, ...) (r *GetDropsEntitlementsHTTPResponse, err error)
- func (c *ClientWithResponses) GetEmoteSetsWithResponse(ctx context.Context, params *GetEmoteSetsParams, reqEditors ...RequestEditorFn) (r *GetEmoteSetsHTTPResponse, err error)
- func (c *ClientWithResponses) GetEventsubSubscriptionsWithResponse(ctx context.Context, params *GetEventsubSubscriptionsParams, ...) (r *GetEventsubSubscriptionsHTTPResponse, err error)
- func (c *ClientWithResponses) GetExtensionAnalyticsWithResponse(ctx context.Context, params *GetExtensionAnalyticsParams, ...) (r *GetExtensionAnalyticsHTTPResponse, err error)
- func (c *ClientWithResponses) GetExtensionBitsProductsWithResponse(ctx context.Context, params *GetExtensionBitsProductsParams, ...) (r *GetExtensionBitsProductsHTTPResponse, err error)
- func (c *ClientWithResponses) GetExtensionConfigurationSegmentWithResponse(ctx context.Context, params *GetExtensionConfigurationSegmentParams, ...) (r *GetExtensionConfigurationSegmentHTTPResponse, err error)
- func (c *ClientWithResponses) GetExtensionLiveChannelsWithResponse(ctx context.Context, params *GetExtensionLiveChannelsParams, ...) (r *GetExtensionLiveChannelsHTTPResponse, err error)
- func (c *ClientWithResponses) GetExtensionSecretsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (r *GetExtensionSecretsHTTPResponse, err error)
- func (c *ClientWithResponses) GetExtensionTransactionsWithResponse(ctx context.Context, params *GetExtensionTransactionsParams, ...) (r *GetExtensionTransactionsHTTPResponse, err error)
- func (c *ClientWithResponses) GetExtensionsWithResponse(ctx context.Context, params *GetExtensionsParams, ...) (r *GetExtensionsHTTPResponse, err error)
- func (c *ClientWithResponses) GetFollowedChannelsWithResponse(ctx context.Context, params *GetFollowedChannelsParams, ...) (r *GetFollowedChannelsHTTPResponse, err error)
- func (c *ClientWithResponses) GetFollowedStreamsWithResponse(ctx context.Context, params *GetFollowedStreamsParams, ...) (r *GetFollowedStreamsHTTPResponse, err error)
- func (c *ClientWithResponses) GetGameAnalyticsWithResponse(ctx context.Context, params *GetGameAnalyticsParams, ...) (r *GetGameAnalyticsHTTPResponse, err error)
- func (c *ClientWithResponses) GetGamesWithResponse(ctx context.Context, params *GetGamesParams, reqEditors ...RequestEditorFn) (r *GetGamesHTTPResponse, err error)
- func (c *ClientWithResponses) GetGlobalChatBadgesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (r *GetGlobalChatBadgesHTTPResponse, err error)
- func (c *ClientWithResponses) GetGlobalEmotesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (r *GetGlobalEmotesHTTPResponse, err error)
- func (c *ClientWithResponses) GetGuestStarInvitesWithResponse(ctx context.Context, params *GetGuestStarInvitesParams, ...) (r *GetGuestStarInvitesHTTPResponse, err error)
- func (c *ClientWithResponses) GetGuestStarSessionWithResponse(ctx context.Context, params *GetGuestStarSessionParams, ...) (r *GetGuestStarSessionHTTPResponse, err error)
- func (c *ClientWithResponses) GetHypeTrainEventsWithResponse(ctx context.Context, params *GetHypeTrainEventsParams, ...) (r *GetHypeTrainEventsHTTPResponse, err error)
- func (c *ClientWithResponses) GetModeratedChannelsWithResponse(ctx context.Context, params *GetModeratedChannelsParams, ...) (r *GetModeratedChannelsHTTPResponse, err error)
- func (c *ClientWithResponses) GetModeratorsWithResponse(ctx context.Context, params *GetModeratorsParams, ...) (r *GetModeratorsHTTPResponse, err error)
- func (c *ClientWithResponses) GetPollsWithResponse(ctx context.Context, params *GetPollsParams, reqEditors ...RequestEditorFn) (r *GetPollsHTTPResponse, err error)
- func (c *ClientWithResponses) GetPredictionsWithResponse(ctx context.Context, params *GetPredictionsParams, ...) (r *GetPredictionsHTTPResponse, err error)
- func (c *ClientWithResponses) GetReleasedExtensionsWithResponse(ctx context.Context, params *GetReleasedExtensionsParams, ...) (r *GetReleasedExtensionsHTTPResponse, err error)
- func (c *ClientWithResponses) GetSharedChatSessionWithResponse(ctx context.Context, params *GetSharedChatSessionParams, ...) (r *GetSharedChatSessionHTTPResponse, err error)
- func (c *ClientWithResponses) GetShieldModeStatusWithResponse(ctx context.Context, params *GetShieldModeStatusParams, ...) (r *GetShieldModeStatusHTTPResponse, err error)
- func (c *ClientWithResponses) GetStreamKeyWithResponse(ctx context.Context, params *GetStreamKeyParams, reqEditors ...RequestEditorFn) (r *GetStreamKeyHTTPResponse, err error)
- func (c *ClientWithResponses) GetStreamMarkersWithResponse(ctx context.Context, params *GetStreamMarkersParams, ...) (r *GetStreamMarkersHTTPResponse, err error)
- func (c *ClientWithResponses) GetStreamTagsWithResponse(ctx context.Context, params *GetStreamTagsParams, ...) (r *GetStreamTagsHTTPResponse, err error)
- func (c *ClientWithResponses) GetStreamsWithResponse(ctx context.Context, params *GetStreamsParams, reqEditors ...RequestEditorFn) (r *GetStreamsHTTPResponse, err error)
- func (c *ClientWithResponses) GetTeamsWithResponse(ctx context.Context, params *GetTeamsParams, reqEditors ...RequestEditorFn) (r *GetTeamsHTTPResponse, err error)
- func (c *ClientWithResponses) GetTopGamesWithResponse(ctx context.Context, params *GetTopGamesParams, reqEditors ...RequestEditorFn) (r *GetTopGamesHTTPResponse, err error)
- func (c *ClientWithResponses) GetUnbanRequestsWithResponse(ctx context.Context, params *GetUnbanRequestsParams, ...) (r *GetUnbanRequestsHTTPResponse, err error)
- func (c *ClientWithResponses) GetUserActiveExtensionsWithResponse(ctx context.Context, params *GetUserActiveExtensionsParams, ...) (r *GetUserActiveExtensionsHTTPResponse, err error)
- func (c *ClientWithResponses) GetUserBlockListWithResponse(ctx context.Context, params *GetUserBlockListParams, ...) (r *GetUserBlockListHTTPResponse, err error)
- func (c *ClientWithResponses) GetUserChatColorWithResponse(ctx context.Context, params *GetUserChatColorParams, ...) (r *GetUserChatColorHTTPResponse, err error)
- func (c *ClientWithResponses) GetUserEmotesWithResponse(ctx context.Context, params *GetUserEmotesParams, ...) (r *GetUserEmotesHTTPResponse, err error)
- func (c *ClientWithResponses) GetUserExtensionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (r *GetUserExtensionsHTTPResponse, err error)
- func (c *ClientWithResponses) GetUsersWithResponse(ctx context.Context, params *GetUsersParams, reqEditors ...RequestEditorFn) (r *GetUsersHTTPResponse, err error)
- func (c *ClientWithResponses) GetVideosWithResponse(ctx context.Context, params *GetVideosParams, reqEditors ...RequestEditorFn) (r *GetVideosHTTPResponse, err error)
- func (c *ClientWithResponses) GetVipsWithResponse(ctx context.Context, params *GetVipsParams, reqEditors ...RequestEditorFn) (r *GetVipsHTTPResponse, err error)
- func (c *ClientWithResponses) ManageHeldAutomodMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (r *ManageHeldAutomodMessagesHTTPResponse, err error)
- func (c *ClientWithResponses) ManageHeldAutomodMessagesWithResponse(ctx context.Context, body ManageHeldAutomodMessagesJSONRequestBody, ...) (r *ManageHeldAutomodMessagesHTTPResponse, err error)
- func (c *ClientWithResponses) ModifyChannelInformationWithBodyWithResponse(ctx context.Context, params *ModifyChannelInformationParams, ...) (r *ModifyChannelInformationHTTPResponse, err error)
- func (c *ClientWithResponses) ModifyChannelInformationWithResponse(ctx context.Context, params *ModifyChannelInformationParams, ...) (r *ModifyChannelInformationHTTPResponse, err error)
- func (c *ClientWithResponses) RemoveBlockedTermWithResponse(ctx context.Context, params *RemoveBlockedTermParams, ...) (r *RemoveBlockedTermHTTPResponse, err error)
- func (c *ClientWithResponses) RemoveChannelModeratorWithResponse(ctx context.Context, params *RemoveChannelModeratorParams, ...) (r *RemoveChannelModeratorHTTPResponse, err error)
- func (c *ClientWithResponses) RemoveChannelVipWithResponse(ctx context.Context, params *RemoveChannelVipParams, ...) (r *RemoveChannelVipHTTPResponse, err error)
- func (c *ClientWithResponses) ResolveUnbanRequestsWithResponse(ctx context.Context, params *ResolveUnbanRequestsParams, ...) (r *ResolveUnbanRequestsHTTPResponse, err error)
- func (c *ClientWithResponses) SearchCategoriesWithResponse(ctx context.Context, params *SearchCategoriesParams, ...) (r *SearchCategoriesHTTPResponse, err error)
- func (c *ClientWithResponses) SearchChannelsWithResponse(ctx context.Context, params *SearchChannelsParams, ...) (r *SearchChannelsHTTPResponse, err error)
- func (c *ClientWithResponses) SendAShoutoutWithResponse(ctx context.Context, params *SendAShoutoutParams, ...) (r *SendAShoutoutHTTPResponse, err error)
- func (c *ClientWithResponses) SendChatAnnouncementWithBodyWithResponse(ctx context.Context, params *SendChatAnnouncementParams, contentType string, ...) (r *SendChatAnnouncementHTTPResponse, err error)
- func (c *ClientWithResponses) SendChatAnnouncementWithResponse(ctx context.Context, params *SendChatAnnouncementParams, ...) (r *SendChatAnnouncementHTTPResponse, err error)
- func (c *ClientWithResponses) SendChatMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (r *SendChatMessageHTTPResponse, err error)
- func (c *ClientWithResponses) SendChatMessageWithResponse(ctx context.Context, body SendChatMessageJSONRequestBody, ...) (r *SendChatMessageHTTPResponse, err error)
- func (c *ClientWithResponses) SendExtensionChatMessageWithBodyWithResponse(ctx context.Context, params *SendExtensionChatMessageParams, ...) (r *SendExtensionChatMessageHTTPResponse, err error)
- func (c *ClientWithResponses) SendExtensionChatMessageWithResponse(ctx context.Context, params *SendExtensionChatMessageParams, ...) (r *SendExtensionChatMessageHTTPResponse, err error)
- func (c *ClientWithResponses) SendExtensionPubsubMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (r *SendExtensionPubsubMessageHTTPResponse, err error)
- func (c *ClientWithResponses) SendExtensionPubsubMessageWithResponse(ctx context.Context, body SendExtensionPubsubMessageJSONRequestBody, ...) (r *SendExtensionPubsubMessageHTTPResponse, err error)
- func (c *ClientWithResponses) SendGuestStarInviteWithResponse(ctx context.Context, params *SendGuestStarInviteParams, ...) (r *SendGuestStarInviteHTTPResponse, err error)
- func (c *ClientWithResponses) SendWhisperWithBodyWithResponse(ctx context.Context, params *SendWhisperParams, contentType string, ...) (r *SendWhisperHTTPResponse, err error)
- func (c *ClientWithResponses) SendWhisperWithResponse(ctx context.Context, params *SendWhisperParams, ...) (r *SendWhisperHTTPResponse, err error)
- func (c *ClientWithResponses) SetExtensionConfigurationSegmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (r *SetExtensionConfigurationSegmentHTTPResponse, err error)
- func (c *ClientWithResponses) SetExtensionConfigurationSegmentWithResponse(ctx context.Context, body SetExtensionConfigurationSegmentJSONRequestBody, ...) (r *SetExtensionConfigurationSegmentHTTPResponse, err error)
- func (c *ClientWithResponses) SetExtensionRequiredConfigurationWithBodyWithResponse(ctx context.Context, params *SetExtensionRequiredConfigurationParams, ...) (r *SetExtensionRequiredConfigurationHTTPResponse, err error)
- func (c *ClientWithResponses) SetExtensionRequiredConfigurationWithResponse(ctx context.Context, params *SetExtensionRequiredConfigurationParams, ...) (r *SetExtensionRequiredConfigurationHTTPResponse, err error)
- func (c *ClientWithResponses) SnoozeNextAdWithResponse(ctx context.Context, params *SnoozeNextAdParams, reqEditors ...RequestEditorFn) (r *SnoozeNextAdHTTPResponse, err error)
- func (c *ClientWithResponses) StartARaidWithResponse(ctx context.Context, params *StartARaidParams, reqEditors ...RequestEditorFn) (r *StartARaidHTTPResponse, err error)
- func (c *ClientWithResponses) StartCommercialWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (r *StartCommercialHTTPResponse, err error)
- func (c *ClientWithResponses) StartCommercialWithResponse(ctx context.Context, body StartCommercialJSONRequestBody, ...) (r *StartCommercialHTTPResponse, err error)
- func (c *ClientWithResponses) UnbanUserWithResponse(ctx context.Context, params *UnbanUserParams, reqEditors ...RequestEditorFn) (r *UnbanUserHTTPResponse, err error)
- func (c *ClientWithResponses) UnblockUserWithResponse(ctx context.Context, params *UnblockUserParams, reqEditors ...RequestEditorFn) (r *UnblockUserHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateAutomodSettingsWithBodyWithResponse(ctx context.Context, params *UpdateAutomodSettingsParams, contentType string, ...) (r *UpdateAutomodSettingsHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateAutomodSettingsWithResponse(ctx context.Context, params *UpdateAutomodSettingsParams, ...) (r *UpdateAutomodSettingsHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateChannelGuestStarSettingsWithBodyWithResponse(ctx context.Context, params *UpdateChannelGuestStarSettingsParams, ...) (r *UpdateChannelGuestStarSettingsHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateChannelGuestStarSettingsWithResponse(ctx context.Context, params *UpdateChannelGuestStarSettingsParams, ...) (r *UpdateChannelGuestStarSettingsHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateChannelStreamScheduleSegmentWithBodyWithResponse(ctx context.Context, params *UpdateChannelStreamScheduleSegmentParams, ...) (r *UpdateChannelStreamScheduleSegmentHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateChannelStreamScheduleSegmentWithResponse(ctx context.Context, params *UpdateChannelStreamScheduleSegmentParams, ...) (r *UpdateChannelStreamScheduleSegmentHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateChannelStreamScheduleWithResponse(ctx context.Context, params *UpdateChannelStreamScheduleParams, ...) (r *UpdateChannelStreamScheduleHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateChatSettingsWithBodyWithResponse(ctx context.Context, params *UpdateChatSettingsParams, contentType string, ...) (r *UpdateChatSettingsHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateChatSettingsWithResponse(ctx context.Context, params *UpdateChatSettingsParams, ...) (r *UpdateChatSettingsHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateConduitShardsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (r *UpdateConduitShardsHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateConduitShardsWithResponse(ctx context.Context, body UpdateConduitShardsJSONRequestBody, ...) (r *UpdateConduitShardsHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateConduitsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (r *UpdateConduitsHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateConduitsWithResponse(ctx context.Context, body UpdateConduitsJSONRequestBody, ...) (r *UpdateConduitsHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateCustomRewardWithBodyWithResponse(ctx context.Context, params *UpdateCustomRewardParams, contentType string, ...) (r *UpdateCustomRewardHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateCustomRewardWithResponse(ctx context.Context, params *UpdateCustomRewardParams, ...) (r *UpdateCustomRewardHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateDropsEntitlementsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (r *UpdateDropsEntitlementsHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateDropsEntitlementsWithResponse(ctx context.Context, body UpdateDropsEntitlementsJSONRequestBody, ...) (r *UpdateDropsEntitlementsHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateExtensionBitsProductWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (r *UpdateExtensionBitsProductHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateExtensionBitsProductWithResponse(ctx context.Context, body UpdateExtensionBitsProductJSONRequestBody, ...) (r *UpdateExtensionBitsProductHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateGuestStarSlotSettingsWithResponse(ctx context.Context, params *UpdateGuestStarSlotSettingsParams, ...) (r *UpdateGuestStarSlotSettingsHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateGuestStarSlotWithResponse(ctx context.Context, params *UpdateGuestStarSlotParams, ...) (r *UpdateGuestStarSlotHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateRedemptionStatusWithBodyWithResponse(ctx context.Context, params *UpdateRedemptionStatusParams, contentType string, ...) (r *UpdateRedemptionStatusHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateRedemptionStatusWithResponse(ctx context.Context, params *UpdateRedemptionStatusParams, ...) (r *UpdateRedemptionStatusHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateShieldModeStatusWithBodyWithResponse(ctx context.Context, params *UpdateShieldModeStatusParams, contentType string, ...) (r *UpdateShieldModeStatusHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateShieldModeStatusWithResponse(ctx context.Context, params *UpdateShieldModeStatusParams, ...) (r *UpdateShieldModeStatusHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateUserChatColorWithResponse(ctx context.Context, params *UpdateUserChatColorParams, ...) (r *UpdateUserChatColorHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateUserExtensionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (r *UpdateUserExtensionsHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateUserExtensionsWithResponse(ctx context.Context, body UpdateUserExtensionsJSONRequestBody, ...) (r *UpdateUserExtensionsHTTPResponse, err error)
- func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, params *UpdateUserParams, reqEditors ...RequestEditorFn) (r *UpdateUserHTTPResponse, err error)
- func (c *ClientWithResponses) WarnChatUserWithBodyWithResponse(ctx context.Context, params *WarnChatUserParams, contentType string, ...) (r *WarnChatUserHTTPResponse, err error)
- func (c *ClientWithResponses) WarnChatUserWithResponse(ctx context.Context, params *WarnChatUserParams, ...) (r *WarnChatUserHTTPResponse, err error)
- type ClientWithResponsesInterface
- type Clip
- func (datatype Clip) GetBroadcasterId() string
- func (datatype Clip) GetBroadcasterName() string
- func (datatype Clip) GetCreatedAt() time.Time
- func (datatype Clip) GetCreatorId() string
- func (datatype Clip) GetCreatorName() string
- func (datatype Clip) GetDuration() float32
- func (datatype Clip) GetEmbedUrl() string
- func (datatype Clip) GetGameId() string
- func (datatype Clip) GetId() string
- func (datatype Clip) GetIsFeatured() bool
- func (datatype Clip) GetLanguage() string
- func (datatype Clip) GetThumbnailUrl() string
- func (datatype Clip) GetTitle() string
- func (datatype Clip) GetUrl() string
- func (datatype Clip) GetVideoId() string
- func (datatype Clip) GetViewCount() int32
- func (datatype Clip) GetVodOffset() int32
- type ContentClassificationLabel
- type CreateChannelStreamScheduleSegmentBody
- func (datatype CreateChannelStreamScheduleSegmentBody) GetCategoryId() string
- func (datatype CreateChannelStreamScheduleSegmentBody) GetDuration() string
- func (datatype CreateChannelStreamScheduleSegmentBody) GetIsRecurring() bool
- func (datatype CreateChannelStreamScheduleSegmentBody) GetStartTime() time.Time
- func (datatype CreateChannelStreamScheduleSegmentBody) GetTimezone() string
- func (datatype CreateChannelStreamScheduleSegmentBody) GetTitle() string
- type CreateChannelStreamScheduleSegmentHTTPResponse
- type CreateChannelStreamScheduleSegmentJSONRequestBody
- type CreateChannelStreamScheduleSegmentParams
- type CreateChannelStreamScheduleSegmentResponse
- type CreateClipHTTPResponse
- type CreateClipParams
- type CreateClipResponse
- type CreateConduitsBody
- type CreateConduitsHTTPResponse
- type CreateConduitsJSONRequestBody
- type CreateConduitsResponse
- type CreateCustomRewardsBody
- func (datatype CreateCustomRewardsBody) GetBackgroundColor() string
- func (datatype CreateCustomRewardsBody) GetCost() int64
- func (datatype CreateCustomRewardsBody) GetGlobalCooldownSeconds() int32
- func (datatype CreateCustomRewardsBody) GetIsEnabled() bool
- func (datatype CreateCustomRewardsBody) GetIsGlobalCooldownEnabled() bool
- func (datatype CreateCustomRewardsBody) GetIsMaxPerStreamEnabled() bool
- func (datatype CreateCustomRewardsBody) GetIsMaxPerUserPerStreamEnabled() bool
- func (datatype CreateCustomRewardsBody) GetIsUserInputRequired() bool
- func (datatype CreateCustomRewardsBody) GetMaxPerStream() int32
- func (datatype CreateCustomRewardsBody) GetMaxPerUserPerStream() int32
- func (datatype CreateCustomRewardsBody) GetPrompt() string
- func (datatype CreateCustomRewardsBody) GetShouldRedemptionsSkipRequestQueue() bool
- func (datatype CreateCustomRewardsBody) GetTitle() string
- type CreateCustomRewardsHTTPResponse
- type CreateCustomRewardsJSONRequestBody
- type CreateCustomRewardsParams
- type CreateCustomRewardsResponse
- type CreateEventSubSubscriptionBody
- func (datatype CreateEventSubSubscriptionBody) GetCondition() map[string]interface{}
- func (datatype CreateEventSubSubscriptionBody) GetTransport() struct{ ... }
- func (datatype CreateEventSubSubscriptionBody) GetType() CreateEventSubSubscriptionBodyType
- func (datatype CreateEventSubSubscriptionBody) GetVersion() string
- type CreateEventSubSubscriptionBodyTransportMethod
- type CreateEventSubSubscriptionBodyType
- type CreateEventSubSubscriptionResponse
- type CreateEventsubSubscriptionHTTPResponse
- type CreateEventsubSubscriptionJSONRequestBody
- type CreateExtensionSecretHTTPResponse
- type CreateExtensionSecretParams
- type CreateExtensionSecretResponse
- type CreateGuestStarSessionHTTPResponse
- type CreateGuestStarSessionParams
- type CreateGuestStarSessionResponse
- type CreatePollBody
- func (datatype CreatePollBody) GetBroadcasterId() string
- func (datatype CreatePollBody) GetChannelPointsPerVote() int32
- func (datatype CreatePollBody) GetChannelPointsVotingEnabled() bool
- func (datatype CreatePollBody) GetChoices() []struct{ ... }
- func (datatype CreatePollBody) GetDuration() int32
- func (datatype CreatePollBody) GetTitle() string
- type CreatePollHTTPResponse
- type CreatePollJSONRequestBody
- type CreatePollResponse
- type CreatePredictionBody
- type CreatePredictionHTTPResponse
- type CreatePredictionJSONRequestBody
- type CreatePredictionResponse
- type CreateStreamMarkerBody
- type CreateStreamMarkerHTTPResponse
- type CreateStreamMarkerJSONRequestBody
- type CreateStreamMarkerResponse
- type CreatorGoal
- func (datatype CreatorGoal) GetBroadcasterId() string
- func (datatype CreatorGoal) GetBroadcasterLogin() string
- func (datatype CreatorGoal) GetBroadcasterName() string
- func (datatype CreatorGoal) GetCreatedAt() time.Time
- func (datatype CreatorGoal) GetCurrentAmount() int32
- func (datatype CreatorGoal) GetDescription() string
- func (datatype CreatorGoal) GetId() string
- func (datatype CreatorGoal) GetTargetAmount() int32
- func (datatype CreatorGoal) GetType() CreatorGoalType
- type CreatorGoalType
- type CustomReward
- func (datatype CustomReward) GetBackgroundColor() string
- func (datatype CustomReward) GetBroadcasterId() string
- func (datatype CustomReward) GetBroadcasterLogin() string
- func (datatype CustomReward) GetBroadcasterName() string
- func (datatype CustomReward) GetCooldownExpiresAt() time.Time
- func (datatype CustomReward) GetCost() int64
- func (datatype CustomReward) GetDefaultImage() struct{ ... }
- func (datatype CustomReward) GetGlobalCooldownSetting() struct{ ... }
- func (datatype CustomReward) GetId() string
- func (datatype CustomReward) GetImage() struct{ ... }
- func (datatype CustomReward) GetIsEnabled() bool
- func (datatype CustomReward) GetIsInStock() bool
- func (datatype CustomReward) GetIsPaused() bool
- func (datatype CustomReward) GetIsUserInputRequired() bool
- func (datatype CustomReward) GetMaxPerStreamSetting() struct{ ... }
- func (datatype CustomReward) GetMaxPerUserPerStreamSetting() struct{ ... }
- func (datatype CustomReward) GetPrompt() string
- func (datatype CustomReward) GetRedemptionsRedeemedCurrentStream() int32
- func (datatype CustomReward) GetShouldRedemptionsSkipRequestQueue() bool
- func (datatype CustomReward) GetTitle() string
- type CustomRewardRedemption
- func (datatype CustomRewardRedemption) GetBroadcasterId() string
- func (datatype CustomRewardRedemption) GetBroadcasterLogin() string
- func (datatype CustomRewardRedemption) GetBroadcasterName() string
- func (datatype CustomRewardRedemption) GetId() string
- func (datatype CustomRewardRedemption) GetRedeemedAt() time.Time
- func (datatype CustomRewardRedemption) GetReward() struct{ ... }
- func (datatype CustomRewardRedemption) GetStatus() CustomRewardRedemptionStatus
- func (datatype CustomRewardRedemption) GetUserId() string
- func (datatype CustomRewardRedemption) GetUserInput() string
- func (datatype CustomRewardRedemption) GetUserLogin() string
- func (datatype CustomRewardRedemption) GetUserName() string
- type CustomRewardRedemptionStatus
- type DeleteChannelStreamScheduleSegmentHTTPResponse
- type DeleteChannelStreamScheduleSegmentParams
- type DeleteChatMessagesHTTPResponse
- type DeleteChatMessagesParams
- type DeleteConduitHTTPResponse
- type DeleteConduitParams
- type DeleteCustomRewardHTTPResponse
- type DeleteCustomRewardParams
- type DeleteEventsubSubscriptionHTTPResponse
- type DeleteEventsubSubscriptionParams
- type DeleteGuestStarInviteHTTPResponse
- type DeleteGuestStarInviteParams
- type DeleteGuestStarSlotHTTPResponse
- type DeleteGuestStarSlotParams
- type DeleteVideosHTTPResponse
- type DeleteVideosParams
- type DeleteVideosResponse
- type DropsEntitlement
- func (datatype DropsEntitlement) GetBenefitId() string
- func (datatype DropsEntitlement) GetFulfillmentStatus() DropsEntitlementFulfillmentStatus
- func (datatype DropsEntitlement) GetGameId() string
- func (datatype DropsEntitlement) GetId() string
- func (datatype DropsEntitlement) GetLastUpdated() time.Time
- func (datatype DropsEntitlement) GetTimestamp() time.Time
- func (datatype DropsEntitlement) GetUserId() string
- type DropsEntitlementFulfillmentStatus
- type DropsEntitlementUpdated
- type DropsEntitlementUpdatedStatus
- type Emote
- func (datatype Emote) GetEmoteSetId() string
- func (datatype Emote) GetEmoteType() EmoteEmoteType
- func (datatype Emote) GetFormat() []EmoteFormat
- func (datatype Emote) GetId() string
- func (datatype Emote) GetImages() struct{ ... }
- func (datatype Emote) GetName() string
- func (datatype Emote) GetOwnerId() string
- func (datatype Emote) GetScale() []EmoteScale
- func (datatype Emote) GetThemeMode() []EmoteThemeMode
- type EmoteEmoteType
- type EmoteFormat
- type EmoteScale
- type EmoteThemeMode
- type EndGuestStarSessionHTTPResponse
- type EndGuestStarSessionParams
- type EndGuestStarSessionResponse
- type EndPollBody
- type EndPollBodyStatus
- type EndPollHTTPResponse
- type EndPollJSONRequestBody
- type EndPollResponse
- type EndPredictionBody
- type EndPredictionBodyStatus
- type EndPredictionHTTPResponse
- type EndPredictionJSONRequestBody
- type EndPredictionResponse
- type EventSubSubscription
- func (datatype EventSubSubscription) GetCondition() map[string]interface{}
- func (datatype EventSubSubscription) GetCost() int32
- func (datatype EventSubSubscription) GetCreatedAt() time.Time
- func (datatype EventSubSubscription) GetId() string
- func (datatype EventSubSubscription) GetStatus() EventSubSubscriptionStatus
- func (datatype EventSubSubscription) GetTransport() struct{ ... }
- func (datatype EventSubSubscription) GetType() EventSubSubscriptionType
- func (datatype EventSubSubscription) GetVersion() string
- type EventSubSubscriptionStatus
- type EventSubSubscriptionTransportMethod
- type EventSubSubscriptionType
- type Extension
- func (datatype Extension) GetAllowlistedConfigUrls() []string
- func (datatype Extension) GetAllowlistedPanelUrls() []string
- func (datatype Extension) GetAuthorName() string
- func (datatype Extension) GetBitsEnabled() bool
- func (datatype Extension) GetCanInstall() bool
- func (datatype Extension) GetConfigurationLocation() ExtensionConfigurationLocation
- func (datatype Extension) GetDescription() string
- func (datatype Extension) GetEulaTosUrl() string
- func (datatype Extension) GetHasChatSupport() bool
- func (datatype Extension) GetIconUrl() string
- func (datatype Extension) GetIconUrls() ExtensionIconUrls
- func (datatype Extension) GetId() string
- func (datatype Extension) GetName() string
- func (datatype Extension) GetPrivacyPolicyUrl() string
- func (datatype Extension) GetRequestIdentityLink() bool
- func (datatype Extension) GetScreenshotUrls() []string
- func (datatype Extension) GetState() ExtensionState
- func (datatype Extension) GetSubscriptionsSupportLevel() ExtensionSubscriptionsSupportLevel
- func (datatype Extension) GetSummary() string
- func (datatype Extension) GetSupportEmail() string
- func (datatype Extension) GetVersion() string
- func (datatype Extension) GetViewerSummary() string
- func (datatype Extension) GetViews() struct{ ... }
- type ExtensionAnalytics
- type ExtensionBitsProduct
- func (datatype ExtensionBitsProduct) GetCost() struct{ ... }
- func (datatype ExtensionBitsProduct) GetDisplayName() string
- func (datatype ExtensionBitsProduct) GetExpiration() time.Time
- func (datatype ExtensionBitsProduct) GetInDevelopment() bool
- func (datatype ExtensionBitsProduct) GetIsBroadcast() bool
- func (datatype ExtensionBitsProduct) GetSku() string
- type ExtensionBitsProductCostType
- type ExtensionConfigurationLocation
- type ExtensionConfigurationSegment
- type ExtensionConfigurationSegmentSegment
- type ExtensionIconUrls
- type ExtensionLiveChannel
- type ExtensionSecret
- type ExtensionState
- type ExtensionSubscriptionsSupportLevel
- type ExtensionTransaction
- func (datatype ExtensionTransaction) GetBroadcasterId() string
- func (datatype ExtensionTransaction) GetBroadcasterLogin() string
- func (datatype ExtensionTransaction) GetBroadcasterName() string
- func (datatype ExtensionTransaction) GetId() string
- func (datatype ExtensionTransaction) GetProductData() struct{ ... }
- func (datatype ExtensionTransaction) GetProductType() ExtensionTransactionProductType
- func (datatype ExtensionTransaction) GetTimestamp() time.Time
- func (datatype ExtensionTransaction) GetUserId() string
- func (datatype ExtensionTransaction) GetUserLogin() string
- func (datatype ExtensionTransaction) GetUserName() string
- type ExtensionTransactionProductDataCostType
- type ExtensionTransactionProductType
- type Game
- type GameAnalytics
- type GetAdScheduleHTTPResponse
- type GetAdScheduleParams
- type GetAdScheduleResponse
- type GetAllStreamTagsHTTPResponse
- type GetAllStreamTagsParams
- type GetAllStreamTagsResponse
- type GetAutoModSettingsResponse
- type GetAutomodSettingsHTTPResponse
- type GetAutomodSettingsParams
- type GetBannedUsersHTTPResponse
- type GetBannedUsersParams
- type GetBannedUsersResponse
- type GetBitsLeaderboardHTTPResponse
- type GetBitsLeaderboardParams
- type GetBitsLeaderboardParamsPeriod
- type GetBitsLeaderboardResponse
- type GetBlockedTermsHTTPResponse
- type GetBlockedTermsParams
- type GetBlockedTermsResponse
- type GetBroadcasterSubscriptionsHTTPResponse
- type GetBroadcasterSubscriptionsParams
- type GetBroadcasterSubscriptionsResponse
- func (datatype GetBroadcasterSubscriptionsResponse) GetData() []BroadcasterSubscription
- func (datatype GetBroadcasterSubscriptionsResponse) GetPagination() struct{ ... }
- func (datatype GetBroadcasterSubscriptionsResponse) GetPoints() int32
- func (datatype GetBroadcasterSubscriptionsResponse) GetTotal() int32
- type GetChannelChatBadgesHTTPResponse
- type GetChannelChatBadgesParams
- type GetChannelChatBadgesResponse
- type GetChannelEditorsHTTPResponse
- type GetChannelEditorsParams
- type GetChannelEditorsResponse
- type GetChannelEmotesHTTPResponse
- type GetChannelEmotesParams
- type GetChannelEmotesResponse
- type GetChannelFollowersHTTPResponse
- type GetChannelFollowersParams
- type GetChannelFollowersResponse
- type GetChannelGuestStarSettingsHTTPResponse
- type GetChannelGuestStarSettingsParams
- type GetChannelGuestStarSettingsResponse
- func (datatype GetChannelGuestStarSettingsResponse) GetBrowserSourceToken() string
- func (datatype GetChannelGuestStarSettingsResponse) GetGroupLayout() GetChannelGuestStarSettingsResponseGroupLayout
- func (datatype GetChannelGuestStarSettingsResponse) GetIsBrowserSourceAudioEnabled() bool
- func (datatype GetChannelGuestStarSettingsResponse) GetIsModeratorSendLiveEnabled() bool
- func (datatype GetChannelGuestStarSettingsResponse) GetSlotCount() int32
- type GetChannelGuestStarSettingsResponseGroupLayout
- type GetChannelIcalendarHTTPResponse
- type GetChannelIcalendarParams
- type GetChannelInformationHTTPResponse
- type GetChannelInformationParams
- type GetChannelInformationResponse
- type GetChannelStreamScheduleHTTPResponse
- type GetChannelStreamScheduleParams
- type GetChannelStreamScheduleResponse
- type GetChannelTeamsHTTPResponse
- type GetChannelTeamsParams
- type GetChannelTeamsResponse
- type GetCharityCampaignDonationsHTTPResponse
- type GetCharityCampaignDonationsParams
- type GetCharityCampaignDonationsResponse
- type GetCharityCampaignHTTPResponse
- type GetCharityCampaignParams
- type GetCharityCampaignResponse
- type GetChatSettingsHTTPResponse
- type GetChatSettingsParams
- type GetChatSettingsResponse
- type GetChattersHTTPResponse
- type GetChattersParams
- type GetChattersResponse
- type GetCheermotesHTTPResponse
- type GetCheermotesParams
- type GetCheermotesResponse
- type GetClipsHTTPResponse
- type GetClipsParams
- type GetClipsResponse
- type GetConduitShardsHTTPResponse
- type GetConduitShardsParams
- type GetConduitShardsResponse
- type GetConduitShardsResponseDataStatus
- type GetConduitShardsResponseDataTransportMethod
- type GetConduitsHTTPResponse
- type GetConduitsResponse
- type GetContentClassificationLabelsHTTPResponse
- type GetContentClassificationLabelsParams
- type GetContentClassificationLabelsResponse
- type GetCreatorGoalsHTTPResponse
- type GetCreatorGoalsParams
- type GetCreatorGoalsResponse
- type GetCustomRewardHTTPResponse
- type GetCustomRewardParams
- type GetCustomRewardRedemptionHTTPResponse
- type GetCustomRewardRedemptionParams
- type GetCustomRewardRedemptionParamsSort
- type GetCustomRewardRedemptionParamsStatus
- type GetCustomRewardRedemptionResponse
- type GetCustomRewardResponse
- type GetDropsEntitlementsHTTPResponse
- type GetDropsEntitlementsParams
- type GetDropsEntitlementsParamsFulfillmentStatus
- type GetDropsEntitlementsResponse
- type GetEmoteSetsHTTPResponse
- type GetEmoteSetsParams
- type GetEmoteSetsResponse
- type GetEventSubSubscriptionsResponse
- func (datatype GetEventSubSubscriptionsResponse) GetData() []EventSubSubscription
- func (datatype GetEventSubSubscriptionsResponse) GetMaxTotalCost() int32
- func (datatype GetEventSubSubscriptionsResponse) GetPagination() struct{ ... }
- func (datatype GetEventSubSubscriptionsResponse) GetTotal() int32
- func (datatype GetEventSubSubscriptionsResponse) GetTotalCost() int32
- type GetEventsubSubscriptionsHTTPResponse
- type GetEventsubSubscriptionsParams
- type GetEventsubSubscriptionsParamsStatus
- type GetEventsubSubscriptionsParamsType
- type GetExtensionAnalyticsHTTPResponse
- type GetExtensionAnalyticsParams
- type GetExtensionAnalyticsParamsType
- type GetExtensionAnalyticsResponse
- type GetExtensionBitsProductsHTTPResponse
- type GetExtensionBitsProductsParams
- type GetExtensionBitsProductsResponse
- type GetExtensionConfigurationSegmentHTTPResponse
- type GetExtensionConfigurationSegmentParams
- type GetExtensionConfigurationSegmentParamsSegment
- type GetExtensionConfigurationSegmentResponse
- type GetExtensionLiveChannelsHTTPResponse
- type GetExtensionLiveChannelsParams
- type GetExtensionLiveChannelsResponse
- type GetExtensionSecretsHTTPResponse
- type GetExtensionSecretsResponse
- type GetExtensionTransactionsHTTPResponse
- type GetExtensionTransactionsParams
- type GetExtensionTransactionsResponse
- type GetExtensionsHTTPResponse
- type GetExtensionsParams
- type GetExtensionsResponse
- type GetFollowedChannelsHTTPResponse
- type GetFollowedChannelsParams
- type GetFollowedChannelsResponse
- type GetFollowedStreamsHTTPResponse
- type GetFollowedStreamsParams
- type GetFollowedStreamsResponse
- type GetGameAnalyticsHTTPResponse
- type GetGameAnalyticsParams
- type GetGameAnalyticsParamsType
- type GetGameAnalyticsResponse
- type GetGamesHTTPResponse
- type GetGamesParams
- type GetGamesResponse
- type GetGlobalChatBadgesHTTPResponse
- type GetGlobalChatBadgesResponse
- type GetGlobalEmotesHTTPResponse
- type GetGlobalEmotesResponse
- type GetGuestStarInvitesHTTPResponse
- type GetGuestStarInvitesParams
- type GetGuestStarInvitesResponse
- type GetGuestStarSessionHTTPResponse
- type GetGuestStarSessionParams
- type GetGuestStarSessionResponse
- type GetHypeTrainEventsHTTPResponse
- type GetHypeTrainEventsParams
- type GetHypeTrainEventsResponse
- type GetModeratedChannelsHTTPResponse
- type GetModeratedChannelsParams
- type GetModeratedChannelsResponse
- type GetModeratorsHTTPResponse
- type GetModeratorsParams
- type GetModeratorsResponse
- type GetPollsHTTPResponse
- type GetPollsParams
- type GetPollsResponse
- type GetPredictionsHTTPResponse
- type GetPredictionsParams
- type GetPredictionsResponse
- type GetReleasedExtensionsHTTPResponse
- type GetReleasedExtensionsParams
- type GetReleasedExtensionsResponse
- type GetSharedChatSessionHTTPResponse
- type GetSharedChatSessionParams
- type GetSharedChatSessionResponse
- type GetShieldModeStatusHTTPResponse
- type GetShieldModeStatusParams
- type GetShieldModeStatusResponse
- type GetStreamKeyHTTPResponse
- type GetStreamKeyParams
- type GetStreamKeyResponse
- type GetStreamMarkersHTTPResponse
- type GetStreamMarkersParams
- type GetStreamMarkersResponse
- type GetStreamTagsHTTPResponse
- type GetStreamTagsParams
- type GetStreamTagsResponse
- type GetStreamsHTTPResponse
- type GetStreamsParams
- type GetStreamsParamsType
- type GetStreamsResponse
- type GetTeamsHTTPResponse
- type GetTeamsParams
- type GetTeamsResponse
- type GetTopGamesHTTPResponse
- type GetTopGamesParams
- type GetTopGamesResponse
- type GetUnbanRequestsHTTPResponse
- type GetUnbanRequestsParams
- type GetUnbanRequestsResponse
- type GetUserActiveExtensionsHTTPResponse
- type GetUserActiveExtensionsParams
- type GetUserActiveExtensionsResponse
- type GetUserBlockListHTTPResponse
- type GetUserBlockListParams
- type GetUserBlockListResponse
- type GetUserChatColorHTTPResponse
- type GetUserChatColorParams
- type GetUserChatColorResponse
- type GetUserEmotesHTTPResponse
- type GetUserEmotesParams
- type GetUserEmotesResponse
- type GetUserEmotesResponseDataEmoteType
- type GetUserExtensionsHTTPResponse
- type GetUserExtensionsResponse
- type GetUsersHTTPResponse
- type GetUsersParams
- type GetUsersResponse
- type GetVIPsResponse
- type GetVideosHTTPResponse
- type GetVideosParams
- type GetVideosParamsPeriod
- type GetVideosParamsSort
- type GetVideosParamsType
- type GetVideosResponse
- type GetVipsHTTPResponse
- type GetVipsParams
- type GlobalEmote
- func (datatype GlobalEmote) GetFormat() []GlobalEmoteFormat
- func (datatype GlobalEmote) GetId() string
- func (datatype GlobalEmote) GetImages() struct{ ... }
- func (datatype GlobalEmote) GetName() string
- func (datatype GlobalEmote) GetScale() []GlobalEmoteScale
- func (datatype GlobalEmote) GetThemeMode() []GlobalEmoteThemeMode
- type GlobalEmoteFormat
- type GlobalEmoteScale
- type GlobalEmoteThemeMode
- type Guest
- func (datatype Guest) GetAssignedAt() time.Time
- func (datatype Guest) GetAudioSettings() struct{ ... }
- func (datatype Guest) GetIsLive() bool
- func (datatype Guest) GetSlotId() string
- func (datatype Guest) GetUserDisplayName() string
- func (datatype Guest) GetUserId() string
- func (datatype Guest) GetUserLogin() string
- func (datatype Guest) GetVideoSettings() struct{ ... }
- func (datatype Guest) GetVolume() int32
- type GuestStarInvite
- func (datatype GuestStarInvite) GetInvitedAt() time.Time
- func (datatype GuestStarInvite) GetIsAudioAvailable() bool
- func (datatype GuestStarInvite) GetIsAudioEnabled() bool
- func (datatype GuestStarInvite) GetIsVideoAvailable() bool
- func (datatype GuestStarInvite) GetIsVideoEnabled() bool
- func (datatype GuestStarInvite) GetStatus() string
- func (datatype GuestStarInvite) GetUserId() string
- type GuestStarSession
- type HttpRequestDoer
- type HypeTrainEvent
- type HypeTrainEventEventDataLastContributionType
- type HypeTrainEventEventDataTopContributionsType
- type ManageHeldAutoModMessagesBody
- type ManageHeldAutoModMessagesBodyAction
- type ManageHeldAutomodMessagesHTTPResponse
- type ManageHeldAutomodMessagesJSONRequestBody
- type ModifyChannelInformationBody
- func (datatype ModifyChannelInformationBody) GetBroadcasterLanguage() string
- func (datatype ModifyChannelInformationBody) GetContentClassificationLabels() []struct{ ... }
- func (datatype ModifyChannelInformationBody) GetDelay() int32
- func (datatype ModifyChannelInformationBody) GetGameId() string
- func (datatype ModifyChannelInformationBody) GetIsBrandedContent() bool
- func (datatype ModifyChannelInformationBody) GetTags() []string
- func (datatype ModifyChannelInformationBody) GetTitle() string
- type ModifyChannelInformationBodyContentClassificationLabelsId
- type ModifyChannelInformationHTTPResponse
- type ModifyChannelInformationJSONRequestBody
- type ModifyChannelInformationParams
- type Poll
- func (datatype Poll) GetBitsPerVote() int32
- func (datatype Poll) GetBitsVotingEnabled() bool
- func (datatype Poll) GetBroadcasterId() string
- func (datatype Poll) GetBroadcasterLogin() string
- func (datatype Poll) GetBroadcasterName() string
- func (datatype Poll) GetChannelPointsPerVote() int32
- func (datatype Poll) GetChannelPointsVotingEnabled() bool
- func (datatype Poll) GetChoices() []struct{ ... }
- func (datatype Poll) GetDuration() int32
- func (datatype Poll) GetEndedAt() time.Time
- func (datatype Poll) GetId() string
- func (datatype Poll) GetStartedAt() time.Time
- func (datatype Poll) GetStatus() PollStatus
- func (datatype Poll) GetTitle() string
- type PollStatus
- type Prediction
- func (datatype Prediction) GetBroadcasterId() string
- func (datatype Prediction) GetBroadcasterLogin() string
- func (datatype Prediction) GetBroadcasterName() string
- func (datatype Prediction) GetCreatedAt() time.Time
- func (datatype Prediction) GetEndedAt() time.Time
- func (datatype Prediction) GetId() string
- func (datatype Prediction) GetLockedAt() time.Time
- func (datatype Prediction) GetOutcomes() []PredictionOutcome
- func (datatype Prediction) GetPredictionWindow() int32
- func (datatype Prediction) GetStatus() PredictionStatus
- func (datatype Prediction) GetTitle() string
- func (datatype Prediction) GetWinningOutcomeId() string
- type PredictionOutcome
- func (datatype PredictionOutcome) GetChannelPoints() int32
- func (datatype PredictionOutcome) GetColor() PredictionOutcomeColor
- func (datatype PredictionOutcome) GetId() string
- func (datatype PredictionOutcome) GetTitle() string
- func (datatype PredictionOutcome) GetTopPredictors() []struct{ ... }
- func (datatype PredictionOutcome) GetUsers() int32
- type PredictionOutcomeColor
- type PredictionStatus
- type RemoveBlockedTermHTTPResponse
- type RemoveBlockedTermParams
- type RemoveChannelModeratorHTTPResponse
- type RemoveChannelModeratorParams
- type RemoveChannelVipHTTPResponse
- type RemoveChannelVipParams
- type RequestEditorFn
- type ResolveUnbanRequestsHTTPResponse
- type ResolveUnbanRequestsParams
- type ResolveUnbanRequestsResponse
- type SearchCategoriesHTTPResponse
- type SearchCategoriesParams
- type SearchCategoriesResponse
- type SearchChannelsHTTPResponse
- type SearchChannelsParams
- type SearchChannelsResponse
- type SendAShoutoutHTTPResponse
- type SendAShoutoutParams
- type SendChatAnnouncementBody
- type SendChatAnnouncementBodyColor
- type SendChatAnnouncementHTTPResponse
- type SendChatAnnouncementJSONRequestBody
- type SendChatAnnouncementParams
- type SendChatMessageBody
- type SendChatMessageHTTPResponse
- type SendChatMessageJSONRequestBody
- type SendChatMessageResponse
- type SendExtensionChatMessageBody
- type SendExtensionChatMessageHTTPResponse
- type SendExtensionChatMessageJSONRequestBody
- type SendExtensionChatMessageParams
- type SendExtensionPubSubMessageBody
- func (datatype SendExtensionPubSubMessageBody) GetBroadcasterId() string
- func (datatype SendExtensionPubSubMessageBody) GetIsGlobalBroadcast() bool
- func (datatype SendExtensionPubSubMessageBody) GetMessage() string
- func (datatype SendExtensionPubSubMessageBody) GetTarget() []SendExtensionPubSubMessageBodyTarget
- type SendExtensionPubSubMessageBodyTarget
- type SendExtensionPubsubMessageHTTPResponse
- type SendExtensionPubsubMessageJSONRequestBody
- type SendGuestStarInviteHTTPResponse
- type SendGuestStarInviteParams
- type SendWhisperBody
- type SendWhisperHTTPResponse
- type SendWhisperJSONRequestBody
- type SendWhisperParams
- type SetExtensionConfigurationSegmentBody
- func (datatype SetExtensionConfigurationSegmentBody) GetBroadcasterId() string
- func (datatype SetExtensionConfigurationSegmentBody) GetContent() string
- func (datatype SetExtensionConfigurationSegmentBody) GetExtensionId() string
- func (datatype SetExtensionConfigurationSegmentBody) GetSegment() SetExtensionConfigurationSegmentBodySegment
- func (datatype SetExtensionConfigurationSegmentBody) GetVersion() string
- type SetExtensionConfigurationSegmentBodySegment
- type SetExtensionConfigurationSegmentHTTPResponse
- type SetExtensionConfigurationSegmentJSONRequestBody
- type SetExtensionRequiredConfigurationBody
- type SetExtensionRequiredConfigurationHTTPResponse
- type SetExtensionRequiredConfigurationJSONRequestBody
- type SetExtensionRequiredConfigurationParams
- type SnoozeNextAdHTTPResponse
- type SnoozeNextAdParams
- type SnoozeNextAdResponse
- type StartARaidHTTPResponse
- type StartARaidParams
- type StartCommercialBody
- type StartCommercialHTTPResponse
- type StartCommercialJSONRequestBody
- type StartCommercialResponse
- type StartRaidResponse
- type StatusFailureError
- type Stream
- func (datatype Stream) GetGameId() string
- func (datatype Stream) GetGameName() string
- func (datatype Stream) GetId() string
- func (datatype Stream) GetIsMature() bool
- func (datatype Stream) GetLanguage() string
- func (datatype Stream) GetStartedAt() time.Time
- func (datatype Stream) GetTagIds() []string
- func (datatype Stream) GetTags() []string
- func (datatype Stream) GetThumbnailUrl() string
- func (datatype Stream) GetTitle() string
- func (datatype Stream) GetType() StreamType
- func (datatype Stream) GetUserId() string
- func (datatype Stream) GetUserLogin() string
- func (datatype Stream) GetUserName() string
- func (datatype Stream) GetViewerCount() int32
- type StreamMarkerCreated
- type StreamMarkers
- func (datatype StreamMarkers) GetMarkers() []struct{ ... }
- func (datatype StreamMarkers) GetUserId() string
- func (datatype StreamMarkers) GetUserLogin() string
- func (datatype StreamMarkers) GetUserName() string
- func (datatype StreamMarkers) GetVideoId() string
- func (datatype StreamMarkers) GetVideos() []map[string]interface{}
- type StreamTag
- type StreamType
- type Team
- func (datatype Team) GetBackgroundImageUrl() string
- func (datatype Team) GetBanner() string
- func (datatype Team) GetCreatedAt() time.Time
- func (datatype Team) GetId() string
- func (datatype Team) GetInfo() string
- func (datatype Team) GetTeamDisplayName() string
- func (datatype Team) GetTeamName() string
- func (datatype Team) GetThumbnailUrl() string
- func (datatype Team) GetUpdatedAt() time.Time
- func (datatype Team) GetUsers() []struct{ ... }
- type UnbanUserHTTPResponse
- type UnbanUserParams
- type UnblockUserHTTPResponse
- type UnblockUserParams
- type UpdateAutoModSettingsBody
- func (datatype UpdateAutoModSettingsBody) GetAggression() int32
- func (datatype UpdateAutoModSettingsBody) GetBullying() int32
- func (datatype UpdateAutoModSettingsBody) GetDisability() int32
- func (datatype UpdateAutoModSettingsBody) GetMisogyny() int32
- func (datatype UpdateAutoModSettingsBody) GetOverallLevel() int32
- func (datatype UpdateAutoModSettingsBody) GetRaceEthnicityOrReligion() int32
- func (datatype UpdateAutoModSettingsBody) GetSexBasedTerms() int32
- func (datatype UpdateAutoModSettingsBody) GetSexualitySexOrGender() int32
- func (datatype UpdateAutoModSettingsBody) GetSwearing() int32
- type UpdateAutoModSettingsResponse
- type UpdateAutomodSettingsHTTPResponse
- type UpdateAutomodSettingsJSONRequestBody
- type UpdateAutomodSettingsParams
- type UpdateChannelGuestStarSettingsBody
- func (datatype UpdateChannelGuestStarSettingsBody) GetGroupLayout() UpdateChannelGuestStarSettingsBodyGroupLayout
- func (datatype UpdateChannelGuestStarSettingsBody) GetIsBrowserSourceAudioEnabled() bool
- func (datatype UpdateChannelGuestStarSettingsBody) GetIsModeratorSendLiveEnabled() bool
- func (datatype UpdateChannelGuestStarSettingsBody) GetRegenerateBrowserSources() bool
- func (datatype UpdateChannelGuestStarSettingsBody) GetSlotCount() int32
- type UpdateChannelGuestStarSettingsBodyGroupLayout
- type UpdateChannelGuestStarSettingsHTTPResponse
- type UpdateChannelGuestStarSettingsJSONRequestBody
- type UpdateChannelGuestStarSettingsParams
- type UpdateChannelStreamScheduleHTTPResponse
- type UpdateChannelStreamScheduleParams
- type UpdateChannelStreamScheduleSegmentBody
- func (datatype UpdateChannelStreamScheduleSegmentBody) GetCategoryId() string
- func (datatype UpdateChannelStreamScheduleSegmentBody) GetDuration() string
- func (datatype UpdateChannelStreamScheduleSegmentBody) GetIsCanceled() bool
- func (datatype UpdateChannelStreamScheduleSegmentBody) GetStartTime() time.Time
- func (datatype UpdateChannelStreamScheduleSegmentBody) GetTimezone() string
- func (datatype UpdateChannelStreamScheduleSegmentBody) GetTitle() string
- type UpdateChannelStreamScheduleSegmentHTTPResponse
- type UpdateChannelStreamScheduleSegmentJSONRequestBody
- type UpdateChannelStreamScheduleSegmentParams
- type UpdateChannelStreamScheduleSegmentResponse
- type UpdateChatSettingsBody
- func (datatype UpdateChatSettingsBody) GetEmoteMode() bool
- func (datatype UpdateChatSettingsBody) GetFollowerMode() bool
- func (datatype UpdateChatSettingsBody) GetFollowerModeDuration() int32
- func (datatype UpdateChatSettingsBody) GetNonModeratorChatDelay() bool
- func (datatype UpdateChatSettingsBody) GetNonModeratorChatDelayDuration() UpdateChatSettingsBodyNonModeratorChatDelayDuration
- func (datatype UpdateChatSettingsBody) GetSlowMode() bool
- func (datatype UpdateChatSettingsBody) GetSlowModeWaitTime() int32
- func (datatype UpdateChatSettingsBody) GetSubscriberMode() bool
- func (datatype UpdateChatSettingsBody) GetUniqueChatMode() bool
- type UpdateChatSettingsBodyNonModeratorChatDelayDuration
- type UpdateChatSettingsHTTPResponse
- type UpdateChatSettingsJSONRequestBody
- type UpdateChatSettingsParams
- type UpdateChatSettingsResponse
- type UpdateConduitShardsBody
- type UpdateConduitShardsBodyShardsTransportMethod
- type UpdateConduitShardsHTTPResponse
- type UpdateConduitShardsJSONRequestBody
- type UpdateConduitShardsResponse
- type UpdateConduitShardsResponseDataStatus
- type UpdateConduitShardsResponseDataTransportMethod
- type UpdateConduitsBody
- type UpdateConduitsHTTPResponse
- type UpdateConduitsJSONRequestBody
- type UpdateConduitsResponse
- type UpdateCustomRewardBody
- func (datatype UpdateCustomRewardBody) GetBackgroundColor() string
- func (datatype UpdateCustomRewardBody) GetCost() int64
- func (datatype UpdateCustomRewardBody) GetGlobalCooldownSeconds() int64
- func (datatype UpdateCustomRewardBody) GetIsEnabled() bool
- func (datatype UpdateCustomRewardBody) GetIsGlobalCooldownEnabled() bool
- func (datatype UpdateCustomRewardBody) GetIsMaxPerStreamEnabled() bool
- func (datatype UpdateCustomRewardBody) GetIsMaxPerUserPerStreamEnabled() bool
- func (datatype UpdateCustomRewardBody) GetIsPaused() bool
- func (datatype UpdateCustomRewardBody) GetIsUserInputRequired() bool
- func (datatype UpdateCustomRewardBody) GetMaxPerStream() int64
- func (datatype UpdateCustomRewardBody) GetMaxPerUserPerStream() int64
- func (datatype UpdateCustomRewardBody) GetPrompt() string
- func (datatype UpdateCustomRewardBody) GetShouldRedemptionsSkipRequestQueue() bool
- func (datatype UpdateCustomRewardBody) GetTitle() string
- type UpdateCustomRewardHTTPResponse
- type UpdateCustomRewardJSONRequestBody
- type UpdateCustomRewardParams
- type UpdateCustomRewardResponse
- type UpdateDropsEntitlementsBody
- type UpdateDropsEntitlementsBodyFulfillmentStatus
- type UpdateDropsEntitlementsHTTPResponse
- type UpdateDropsEntitlementsJSONRequestBody
- type UpdateDropsEntitlementsResponse
- type UpdateExtensionBitsProductBody
- func (datatype UpdateExtensionBitsProductBody) GetCost() struct{ ... }
- func (datatype UpdateExtensionBitsProductBody) GetDisplayName() string
- func (datatype UpdateExtensionBitsProductBody) GetExpiration() time.Time
- func (datatype UpdateExtensionBitsProductBody) GetInDevelopment() bool
- func (datatype UpdateExtensionBitsProductBody) GetIsBroadcast() bool
- func (datatype UpdateExtensionBitsProductBody) GetSku() string
- type UpdateExtensionBitsProductBodyCostType
- type UpdateExtensionBitsProductHTTPResponse
- type UpdateExtensionBitsProductJSONRequestBody
- type UpdateExtensionBitsProductResponse
- type UpdateGuestStarSlotHTTPResponse
- type UpdateGuestStarSlotParams
- type UpdateGuestStarSlotSettingsHTTPResponse
- type UpdateGuestStarSlotSettingsParams
- type UpdateRedemptionStatusBody
- type UpdateRedemptionStatusBodyStatus
- type UpdateRedemptionStatusHTTPResponse
- type UpdateRedemptionStatusJSONRequestBody
- type UpdateRedemptionStatusParams
- type UpdateRedemptionStatusResponse
- type UpdateShieldModeStatusBody
- type UpdateShieldModeStatusHTTPResponse
- type UpdateShieldModeStatusJSONRequestBody
- type UpdateShieldModeStatusParams
- type UpdateShieldModeStatusResponse
- type UpdateUserChatColorHTTPResponse
- type UpdateUserChatColorParams
- type UpdateUserChatColorParamsColor
- type UpdateUserExtensionsBody
- type UpdateUserExtensionsHTTPResponse
- type UpdateUserExtensionsJSONRequestBody
- type UpdateUserExtensionsResponse
- type UpdateUserHTTPResponse
- type UpdateUserParams
- type UpdateUserResponse
- type User
- func (datatype User) GetBroadcasterType() UserBroadcasterType
- func (datatype User) GetCreatedAt() time.Time
- func (datatype User) GetDescription() string
- func (datatype User) GetDisplayName() string
- func (datatype User) GetEmail() string
- func (datatype User) GetId() string
- func (datatype User) GetLogin() string
- func (datatype User) GetOfflineImageUrl() string
- func (datatype User) GetProfileImageUrl() string
- func (datatype User) GetType() UserType
- func (datatype User) GetViewCount() int32
- type UserBlockList
- type UserBroadcasterType
- type UserChatColor
- type UserExtension
- type UserExtensionComponent
- func (datatype UserExtensionComponent) GetActive() bool
- func (datatype UserExtensionComponent) GetId() string
- func (datatype UserExtensionComponent) GetName() string
- func (datatype UserExtensionComponent) GetVersion() string
- func (datatype UserExtensionComponent) GetX() int32
- func (datatype UserExtensionComponent) GetY() int32
- type UserExtensionComponentUpdate
- func (datatype UserExtensionComponentUpdate) GetActive() bool
- func (datatype UserExtensionComponentUpdate) GetId() string
- func (datatype UserExtensionComponentUpdate) GetVersion() string
- func (datatype UserExtensionComponentUpdate) GetX() int32
- func (datatype UserExtensionComponentUpdate) GetY() int32
- type UserExtensionOverlay
- type UserExtensionOverlayUpdate
- type UserExtensionPanel
- type UserExtensionPanelUpdate
- type UserExtensionType
- type UserModerator
- type UserSubscription
- func (datatype UserSubscription) GetBroadcasterId() string
- func (datatype UserSubscription) GetBroadcasterLogin() string
- func (datatype UserSubscription) GetBroadcasterName() string
- func (datatype UserSubscription) GetGifterId() string
- func (datatype UserSubscription) GetGifterLogin() string
- func (datatype UserSubscription) GetGifterName() string
- func (datatype UserSubscription) GetIsGift() bool
- func (datatype UserSubscription) GetTier() UserSubscriptionTier
- type UserSubscriptionTier
- type UserType
- type UserVip
- type Video
- func (datatype Video) GetCreatedAt() time.Time
- func (datatype Video) GetDescription() string
- func (datatype Video) GetDuration() string
- func (datatype Video) GetId() string
- func (datatype Video) GetLanguage() string
- func (datatype Video) GetMutedSegments() []struct{ ... }
- func (datatype Video) GetPublishedAt() time.Time
- func (datatype Video) GetStreamId() string
- func (datatype Video) GetThumbnailUrl() string
- func (datatype Video) GetTitle() string
- func (datatype Video) GetType() VideoType
- func (datatype Video) GetUrl() string
- func (datatype Video) GetUserId() string
- func (datatype Video) GetUserLogin() string
- func (datatype Video) GetUserName() string
- func (datatype Video) GetViewCount() int32
- func (datatype Video) GetViewable() string
- type VideoType
- type WarnChatUserBody
- type WarnChatUserHTTPResponse
- type WarnChatUserJSONRequestBody
- type WarnChatUserParams
- type WarnChatUserResponse
Constants ¶
const SERVER = "https://api.twitch.tv/helix"
const (
Twitch_authScopes = "twitch_auth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewAddBlockedTermRequest ¶
func NewAddBlockedTermRequest(server string, params *AddBlockedTermParams, body AddBlockedTermJSONRequestBody) (*http.Request, error)
NewAddBlockedTermRequest calls the generic AddBlockedTerm builder with application/json body
func NewAddBlockedTermRequestWithBody ¶
func NewAddBlockedTermRequestWithBody(server string, params *AddBlockedTermParams, contentType string, body io.Reader) (*http.Request, error)
NewAddBlockedTermRequestWithBody generates requests for AddBlockedTerm with any type of body
func NewAddChannelModeratorRequest ¶
func NewAddChannelModeratorRequest(server string, params *AddChannelModeratorParams) (*http.Request, error)
NewAddChannelModeratorRequest generates requests for AddChannelModerator
func NewAddChannelVipRequest ¶
func NewAddChannelVipRequest(server string, params *AddChannelVipParams) (*http.Request, error)
NewAddChannelVipRequest generates requests for AddChannelVip
func NewAssignGuestStarSlotRequest ¶
func NewAssignGuestStarSlotRequest(server string, params *AssignGuestStarSlotParams) (*http.Request, error)
NewAssignGuestStarSlotRequest generates requests for AssignGuestStarSlot
func NewBanUserRequest ¶
func NewBanUserRequest(server string, params *BanUserParams, body BanUserJSONRequestBody) (*http.Request, error)
NewBanUserRequest calls the generic BanUser builder with application/json body
func NewBanUserRequestWithBody ¶
func NewBanUserRequestWithBody(server string, params *BanUserParams, contentType string, body io.Reader) (*http.Request, error)
NewBanUserRequestWithBody generates requests for BanUser with any type of body
func NewBlockUserRequest ¶
func NewBlockUserRequest(server string, params *BlockUserParams) (*http.Request, error)
NewBlockUserRequest generates requests for BlockUser
func NewCancelARaidRequest ¶
func NewCancelARaidRequest(server string, params *CancelARaidParams) (*http.Request, error)
NewCancelARaidRequest generates requests for CancelARaid
func NewCheckAutomodStatusRequest ¶
func NewCheckAutomodStatusRequest(server string, params *CheckAutomodStatusParams, body CheckAutomodStatusJSONRequestBody) (*http.Request, error)
NewCheckAutomodStatusRequest calls the generic CheckAutomodStatus builder with application/json body
func NewCheckAutomodStatusRequestWithBody ¶
func NewCheckAutomodStatusRequestWithBody(server string, params *CheckAutomodStatusParams, contentType string, body io.Reader) (*http.Request, error)
NewCheckAutomodStatusRequestWithBody generates requests for CheckAutomodStatus with any type of body
func NewCheckUserSubscriptionRequest ¶
func NewCheckUserSubscriptionRequest(server string, params *CheckUserSubscriptionParams) (*http.Request, error)
NewCheckUserSubscriptionRequest generates requests for CheckUserSubscription
func NewCreateChannelStreamScheduleSegmentRequest ¶
func NewCreateChannelStreamScheduleSegmentRequest(server string, params *CreateChannelStreamScheduleSegmentParams, body CreateChannelStreamScheduleSegmentJSONRequestBody) (*http.Request, error)
NewCreateChannelStreamScheduleSegmentRequest calls the generic CreateChannelStreamScheduleSegment builder with application/json body
func NewCreateChannelStreamScheduleSegmentRequestWithBody ¶
func NewCreateChannelStreamScheduleSegmentRequestWithBody(server string, params *CreateChannelStreamScheduleSegmentParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateChannelStreamScheduleSegmentRequestWithBody generates requests for CreateChannelStreamScheduleSegment with any type of body
func NewCreateClipRequest ¶
func NewCreateClipRequest(server string, params *CreateClipParams) (*http.Request, error)
NewCreateClipRequest generates requests for CreateClip
func NewCreateConduitsRequest ¶
func NewCreateConduitsRequest(server string, body CreateConduitsJSONRequestBody) (*http.Request, error)
NewCreateConduitsRequest calls the generic CreateConduits builder with application/json body
func NewCreateConduitsRequestWithBody ¶
func NewCreateConduitsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateConduitsRequestWithBody generates requests for CreateConduits with any type of body
func NewCreateCustomRewardsRequest ¶
func NewCreateCustomRewardsRequest(server string, params *CreateCustomRewardsParams, body CreateCustomRewardsJSONRequestBody) (*http.Request, error)
NewCreateCustomRewardsRequest calls the generic CreateCustomRewards builder with application/json body
func NewCreateCustomRewardsRequestWithBody ¶
func NewCreateCustomRewardsRequestWithBody(server string, params *CreateCustomRewardsParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateCustomRewardsRequestWithBody generates requests for CreateCustomRewards with any type of body
func NewCreateEventsubSubscriptionRequest ¶
func NewCreateEventsubSubscriptionRequest(server string, body CreateEventsubSubscriptionJSONRequestBody) (*http.Request, error)
NewCreateEventsubSubscriptionRequest calls the generic CreateEventsubSubscription builder with application/json body
func NewCreateEventsubSubscriptionRequestWithBody ¶
func NewCreateEventsubSubscriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateEventsubSubscriptionRequestWithBody generates requests for CreateEventsubSubscription with any type of body
func NewCreateExtensionSecretRequest ¶
func NewCreateExtensionSecretRequest(server string, params *CreateExtensionSecretParams) (*http.Request, error)
NewCreateExtensionSecretRequest generates requests for CreateExtensionSecret
func NewCreateGuestStarSessionRequest ¶
func NewCreateGuestStarSessionRequest(server string, params *CreateGuestStarSessionParams) (*http.Request, error)
NewCreateGuestStarSessionRequest generates requests for CreateGuestStarSession
func NewCreatePollRequest ¶
func NewCreatePollRequest(server string, body CreatePollJSONRequestBody) (*http.Request, error)
NewCreatePollRequest calls the generic CreatePoll builder with application/json body
func NewCreatePollRequestWithBody ¶
func NewCreatePollRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreatePollRequestWithBody generates requests for CreatePoll with any type of body
func NewCreatePredictionRequest ¶
func NewCreatePredictionRequest(server string, body CreatePredictionJSONRequestBody) (*http.Request, error)
NewCreatePredictionRequest calls the generic CreatePrediction builder with application/json body
func NewCreatePredictionRequestWithBody ¶
func NewCreatePredictionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreatePredictionRequestWithBody generates requests for CreatePrediction with any type of body
func NewCreateStreamMarkerRequest ¶
func NewCreateStreamMarkerRequest(server string, body CreateStreamMarkerJSONRequestBody) (*http.Request, error)
NewCreateStreamMarkerRequest calls the generic CreateStreamMarker builder with application/json body
func NewCreateStreamMarkerRequestWithBody ¶
func NewCreateStreamMarkerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateStreamMarkerRequestWithBody generates requests for CreateStreamMarker with any type of body
func NewDeleteChannelStreamScheduleSegmentRequest ¶
func NewDeleteChannelStreamScheduleSegmentRequest(server string, params *DeleteChannelStreamScheduleSegmentParams) (*http.Request, error)
NewDeleteChannelStreamScheduleSegmentRequest generates requests for DeleteChannelStreamScheduleSegment
func NewDeleteChatMessagesRequest ¶
func NewDeleteChatMessagesRequest(server string, params *DeleteChatMessagesParams) (*http.Request, error)
NewDeleteChatMessagesRequest generates requests for DeleteChatMessages
func NewDeleteConduitRequest ¶
func NewDeleteConduitRequest(server string, params *DeleteConduitParams) (*http.Request, error)
NewDeleteConduitRequest generates requests for DeleteConduit
func NewDeleteCustomRewardRequest ¶
func NewDeleteCustomRewardRequest(server string, params *DeleteCustomRewardParams) (*http.Request, error)
NewDeleteCustomRewardRequest generates requests for DeleteCustomReward
func NewDeleteEventsubSubscriptionRequest ¶
func NewDeleteEventsubSubscriptionRequest(server string, params *DeleteEventsubSubscriptionParams) (*http.Request, error)
NewDeleteEventsubSubscriptionRequest generates requests for DeleteEventsubSubscription
func NewDeleteGuestStarInviteRequest ¶
func NewDeleteGuestStarInviteRequest(server string, params *DeleteGuestStarInviteParams) (*http.Request, error)
NewDeleteGuestStarInviteRequest generates requests for DeleteGuestStarInvite
func NewDeleteGuestStarSlotRequest ¶
func NewDeleteGuestStarSlotRequest(server string, params *DeleteGuestStarSlotParams) (*http.Request, error)
NewDeleteGuestStarSlotRequest generates requests for DeleteGuestStarSlot
func NewDeleteVideosRequest ¶
func NewDeleteVideosRequest(server string, params *DeleteVideosParams) (*http.Request, error)
NewDeleteVideosRequest generates requests for DeleteVideos
func NewEndGuestStarSessionRequest ¶
func NewEndGuestStarSessionRequest(server string, params *EndGuestStarSessionParams) (*http.Request, error)
NewEndGuestStarSessionRequest generates requests for EndGuestStarSession
func NewEndPollRequest ¶
func NewEndPollRequest(server string, body EndPollJSONRequestBody) (*http.Request, error)
NewEndPollRequest calls the generic EndPoll builder with application/json body
func NewEndPollRequestWithBody ¶
func NewEndPollRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEndPollRequestWithBody generates requests for EndPoll with any type of body
func NewEndPredictionRequest ¶
func NewEndPredictionRequest(server string, body EndPredictionJSONRequestBody) (*http.Request, error)
NewEndPredictionRequest calls the generic EndPrediction builder with application/json body
func NewEndPredictionRequestWithBody ¶
func NewEndPredictionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEndPredictionRequestWithBody generates requests for EndPrediction with any type of body
func NewGetAdScheduleRequest ¶
func NewGetAdScheduleRequest(server string, params *GetAdScheduleParams) (*http.Request, error)
NewGetAdScheduleRequest generates requests for GetAdSchedule
func NewGetAllStreamTagsRequest ¶
func NewGetAllStreamTagsRequest(server string, params *GetAllStreamTagsParams) (*http.Request, error)
NewGetAllStreamTagsRequest generates requests for GetAllStreamTags
func NewGetAutomodSettingsRequest ¶
func NewGetAutomodSettingsRequest(server string, params *GetAutomodSettingsParams) (*http.Request, error)
NewGetAutomodSettingsRequest generates requests for GetAutomodSettings
func NewGetBannedUsersRequest ¶
func NewGetBannedUsersRequest(server string, params *GetBannedUsersParams) (*http.Request, error)
NewGetBannedUsersRequest generates requests for GetBannedUsers
func NewGetBitsLeaderboardRequest ¶
func NewGetBitsLeaderboardRequest(server string, params *GetBitsLeaderboardParams) (*http.Request, error)
NewGetBitsLeaderboardRequest generates requests for GetBitsLeaderboard
func NewGetBlockedTermsRequest ¶
func NewGetBlockedTermsRequest(server string, params *GetBlockedTermsParams) (*http.Request, error)
NewGetBlockedTermsRequest generates requests for GetBlockedTerms
func NewGetBroadcasterSubscriptionsRequest ¶
func NewGetBroadcasterSubscriptionsRequest(server string, params *GetBroadcasterSubscriptionsParams) (*http.Request, error)
NewGetBroadcasterSubscriptionsRequest generates requests for GetBroadcasterSubscriptions
func NewGetChannelChatBadgesRequest ¶
func NewGetChannelChatBadgesRequest(server string, params *GetChannelChatBadgesParams) (*http.Request, error)
NewGetChannelChatBadgesRequest generates requests for GetChannelChatBadges
func NewGetChannelEditorsRequest ¶
func NewGetChannelEditorsRequest(server string, params *GetChannelEditorsParams) (*http.Request, error)
NewGetChannelEditorsRequest generates requests for GetChannelEditors
func NewGetChannelEmotesRequest ¶
func NewGetChannelEmotesRequest(server string, params *GetChannelEmotesParams) (*http.Request, error)
NewGetChannelEmotesRequest generates requests for GetChannelEmotes
func NewGetChannelFollowersRequest ¶
func NewGetChannelFollowersRequest(server string, params *GetChannelFollowersParams) (*http.Request, error)
NewGetChannelFollowersRequest generates requests for GetChannelFollowers
func NewGetChannelGuestStarSettingsRequest ¶
func NewGetChannelGuestStarSettingsRequest(server string, params *GetChannelGuestStarSettingsParams) (*http.Request, error)
NewGetChannelGuestStarSettingsRequest generates requests for GetChannelGuestStarSettings
func NewGetChannelIcalendarRequest ¶
func NewGetChannelIcalendarRequest(server string, params *GetChannelIcalendarParams) (*http.Request, error)
NewGetChannelIcalendarRequest generates requests for GetChannelIcalendar
func NewGetChannelInformationRequest ¶
func NewGetChannelInformationRequest(server string, params *GetChannelInformationParams) (*http.Request, error)
NewGetChannelInformationRequest generates requests for GetChannelInformation
func NewGetChannelStreamScheduleRequest ¶
func NewGetChannelStreamScheduleRequest(server string, params *GetChannelStreamScheduleParams) (*http.Request, error)
NewGetChannelStreamScheduleRequest generates requests for GetChannelStreamSchedule
func NewGetChannelTeamsRequest ¶
func NewGetChannelTeamsRequest(server string, params *GetChannelTeamsParams) (*http.Request, error)
NewGetChannelTeamsRequest generates requests for GetChannelTeams
func NewGetCharityCampaignDonationsRequest ¶
func NewGetCharityCampaignDonationsRequest(server string, params *GetCharityCampaignDonationsParams) (*http.Request, error)
NewGetCharityCampaignDonationsRequest generates requests for GetCharityCampaignDonations
func NewGetCharityCampaignRequest ¶
func NewGetCharityCampaignRequest(server string, params *GetCharityCampaignParams) (*http.Request, error)
NewGetCharityCampaignRequest generates requests for GetCharityCampaign
func NewGetChatSettingsRequest ¶
func NewGetChatSettingsRequest(server string, params *GetChatSettingsParams) (*http.Request, error)
NewGetChatSettingsRequest generates requests for GetChatSettings
func NewGetChattersRequest ¶
func NewGetChattersRequest(server string, params *GetChattersParams) (*http.Request, error)
NewGetChattersRequest generates requests for GetChatters
func NewGetCheermotesRequest ¶
func NewGetCheermotesRequest(server string, params *GetCheermotesParams) (*http.Request, error)
NewGetCheermotesRequest generates requests for GetCheermotes
func NewGetClipsRequest ¶
func NewGetClipsRequest(server string, params *GetClipsParams) (*http.Request, error)
NewGetClipsRequest generates requests for GetClips
func NewGetConduitShardsRequest ¶
func NewGetConduitShardsRequest(server string, params *GetConduitShardsParams) (*http.Request, error)
NewGetConduitShardsRequest generates requests for GetConduitShards
func NewGetConduitsRequest ¶
NewGetConduitsRequest generates requests for GetConduits
func NewGetContentClassificationLabelsRequest ¶
func NewGetContentClassificationLabelsRequest(server string, params *GetContentClassificationLabelsParams) (*http.Request, error)
NewGetContentClassificationLabelsRequest generates requests for GetContentClassificationLabels
func NewGetCreatorGoalsRequest ¶
func NewGetCreatorGoalsRequest(server string, params *GetCreatorGoalsParams) (*http.Request, error)
NewGetCreatorGoalsRequest generates requests for GetCreatorGoals
func NewGetCustomRewardRedemptionRequest ¶
func NewGetCustomRewardRedemptionRequest(server string, params *GetCustomRewardRedemptionParams) (*http.Request, error)
NewGetCustomRewardRedemptionRequest generates requests for GetCustomRewardRedemption
func NewGetCustomRewardRequest ¶
func NewGetCustomRewardRequest(server string, params *GetCustomRewardParams) (*http.Request, error)
NewGetCustomRewardRequest generates requests for GetCustomReward
func NewGetDropsEntitlementsRequest ¶
func NewGetDropsEntitlementsRequest(server string, params *GetDropsEntitlementsParams) (*http.Request, error)
NewGetDropsEntitlementsRequest generates requests for GetDropsEntitlements
func NewGetEmoteSetsRequest ¶
func NewGetEmoteSetsRequest(server string, params *GetEmoteSetsParams) (*http.Request, error)
NewGetEmoteSetsRequest generates requests for GetEmoteSets
func NewGetEventsubSubscriptionsRequest ¶
func NewGetEventsubSubscriptionsRequest(server string, params *GetEventsubSubscriptionsParams) (*http.Request, error)
NewGetEventsubSubscriptionsRequest generates requests for GetEventsubSubscriptions
func NewGetExtensionAnalyticsRequest ¶
func NewGetExtensionAnalyticsRequest(server string, params *GetExtensionAnalyticsParams) (*http.Request, error)
NewGetExtensionAnalyticsRequest generates requests for GetExtensionAnalytics
func NewGetExtensionBitsProductsRequest ¶
func NewGetExtensionBitsProductsRequest(server string, params *GetExtensionBitsProductsParams) (*http.Request, error)
NewGetExtensionBitsProductsRequest generates requests for GetExtensionBitsProducts
func NewGetExtensionConfigurationSegmentRequest ¶
func NewGetExtensionConfigurationSegmentRequest(server string, params *GetExtensionConfigurationSegmentParams) (*http.Request, error)
NewGetExtensionConfigurationSegmentRequest generates requests for GetExtensionConfigurationSegment
func NewGetExtensionLiveChannelsRequest ¶
func NewGetExtensionLiveChannelsRequest(server string, params *GetExtensionLiveChannelsParams) (*http.Request, error)
NewGetExtensionLiveChannelsRequest generates requests for GetExtensionLiveChannels
func NewGetExtensionSecretsRequest ¶
NewGetExtensionSecretsRequest generates requests for GetExtensionSecrets
func NewGetExtensionTransactionsRequest ¶
func NewGetExtensionTransactionsRequest(server string, params *GetExtensionTransactionsParams) (*http.Request, error)
NewGetExtensionTransactionsRequest generates requests for GetExtensionTransactions
func NewGetExtensionsRequest ¶
func NewGetExtensionsRequest(server string, params *GetExtensionsParams) (*http.Request, error)
NewGetExtensionsRequest generates requests for GetExtensions
func NewGetFollowedChannelsRequest ¶
func NewGetFollowedChannelsRequest(server string, params *GetFollowedChannelsParams) (*http.Request, error)
NewGetFollowedChannelsRequest generates requests for GetFollowedChannels
func NewGetFollowedStreamsRequest ¶
func NewGetFollowedStreamsRequest(server string, params *GetFollowedStreamsParams) (*http.Request, error)
NewGetFollowedStreamsRequest generates requests for GetFollowedStreams
func NewGetGameAnalyticsRequest ¶
func NewGetGameAnalyticsRequest(server string, params *GetGameAnalyticsParams) (*http.Request, error)
NewGetGameAnalyticsRequest generates requests for GetGameAnalytics
func NewGetGamesRequest ¶
func NewGetGamesRequest(server string, params *GetGamesParams) (*http.Request, error)
NewGetGamesRequest generates requests for GetGames
func NewGetGlobalChatBadgesRequest ¶
NewGetGlobalChatBadgesRequest generates requests for GetGlobalChatBadges
func NewGetGlobalEmotesRequest ¶
NewGetGlobalEmotesRequest generates requests for GetGlobalEmotes
func NewGetGuestStarInvitesRequest ¶
func NewGetGuestStarInvitesRequest(server string, params *GetGuestStarInvitesParams) (*http.Request, error)
NewGetGuestStarInvitesRequest generates requests for GetGuestStarInvites
func NewGetGuestStarSessionRequest ¶
func NewGetGuestStarSessionRequest(server string, params *GetGuestStarSessionParams) (*http.Request, error)
NewGetGuestStarSessionRequest generates requests for GetGuestStarSession
func NewGetHypeTrainEventsRequest ¶
func NewGetHypeTrainEventsRequest(server string, params *GetHypeTrainEventsParams) (*http.Request, error)
NewGetHypeTrainEventsRequest generates requests for GetHypeTrainEvents
func NewGetModeratedChannelsRequest ¶
func NewGetModeratedChannelsRequest(server string, params *GetModeratedChannelsParams) (*http.Request, error)
NewGetModeratedChannelsRequest generates requests for GetModeratedChannels
func NewGetModeratorsRequest ¶
func NewGetModeratorsRequest(server string, params *GetModeratorsParams) (*http.Request, error)
NewGetModeratorsRequest generates requests for GetModerators
func NewGetPollsRequest ¶
func NewGetPollsRequest(server string, params *GetPollsParams) (*http.Request, error)
NewGetPollsRequest generates requests for GetPolls
func NewGetPredictionsRequest ¶
func NewGetPredictionsRequest(server string, params *GetPredictionsParams) (*http.Request, error)
NewGetPredictionsRequest generates requests for GetPredictions
func NewGetReleasedExtensionsRequest ¶
func NewGetReleasedExtensionsRequest(server string, params *GetReleasedExtensionsParams) (*http.Request, error)
NewGetReleasedExtensionsRequest generates requests for GetReleasedExtensions
func NewGetSharedChatSessionRequest ¶
func NewGetSharedChatSessionRequest(server string, params *GetSharedChatSessionParams) (*http.Request, error)
NewGetSharedChatSessionRequest generates requests for GetSharedChatSession
func NewGetShieldModeStatusRequest ¶
func NewGetShieldModeStatusRequest(server string, params *GetShieldModeStatusParams) (*http.Request, error)
NewGetShieldModeStatusRequest generates requests for GetShieldModeStatus
func NewGetStreamKeyRequest ¶
func NewGetStreamKeyRequest(server string, params *GetStreamKeyParams) (*http.Request, error)
NewGetStreamKeyRequest generates requests for GetStreamKey
func NewGetStreamMarkersRequest ¶
func NewGetStreamMarkersRequest(server string, params *GetStreamMarkersParams) (*http.Request, error)
NewGetStreamMarkersRequest generates requests for GetStreamMarkers
func NewGetStreamTagsRequest ¶
func NewGetStreamTagsRequest(server string, params *GetStreamTagsParams) (*http.Request, error)
NewGetStreamTagsRequest generates requests for GetStreamTags
func NewGetStreamsRequest ¶
func NewGetStreamsRequest(server string, params *GetStreamsParams) (*http.Request, error)
NewGetStreamsRequest generates requests for GetStreams
func NewGetTeamsRequest ¶
func NewGetTeamsRequest(server string, params *GetTeamsParams) (*http.Request, error)
NewGetTeamsRequest generates requests for GetTeams
func NewGetTopGamesRequest ¶
func NewGetTopGamesRequest(server string, params *GetTopGamesParams) (*http.Request, error)
NewGetTopGamesRequest generates requests for GetTopGames
func NewGetUnbanRequestsRequest ¶
func NewGetUnbanRequestsRequest(server string, params *GetUnbanRequestsParams) (*http.Request, error)
NewGetUnbanRequestsRequest generates requests for GetUnbanRequests
func NewGetUserActiveExtensionsRequest ¶
func NewGetUserActiveExtensionsRequest(server string, params *GetUserActiveExtensionsParams) (*http.Request, error)
NewGetUserActiveExtensionsRequest generates requests for GetUserActiveExtensions
func NewGetUserBlockListRequest ¶
func NewGetUserBlockListRequest(server string, params *GetUserBlockListParams) (*http.Request, error)
NewGetUserBlockListRequest generates requests for GetUserBlockList
func NewGetUserChatColorRequest ¶
func NewGetUserChatColorRequest(server string, params *GetUserChatColorParams) (*http.Request, error)
NewGetUserChatColorRequest generates requests for GetUserChatColor
func NewGetUserEmotesRequest ¶
func NewGetUserEmotesRequest(server string, params *GetUserEmotesParams) (*http.Request, error)
NewGetUserEmotesRequest generates requests for GetUserEmotes
func NewGetUserExtensionsRequest ¶
NewGetUserExtensionsRequest generates requests for GetUserExtensions
func NewGetUsersRequest ¶
func NewGetUsersRequest(server string, params *GetUsersParams) (*http.Request, error)
NewGetUsersRequest generates requests for GetUsers
func NewGetVideosRequest ¶
func NewGetVideosRequest(server string, params *GetVideosParams) (*http.Request, error)
NewGetVideosRequest generates requests for GetVideos
func NewGetVipsRequest ¶
func NewGetVipsRequest(server string, params *GetVipsParams) (*http.Request, error)
NewGetVipsRequest generates requests for GetVips
func NewManageHeldAutomodMessagesRequest ¶
func NewManageHeldAutomodMessagesRequest(server string, body ManageHeldAutomodMessagesJSONRequestBody) (*http.Request, error)
NewManageHeldAutomodMessagesRequest calls the generic ManageHeldAutomodMessages builder with application/json body
func NewManageHeldAutomodMessagesRequestWithBody ¶
func NewManageHeldAutomodMessagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewManageHeldAutomodMessagesRequestWithBody generates requests for ManageHeldAutomodMessages with any type of body
func NewModifyChannelInformationRequest ¶
func NewModifyChannelInformationRequest(server string, params *ModifyChannelInformationParams, body ModifyChannelInformationJSONRequestBody) (*http.Request, error)
NewModifyChannelInformationRequest calls the generic ModifyChannelInformation builder with application/json body
func NewModifyChannelInformationRequestWithBody ¶
func NewModifyChannelInformationRequestWithBody(server string, params *ModifyChannelInformationParams, contentType string, body io.Reader) (*http.Request, error)
NewModifyChannelInformationRequestWithBody generates requests for ModifyChannelInformation with any type of body
func NewRemoveBlockedTermRequest ¶
func NewRemoveBlockedTermRequest(server string, params *RemoveBlockedTermParams) (*http.Request, error)
NewRemoveBlockedTermRequest generates requests for RemoveBlockedTerm
func NewRemoveChannelModeratorRequest ¶
func NewRemoveChannelModeratorRequest(server string, params *RemoveChannelModeratorParams) (*http.Request, error)
NewRemoveChannelModeratorRequest generates requests for RemoveChannelModerator
func NewRemoveChannelVipRequest ¶
func NewRemoveChannelVipRequest(server string, params *RemoveChannelVipParams) (*http.Request, error)
NewRemoveChannelVipRequest generates requests for RemoveChannelVip
func NewResolveUnbanRequestsRequest ¶
func NewResolveUnbanRequestsRequest(server string, params *ResolveUnbanRequestsParams) (*http.Request, error)
NewResolveUnbanRequestsRequest generates requests for ResolveUnbanRequests
func NewSearchCategoriesRequest ¶
func NewSearchCategoriesRequest(server string, params *SearchCategoriesParams) (*http.Request, error)
NewSearchCategoriesRequest generates requests for SearchCategories
func NewSearchChannelsRequest ¶
func NewSearchChannelsRequest(server string, params *SearchChannelsParams) (*http.Request, error)
NewSearchChannelsRequest generates requests for SearchChannels
func NewSendAShoutoutRequest ¶
func NewSendAShoutoutRequest(server string, params *SendAShoutoutParams) (*http.Request, error)
NewSendAShoutoutRequest generates requests for SendAShoutout
func NewSendChatAnnouncementRequest ¶
func NewSendChatAnnouncementRequest(server string, params *SendChatAnnouncementParams, body SendChatAnnouncementJSONRequestBody) (*http.Request, error)
NewSendChatAnnouncementRequest calls the generic SendChatAnnouncement builder with application/json body
func NewSendChatAnnouncementRequestWithBody ¶
func NewSendChatAnnouncementRequestWithBody(server string, params *SendChatAnnouncementParams, contentType string, body io.Reader) (*http.Request, error)
NewSendChatAnnouncementRequestWithBody generates requests for SendChatAnnouncement with any type of body
func NewSendChatMessageRequest ¶
func NewSendChatMessageRequest(server string, body SendChatMessageJSONRequestBody) (*http.Request, error)
NewSendChatMessageRequest calls the generic SendChatMessage builder with application/json body
func NewSendChatMessageRequestWithBody ¶
func NewSendChatMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendChatMessageRequestWithBody generates requests for SendChatMessage with any type of body
func NewSendExtensionChatMessageRequest ¶
func NewSendExtensionChatMessageRequest(server string, params *SendExtensionChatMessageParams, body SendExtensionChatMessageJSONRequestBody) (*http.Request, error)
NewSendExtensionChatMessageRequest calls the generic SendExtensionChatMessage builder with application/json body
func NewSendExtensionChatMessageRequestWithBody ¶
func NewSendExtensionChatMessageRequestWithBody(server string, params *SendExtensionChatMessageParams, contentType string, body io.Reader) (*http.Request, error)
NewSendExtensionChatMessageRequestWithBody generates requests for SendExtensionChatMessage with any type of body
func NewSendExtensionPubsubMessageRequest ¶
func NewSendExtensionPubsubMessageRequest(server string, body SendExtensionPubsubMessageJSONRequestBody) (*http.Request, error)
NewSendExtensionPubsubMessageRequest calls the generic SendExtensionPubsubMessage builder with application/json body
func NewSendExtensionPubsubMessageRequestWithBody ¶
func NewSendExtensionPubsubMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendExtensionPubsubMessageRequestWithBody generates requests for SendExtensionPubsubMessage with any type of body
func NewSendGuestStarInviteRequest ¶
func NewSendGuestStarInviteRequest(server string, params *SendGuestStarInviteParams) (*http.Request, error)
NewSendGuestStarInviteRequest generates requests for SendGuestStarInvite
func NewSendWhisperRequest ¶
func NewSendWhisperRequest(server string, params *SendWhisperParams, body SendWhisperJSONRequestBody) (*http.Request, error)
NewSendWhisperRequest calls the generic SendWhisper builder with application/json body
func NewSendWhisperRequestWithBody ¶
func NewSendWhisperRequestWithBody(server string, params *SendWhisperParams, contentType string, body io.Reader) (*http.Request, error)
NewSendWhisperRequestWithBody generates requests for SendWhisper with any type of body
func NewSetExtensionConfigurationSegmentRequest ¶
func NewSetExtensionConfigurationSegmentRequest(server string, body SetExtensionConfigurationSegmentJSONRequestBody) (*http.Request, error)
NewSetExtensionConfigurationSegmentRequest calls the generic SetExtensionConfigurationSegment builder with application/json body
func NewSetExtensionConfigurationSegmentRequestWithBody ¶
func NewSetExtensionConfigurationSegmentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetExtensionConfigurationSegmentRequestWithBody generates requests for SetExtensionConfigurationSegment with any type of body
func NewSetExtensionRequiredConfigurationRequest ¶
func NewSetExtensionRequiredConfigurationRequest(server string, params *SetExtensionRequiredConfigurationParams, body SetExtensionRequiredConfigurationJSONRequestBody) (*http.Request, error)
NewSetExtensionRequiredConfigurationRequest calls the generic SetExtensionRequiredConfiguration builder with application/json body
func NewSetExtensionRequiredConfigurationRequestWithBody ¶
func NewSetExtensionRequiredConfigurationRequestWithBody(server string, params *SetExtensionRequiredConfigurationParams, contentType string, body io.Reader) (*http.Request, error)
NewSetExtensionRequiredConfigurationRequestWithBody generates requests for SetExtensionRequiredConfiguration with any type of body
func NewSnoozeNextAdRequest ¶
func NewSnoozeNextAdRequest(server string, params *SnoozeNextAdParams) (*http.Request, error)
NewSnoozeNextAdRequest generates requests for SnoozeNextAd
func NewStartARaidRequest ¶
func NewStartARaidRequest(server string, params *StartARaidParams) (*http.Request, error)
NewStartARaidRequest generates requests for StartARaid
func NewStartCommercialRequest ¶
func NewStartCommercialRequest(server string, body StartCommercialJSONRequestBody) (*http.Request, error)
NewStartCommercialRequest calls the generic StartCommercial builder with application/json body
func NewStartCommercialRequestWithBody ¶
func NewStartCommercialRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewStartCommercialRequestWithBody generates requests for StartCommercial with any type of body
func NewUnbanUserRequest ¶
func NewUnbanUserRequest(server string, params *UnbanUserParams) (*http.Request, error)
NewUnbanUserRequest generates requests for UnbanUser
func NewUnblockUserRequest ¶
func NewUnblockUserRequest(server string, params *UnblockUserParams) (*http.Request, error)
NewUnblockUserRequest generates requests for UnblockUser
func NewUpdateAutomodSettingsRequest ¶
func NewUpdateAutomodSettingsRequest(server string, params *UpdateAutomodSettingsParams, body UpdateAutomodSettingsJSONRequestBody) (*http.Request, error)
NewUpdateAutomodSettingsRequest calls the generic UpdateAutomodSettings builder with application/json body
func NewUpdateAutomodSettingsRequestWithBody ¶
func NewUpdateAutomodSettingsRequestWithBody(server string, params *UpdateAutomodSettingsParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateAutomodSettingsRequestWithBody generates requests for UpdateAutomodSettings with any type of body
func NewUpdateChannelGuestStarSettingsRequest ¶
func NewUpdateChannelGuestStarSettingsRequest(server string, params *UpdateChannelGuestStarSettingsParams, body UpdateChannelGuestStarSettingsJSONRequestBody) (*http.Request, error)
NewUpdateChannelGuestStarSettingsRequest calls the generic UpdateChannelGuestStarSettings builder with application/json body
func NewUpdateChannelGuestStarSettingsRequestWithBody ¶
func NewUpdateChannelGuestStarSettingsRequestWithBody(server string, params *UpdateChannelGuestStarSettingsParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateChannelGuestStarSettingsRequestWithBody generates requests for UpdateChannelGuestStarSettings with any type of body
func NewUpdateChannelStreamScheduleRequest ¶
func NewUpdateChannelStreamScheduleRequest(server string, params *UpdateChannelStreamScheduleParams) (*http.Request, error)
NewUpdateChannelStreamScheduleRequest generates requests for UpdateChannelStreamSchedule
func NewUpdateChannelStreamScheduleSegmentRequest ¶
func NewUpdateChannelStreamScheduleSegmentRequest(server string, params *UpdateChannelStreamScheduleSegmentParams, body UpdateChannelStreamScheduleSegmentJSONRequestBody) (*http.Request, error)
NewUpdateChannelStreamScheduleSegmentRequest calls the generic UpdateChannelStreamScheduleSegment builder with application/json body
func NewUpdateChannelStreamScheduleSegmentRequestWithBody ¶
func NewUpdateChannelStreamScheduleSegmentRequestWithBody(server string, params *UpdateChannelStreamScheduleSegmentParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateChannelStreamScheduleSegmentRequestWithBody generates requests for UpdateChannelStreamScheduleSegment with any type of body
func NewUpdateChatSettingsRequest ¶
func NewUpdateChatSettingsRequest(server string, params *UpdateChatSettingsParams, body UpdateChatSettingsJSONRequestBody) (*http.Request, error)
NewUpdateChatSettingsRequest calls the generic UpdateChatSettings builder with application/json body
func NewUpdateChatSettingsRequestWithBody ¶
func NewUpdateChatSettingsRequestWithBody(server string, params *UpdateChatSettingsParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateChatSettingsRequestWithBody generates requests for UpdateChatSettings with any type of body
func NewUpdateConduitShardsRequest ¶
func NewUpdateConduitShardsRequest(server string, body UpdateConduitShardsJSONRequestBody) (*http.Request, error)
NewUpdateConduitShardsRequest calls the generic UpdateConduitShards builder with application/json body
func NewUpdateConduitShardsRequestWithBody ¶
func NewUpdateConduitShardsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateConduitShardsRequestWithBody generates requests for UpdateConduitShards with any type of body
func NewUpdateConduitsRequest ¶
func NewUpdateConduitsRequest(server string, body UpdateConduitsJSONRequestBody) (*http.Request, error)
NewUpdateConduitsRequest calls the generic UpdateConduits builder with application/json body
func NewUpdateConduitsRequestWithBody ¶
func NewUpdateConduitsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateConduitsRequestWithBody generates requests for UpdateConduits with any type of body
func NewUpdateCustomRewardRequest ¶
func NewUpdateCustomRewardRequest(server string, params *UpdateCustomRewardParams, body UpdateCustomRewardJSONRequestBody) (*http.Request, error)
NewUpdateCustomRewardRequest calls the generic UpdateCustomReward builder with application/json body
func NewUpdateCustomRewardRequestWithBody ¶
func NewUpdateCustomRewardRequestWithBody(server string, params *UpdateCustomRewardParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateCustomRewardRequestWithBody generates requests for UpdateCustomReward with any type of body
func NewUpdateDropsEntitlementsRequest ¶
func NewUpdateDropsEntitlementsRequest(server string, body UpdateDropsEntitlementsJSONRequestBody) (*http.Request, error)
NewUpdateDropsEntitlementsRequest calls the generic UpdateDropsEntitlements builder with application/json body
func NewUpdateDropsEntitlementsRequestWithBody ¶
func NewUpdateDropsEntitlementsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateDropsEntitlementsRequestWithBody generates requests for UpdateDropsEntitlements with any type of body
func NewUpdateExtensionBitsProductRequest ¶
func NewUpdateExtensionBitsProductRequest(server string, body UpdateExtensionBitsProductJSONRequestBody) (*http.Request, error)
NewUpdateExtensionBitsProductRequest calls the generic UpdateExtensionBitsProduct builder with application/json body
func NewUpdateExtensionBitsProductRequestWithBody ¶
func NewUpdateExtensionBitsProductRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateExtensionBitsProductRequestWithBody generates requests for UpdateExtensionBitsProduct with any type of body
func NewUpdateGuestStarSlotRequest ¶
func NewUpdateGuestStarSlotRequest(server string, params *UpdateGuestStarSlotParams) (*http.Request, error)
NewUpdateGuestStarSlotRequest generates requests for UpdateGuestStarSlot
func NewUpdateGuestStarSlotSettingsRequest ¶
func NewUpdateGuestStarSlotSettingsRequest(server string, params *UpdateGuestStarSlotSettingsParams) (*http.Request, error)
NewUpdateGuestStarSlotSettingsRequest generates requests for UpdateGuestStarSlotSettings
func NewUpdateRedemptionStatusRequest ¶
func NewUpdateRedemptionStatusRequest(server string, params *UpdateRedemptionStatusParams, body UpdateRedemptionStatusJSONRequestBody) (*http.Request, error)
NewUpdateRedemptionStatusRequest calls the generic UpdateRedemptionStatus builder with application/json body
func NewUpdateRedemptionStatusRequestWithBody ¶
func NewUpdateRedemptionStatusRequestWithBody(server string, params *UpdateRedemptionStatusParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateRedemptionStatusRequestWithBody generates requests for UpdateRedemptionStatus with any type of body
func NewUpdateShieldModeStatusRequest ¶
func NewUpdateShieldModeStatusRequest(server string, params *UpdateShieldModeStatusParams, body UpdateShieldModeStatusJSONRequestBody) (*http.Request, error)
NewUpdateShieldModeStatusRequest calls the generic UpdateShieldModeStatus builder with application/json body
func NewUpdateShieldModeStatusRequestWithBody ¶
func NewUpdateShieldModeStatusRequestWithBody(server string, params *UpdateShieldModeStatusParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateShieldModeStatusRequestWithBody generates requests for UpdateShieldModeStatus with any type of body
func NewUpdateUserChatColorRequest ¶
func NewUpdateUserChatColorRequest(server string, params *UpdateUserChatColorParams) (*http.Request, error)
NewUpdateUserChatColorRequest generates requests for UpdateUserChatColor
func NewUpdateUserExtensionsRequest ¶
func NewUpdateUserExtensionsRequest(server string, body UpdateUserExtensionsJSONRequestBody) (*http.Request, error)
NewUpdateUserExtensionsRequest calls the generic UpdateUserExtensions builder with application/json body
func NewUpdateUserExtensionsRequestWithBody ¶
func NewUpdateUserExtensionsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateUserExtensionsRequestWithBody generates requests for UpdateUserExtensions with any type of body
func NewUpdateUserRequest ¶
func NewUpdateUserRequest(server string, params *UpdateUserParams) (*http.Request, error)
NewUpdateUserRequest generates requests for UpdateUser
func NewWarnChatUserRequest ¶
func NewWarnChatUserRequest(server string, params *WarnChatUserParams, body WarnChatUserJSONRequestBody) (*http.Request, error)
NewWarnChatUserRequest calls the generic WarnChatUser builder with application/json body
func NewWarnChatUserRequestWithBody ¶
func NewWarnChatUserRequestWithBody(server string, params *WarnChatUserParams, contentType string, body io.Reader) (*http.Request, error)
NewWarnChatUserRequestWithBody generates requests for WarnChatUser with any type of body
Types ¶
type AddBlockedTermBody ¶
type AddBlockedTermBody struct { // Text The word or phrase to block from being used in the broadcaster’s chat room. The term must contain a minimum of 2 characters and may contain up to a maximum of 500 characters. // // Terms may include a wildcard character (\*). The wildcard character must appear at the beginning or end of a word or set of characters. For example, \*foo or foo\*. // // If the blocked term already exists, the response contains the existing blocked term. Text string `json:"text"` }
AddBlockedTermBody defines model for AddBlockedTermBody.
func (AddBlockedTermBody) GetText ¶
func (datatype AddBlockedTermBody) GetText() string
type AddBlockedTermHTTPResponse ¶
type AddBlockedTermHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *AddBlockedTermResponse }
func ParseAddBlockedTermHTTPResponse ¶
func ParseAddBlockedTermHTTPResponse(rsp *http.Response) (*AddBlockedTermHTTPResponse, error)
ParseAddBlockedTermHTTPResponse parses an HTTP response from a AddBlockedTermWithResponse call
func (AddBlockedTermHTTPResponse) Status ¶
func (r AddBlockedTermHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (AddBlockedTermHTTPResponse) StatusCode ¶
func (r AddBlockedTermHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddBlockedTermJSONRequestBody ¶
type AddBlockedTermJSONRequestBody = AddBlockedTermBody
AddBlockedTermJSONRequestBody defines body for AddBlockedTerm for application/json ContentType.
type AddBlockedTermParams ¶
type AddBlockedTermParams struct { // BroadcasterId The ID of the broadcaster that owns the list of blocked terms. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s chat room. This ID must match the user ID in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` }
AddBlockedTermParams defines parameters for AddBlockedTerm.
type AddBlockedTermResponse ¶
type AddBlockedTermResponse struct { // Data A list that contains the single blocked term that the broadcaster added. Data []BlockedTerm `json:"data"` }
AddBlockedTermResponse defines model for AddBlockedTermResponse.
func (AddBlockedTermResponse) GetData ¶
func (datatype AddBlockedTermResponse) GetData() []BlockedTerm
type AddChannelModeratorHTTPResponse ¶
func ParseAddChannelModeratorHTTPResponse ¶
func ParseAddChannelModeratorHTTPResponse(rsp *http.Response) (*AddChannelModeratorHTTPResponse, error)
ParseAddChannelModeratorHTTPResponse parses an HTTP response from a AddChannelModeratorWithResponse call
func (AddChannelModeratorHTTPResponse) Status ¶
func (r AddChannelModeratorHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (AddChannelModeratorHTTPResponse) StatusCode ¶
func (r AddChannelModeratorHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddChannelModeratorParams ¶
type AddChannelModeratorParams struct { // BroadcasterId The ID of the broadcaster that owns the chat room. This ID must match the user ID in the access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // UserId The ID of the user to add as a moderator in the broadcaster’s chat room. UserId string `form:"user_id" json:"user_id"` }
AddChannelModeratorParams defines parameters for AddChannelModerator.
type AddChannelVipHTTPResponse ¶
func ParseAddChannelVipHTTPResponse ¶
func ParseAddChannelVipHTTPResponse(rsp *http.Response) (*AddChannelVipHTTPResponse, error)
ParseAddChannelVipHTTPResponse parses an HTTP response from a AddChannelVipWithResponse call
func (AddChannelVipHTTPResponse) Status ¶
func (r AddChannelVipHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (AddChannelVipHTTPResponse) StatusCode ¶
func (r AddChannelVipHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddChannelVipParams ¶
type AddChannelVipParams struct { // UserId The ID of the user to give VIP status to. UserId string `form:"user_id" json:"user_id"` // BroadcasterId The ID of the broadcaster that’s adding the user as a VIP. This ID must match the user ID in the access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
AddChannelVipParams defines parameters for AddChannelVip.
type AssignGuestStarSlotHTTPResponse ¶
func ParseAssignGuestStarSlotHTTPResponse ¶
func ParseAssignGuestStarSlotHTTPResponse(rsp *http.Response) (*AssignGuestStarSlotHTTPResponse, error)
ParseAssignGuestStarSlotHTTPResponse parses an HTTP response from a AssignGuestStarSlotWithResponse call
func (AssignGuestStarSlotHTTPResponse) Status ¶
func (r AssignGuestStarSlotHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (AssignGuestStarSlotHTTPResponse) StatusCode ¶
func (r AssignGuestStarSlotHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AssignGuestStarSlotParams ¶
type AssignGuestStarSlotParams struct { // BroadcasterId The ID of the broadcaster running the Guest Star session. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s chat room. This ID must match the `user_id` in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` // SessionId The ID of the Guest Star session in which to assign the slot. SessionId string `form:"session_id" json:"session_id"` // GuestId The Twitch User ID corresponding to the guest to assign a slot in the session. This user must already have an invite to this session, and have indicated that they are ready to join. GuestId string `form:"guest_id" json:"guest_id"` // SlotId The slot assignment to give to the user. Must be a numeric identifier between “1” and “N” where N is the max number of slots for the session. Max number of slots allowed for the session is reported by [Get Channel Guest Star Settings](https://dev.twitch.tv/docs/api/reference#get-channel-guest-star-settings). SlotId string `form:"slot_id" json:"slot_id"` }
AssignGuestStarSlotParams defines parameters for AssignGuestStarSlot.
type AutoModSettings ¶
type AutoModSettings struct { // Aggression The Automod level for hostility involving aggression. Aggression int32 `json:"aggression"` // BroadcasterId The broadcaster’s ID. BroadcasterId string `json:"broadcaster_id"` // Bullying The Automod level for hostility involving name calling or insults. Bullying int32 `json:"bullying"` // Disability The Automod level for discrimination against disability. Disability int32 `json:"disability"` // Misogyny The Automod level for discrimination against women. Misogyny int32 `json:"misogyny"` // ModeratorId The moderator’s ID. ModeratorId string `json:"moderator_id"` // OverallLevel The default AutoMod level for the broadcaster. This field is **null** if the broadcaster has set one or more of the individual settings. OverallLevel *int32 `json:"overall_level"` // RaceEthnicityOrReligion The Automod level for racial discrimination. RaceEthnicityOrReligion int32 `json:"race_ethnicity_or_religion"` // SexBasedTerms The Automod level for sexual content. SexBasedTerms int32 `json:"sex_based_terms"` // SexualitySexOrGender The AutoMod level for discrimination based on sexuality, sex, or gender. SexualitySexOrGender int32 `json:"sexuality_sex_or_gender"` // Swearing The Automod level for profanity. Swearing int32 `json:"swearing"` }
AutoModSettings defines model for AutoModSettings.
func (AutoModSettings) GetAggression ¶
func (datatype AutoModSettings) GetAggression() int32
func (AutoModSettings) GetBroadcasterId ¶
func (datatype AutoModSettings) GetBroadcasterId() string
func (AutoModSettings) GetBullying ¶
func (datatype AutoModSettings) GetBullying() int32
func (AutoModSettings) GetDisability ¶
func (datatype AutoModSettings) GetDisability() int32
func (AutoModSettings) GetMisogyny ¶
func (datatype AutoModSettings) GetMisogyny() int32
func (AutoModSettings) GetModeratorId ¶
func (datatype AutoModSettings) GetModeratorId() string
func (AutoModSettings) GetOverallLevel ¶
func (datatype AutoModSettings) GetOverallLevel() int32
func (AutoModSettings) GetRaceEthnicityOrReligion ¶
func (datatype AutoModSettings) GetRaceEthnicityOrReligion() int32
func (AutoModSettings) GetSexBasedTerms ¶
func (datatype AutoModSettings) GetSexBasedTerms() int32
func (AutoModSettings) GetSexualitySexOrGender ¶
func (datatype AutoModSettings) GetSexualitySexOrGender() int32
func (AutoModSettings) GetSwearing ¶
func (datatype AutoModSettings) GetSwearing() int32
type AutoModStatus ¶
type AutoModStatus struct { // IsPermitted A Boolean value that indicates whether Twitch would approve the message for chat or hold it for moderator review or block it from chat. Is **true** if Twitch would approve the message; otherwise, **false** if Twitch would hold the message for moderator review or block it from chat. IsPermitted bool `json:"is_permitted"` // MsgId The caller-defined ID passed in the request. MsgId string `json:"msg_id"` }
AutoModStatus defines model for AutoModStatus.
func (AutoModStatus) GetIsPermitted ¶
func (datatype AutoModStatus) GetIsPermitted() bool
func (AutoModStatus) GetMsgId ¶
func (datatype AutoModStatus) GetMsgId() string
type BanUserBody ¶
type BanUserBody struct { // Data Identifies the user and type of ban. Data struct { // Duration To ban a user indefinitely, don’t include this field. // // To put a user in a timeout, include this field and specify the timeout period, in seconds. The minimum timeout is 1 second and the maximum is 1,209,600 seconds (2 weeks). // // To end a user’s timeout early, set this field to 1, or use the [Unban user](https://dev.twitch.tv/docs/api/reference#unban-user) endpoint. Duration *int32 `json:"duration,omitempty"` // Reason The reason the you’re banning the user or putting them in a timeout. The text is user defined and is limited to a maximum of 500 characters. Reason *string `json:"reason,omitempty"` // UserId The ID of the user to ban or put in a timeout. UserId string `json:"user_id"` } `json:"data"` }
BanUserBody defines model for BanUserBody.
func (BanUserBody) GetData ¶
func (datatype BanUserBody) GetData() struct { // Duration To ban a user indefinitely, don’t include this field. // // To put a user in a timeout, include this field and specify the timeout period, in seconds. The minimum timeout is 1 second and the maximum is 1,209,600 seconds (2 weeks). // // To end a user’s timeout early, set this field to 1, or use the [Unban user](https://dev.twitch.tv/docs/api/reference#unban-user) endpoint. Duration *int32 `json:"duration,omitempty"` // Reason The reason the you’re banning the user or putting them in a timeout. The text is user defined and is limited to a maximum of 500 characters. Reason *string `json:"reason,omitempty"` // UserId The ID of the user to ban or put in a timeout. UserId string `json:"user_id"` }
type BanUserHTTPResponse ¶
type BanUserHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *BanUserResponse }
func ParseBanUserHTTPResponse ¶
func ParseBanUserHTTPResponse(rsp *http.Response) (*BanUserHTTPResponse, error)
ParseBanUserHTTPResponse parses an HTTP response from a BanUserWithResponse call
func (BanUserHTTPResponse) Status ¶
func (r BanUserHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (BanUserHTTPResponse) StatusCode ¶
func (r BanUserHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BanUserJSONRequestBody ¶
type BanUserJSONRequestBody = BanUserBody
BanUserJSONRequestBody defines body for BanUser for application/json ContentType.
type BanUserParams ¶
type BanUserParams struct { // BroadcasterId The ID of the broadcaster whose chat room the user is being banned from. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s chat room. This ID must match the user ID in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` }
BanUserParams defines parameters for BanUser.
type BanUserResponse ¶
type BanUserResponse struct { // Data A list that contains the user you successfully banned or put in a timeout. Data []struct { // BroadcasterId The broadcaster whose chat room the user was banned from chatting in. BroadcasterId string `json:"broadcaster_id"` // CreatedAt The UTC date and time (in RFC3339 format) that the ban or timeout was placed. CreatedAt time.Time `json:"created_at"` // EndTime The UTC date and time (in RFC3339 format) that the timeout will end. Is **null** if the user was banned instead of being put in a timeout. EndTime *time.Time `json:"end_time"` // ModeratorId The moderator that banned or put the user in the timeout. ModeratorId string `json:"moderator_id"` // UserId The user that was banned or put in a timeout. UserId string `json:"user_id"` } `json:"data"` }
BanUserResponse defines model for BanUserResponse.
func (BanUserResponse) GetData ¶
func (datatype BanUserResponse) GetData() []struct { // BroadcasterId The broadcaster whose chat room the user was banned from chatting in. BroadcasterId string `json:"broadcaster_id"` // CreatedAt The UTC date and time (in RFC3339 format) that the ban or timeout was placed. CreatedAt time.Time `json:"created_at"` // EndTime The UTC date and time (in RFC3339 format) that the timeout will end. Is **null** if the user was banned instead of being put in a timeout. EndTime *time.Time `json:"end_time"` // ModeratorId The moderator that banned or put the user in the timeout. ModeratorId string `json:"moderator_id"` // UserId The user that was banned or put in a timeout. UserId string `json:"user_id"` }
type BannedUser ¶
type BannedUser struct { // CreatedAt The UTC date and time (in RFC3339 format) of when the user was banned. CreatedAt time.Time `json:"created_at"` // ExpiresAt The UTC date and time (in RFC3339 format) of when the timeout expires, or an empty string if the user is permanently banned. ExpiresAt time.Time `json:"expires_at"` // ModeratorId The ID of the moderator that banned the user or put them in a timeout. ModeratorId string `json:"moderator_id"` // ModeratorLogin The moderator’s login name. ModeratorLogin string `json:"moderator_login"` // ModeratorName The moderator’s display name. ModeratorName string `json:"moderator_name"` // Reason The reason the user was banned or put in a timeout if the moderator provided one. Reason string `json:"reason"` // UserId The ID of the banned user. UserId string `json:"user_id"` // UserLogin The banned user’s login name. UserLogin string `json:"user_login"` // UserName The banned user’s display name. UserName string `json:"user_name"` }
BannedUser defines model for BannedUser.
func (BannedUser) GetCreatedAt ¶
func (datatype BannedUser) GetCreatedAt() time.Time
func (BannedUser) GetExpiresAt ¶
func (datatype BannedUser) GetExpiresAt() time.Time
func (BannedUser) GetModeratorId ¶
func (datatype BannedUser) GetModeratorId() string
func (BannedUser) GetModeratorLogin ¶
func (datatype BannedUser) GetModeratorLogin() string
func (BannedUser) GetModeratorName ¶
func (datatype BannedUser) GetModeratorName() string
func (BannedUser) GetReason ¶
func (datatype BannedUser) GetReason() string
func (BannedUser) GetUserId ¶
func (datatype BannedUser) GetUserId() string
func (BannedUser) GetUserLogin ¶
func (datatype BannedUser) GetUserLogin() string
func (BannedUser) GetUserName ¶
func (datatype BannedUser) GetUserName() string
type BitsLeaderboard ¶
type BitsLeaderboard struct { // Rank The user’s position on the leaderboard. Rank int32 `json:"rank"` // Score The number of Bits the user has cheered. Score int32 `json:"score"` // UserId An ID that identifies a user on the leaderboard. UserId string `json:"user_id"` // UserLogin The user’s login name. UserLogin string `json:"user_login"` // UserName The user’s display name. UserName string `json:"user_name"` }
BitsLeaderboard defines model for BitsLeaderboard.
func (BitsLeaderboard) GetRank ¶
func (datatype BitsLeaderboard) GetRank() int32
func (BitsLeaderboard) GetScore ¶
func (datatype BitsLeaderboard) GetScore() int32
func (BitsLeaderboard) GetUserId ¶
func (datatype BitsLeaderboard) GetUserId() string
func (BitsLeaderboard) GetUserLogin ¶
func (datatype BitsLeaderboard) GetUserLogin() string
func (BitsLeaderboard) GetUserName ¶
func (datatype BitsLeaderboard) GetUserName() string
type BlockUserHTTPResponse ¶
func ParseBlockUserHTTPResponse ¶
func ParseBlockUserHTTPResponse(rsp *http.Response) (*BlockUserHTTPResponse, error)
ParseBlockUserHTTPResponse parses an HTTP response from a BlockUserWithResponse call
func (BlockUserHTTPResponse) Status ¶
func (r BlockUserHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (BlockUserHTTPResponse) StatusCode ¶
func (r BlockUserHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BlockUserParams ¶
type BlockUserParams struct { // TargetUserId The ID of the user to block. The API ignores the request if the broadcaster has already blocked the user. TargetUserId string `form:"target_user_id" json:"target_user_id"` // SourceContext The location where the harassment took place that is causing the brodcaster to block the user. Possible values are: // // * chat // * whisper // // . SourceContext *BlockUserParamsSourceContext `form:"source_context,omitempty" json:"source_context,omitempty"` // Reason The reason that the broadcaster is blocking the user. Possible values are: // // * harassment // * spam // * other Reason *BlockUserParamsReason `form:"reason,omitempty" json:"reason,omitempty"` }
BlockUserParams defines parameters for BlockUser.
type BlockUserParamsReason ¶
type BlockUserParamsReason string
BlockUserParamsReason defines parameters for BlockUser.
const ( Harassment BlockUserParamsReason = "harassment" Other BlockUserParamsReason = "other" Spam BlockUserParamsReason = "spam" )
Defines values for BlockUserParamsReason.
type BlockUserParamsSourceContext ¶
type BlockUserParamsSourceContext string
BlockUserParamsSourceContext defines parameters for BlockUser.
const ( Chat BlockUserParamsSourceContext = "chat" Whisper BlockUserParamsSourceContext = "whisper" )
Defines values for BlockUserParamsSourceContext.
type BlockedTerm ¶
type BlockedTerm struct { // BroadcasterId The broadcaster that owns the list of blocked terms. BroadcasterId string `json:"broadcaster_id"` // CreatedAt The UTC date and time (in RFC3339 format) that the term was blocked. CreatedAt time.Time `json:"created_at"` // ExpiresAt The UTC date and time (in RFC3339 format) that the blocked term is set to expire. After the block expires, users may use the term in the broadcaster’s chat room. // // This field is **null** if the term was added manually or was permanently blocked by AutoMod. ExpiresAt *time.Time `json:"expires_at"` // Id An ID that identifies this blocked term. Id string `json:"id"` // ModeratorId The moderator that blocked the word or phrase from being used in the broadcaster’s chat room. ModeratorId string `json:"moderator_id"` // Text The blocked word or phrase. Text string `json:"text"` // UpdatedAt The UTC date and time (in RFC3339 format) that the term was updated. // // When the term is added, this timestamp is the same as `created_at`. The timestamp changes as AutoMod continues to deny the term. UpdatedAt time.Time `json:"updated_at"` }
BlockedTerm defines model for BlockedTerm.
func (BlockedTerm) GetBroadcasterId ¶
func (datatype BlockedTerm) GetBroadcasterId() string
func (BlockedTerm) GetCreatedAt ¶
func (datatype BlockedTerm) GetCreatedAt() time.Time
func (BlockedTerm) GetExpiresAt ¶
func (datatype BlockedTerm) GetExpiresAt() time.Time
func (BlockedTerm) GetId ¶
func (datatype BlockedTerm) GetId() string
func (BlockedTerm) GetModeratorId ¶
func (datatype BlockedTerm) GetModeratorId() string
func (BlockedTerm) GetText ¶
func (datatype BlockedTerm) GetText() string
func (BlockedTerm) GetUpdatedAt ¶
func (datatype BlockedTerm) GetUpdatedAt() time.Time
type BroadcasterSubscription ¶
type BroadcasterSubscription struct { // BroadcasterId An ID that identifies the broadcaster. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // GifterId The ID of the user that gifted the subscription to the user. Is an empty string if `is_gift` is **false**. GifterId string `json:"gifter_id"` // GifterLogin The gifter’s login name. Is an empty string if `is_gift` is **false**. GifterLogin string `json:"gifter_login"` // GifterName The gifter’s display name. Is an empty string if `is_gift` is **false**. GifterName string `json:"gifter_name"` // IsGift A Boolean value that determines whether the subscription is a gift subscription. Is **true** if the subscription was gifted. IsGift bool `json:"is_gift"` // PlanName The name of the subscription. PlanName string `json:"plan_name"` // Tier The type of subscription. Possible values are: // // * 1000 — Tier 1 // * 2000 — Tier 2 // * 3000 — Tier 3 Tier BroadcasterSubscriptionTier `json:"tier"` // UserId An ID that identifies the subscribing user. UserId string `json:"user_id"` // UserLogin The user’s login name. UserLogin string `json:"user_login"` // UserName The user’s display name. UserName string `json:"user_name"` }
BroadcasterSubscription defines model for BroadcasterSubscription.
func (BroadcasterSubscription) GetBroadcasterId ¶
func (datatype BroadcasterSubscription) GetBroadcasterId() string
func (BroadcasterSubscription) GetBroadcasterLogin ¶
func (datatype BroadcasterSubscription) GetBroadcasterLogin() string
func (BroadcasterSubscription) GetBroadcasterName ¶
func (datatype BroadcasterSubscription) GetBroadcasterName() string
func (BroadcasterSubscription) GetGifterId ¶
func (datatype BroadcasterSubscription) GetGifterId() string
func (BroadcasterSubscription) GetGifterLogin ¶
func (datatype BroadcasterSubscription) GetGifterLogin() string
func (BroadcasterSubscription) GetGifterName ¶
func (datatype BroadcasterSubscription) GetGifterName() string
func (BroadcasterSubscription) GetIsGift ¶
func (datatype BroadcasterSubscription) GetIsGift() bool
func (BroadcasterSubscription) GetPlanName ¶
func (datatype BroadcasterSubscription) GetPlanName() string
func (BroadcasterSubscription) GetTier ¶
func (datatype BroadcasterSubscription) GetTier() BroadcasterSubscriptionTier
func (BroadcasterSubscription) GetUserId ¶
func (datatype BroadcasterSubscription) GetUserId() string
func (BroadcasterSubscription) GetUserLogin ¶
func (datatype BroadcasterSubscription) GetUserLogin() string
func (BroadcasterSubscription) GetUserName ¶
func (datatype BroadcasterSubscription) GetUserName() string
type BroadcasterSubscriptionTier ¶
type BroadcasterSubscriptionTier string
BroadcasterSubscriptionTier The type of subscription. Possible values are:
* 1000 — Tier 1 * 2000 — Tier 2 * 3000 — Tier 3
const ( BroadcasterSubscriptionTierN1000 BroadcasterSubscriptionTier = "1000" BroadcasterSubscriptionTierN2000 BroadcasterSubscriptionTier = "2000" BroadcasterSubscriptionTierN3000 BroadcasterSubscriptionTier = "3000" )
Defines values for BroadcasterSubscriptionTier.
type CancelARaidHTTPResponse ¶
func ParseCancelARaidHTTPResponse ¶
func ParseCancelARaidHTTPResponse(rsp *http.Response) (*CancelARaidHTTPResponse, error)
ParseCancelARaidHTTPResponse parses an HTTP response from a CancelARaidWithResponse call
func (CancelARaidHTTPResponse) Status ¶
func (r CancelARaidHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CancelARaidHTTPResponse) StatusCode ¶
func (r CancelARaidHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CancelARaidParams ¶
type CancelARaidParams struct { // BroadcasterId The ID of the broadcaster that initiated the raid. This ID must match the user ID in the user access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
CancelARaidParams defines parameters for CancelARaid.
type Category ¶
type Category struct { // BoxArtUrl A URL to an image of the game’s box art or streaming category. BoxArtUrl string `json:"box_art_url"` // Id An ID that uniquely identifies the game or category. Id string `json:"id"` // Name The name of the game or category. Name string `json:"name"` }
Category defines model for Category.
func (Category) GetBoxArtUrl ¶
type Channel ¶
type Channel struct { // BroadcasterLanguage The ISO 639-1 two-letter language code of the language used by the broadcaster. For example, _en_ for English. If the broadcaster uses a language not in the list of [supported stream languages](https://help.twitch.tv/s/article/languages-on-twitch#streamlang), the value is _other_. BroadcasterLanguage string `json:"broadcaster_language"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // DisplayName The broadcaster’s display name. DisplayName string `json:"display_name"` // GameId The ID of the game that the broadcaster is playing or last played. GameId string `json:"game_id"` // GameName The name of the game that the broadcaster is playing or last played. GameName string `json:"game_name"` // Id An ID that uniquely identifies the channel (this is the broadcaster’s ID). Id string `json:"id"` // IsLive A Boolean value that determines whether the broadcaster is streaming live. Is **true** if the broadcaster is streaming live; otherwise, **false**. IsLive bool `json:"is_live"` // StartedAt The UTC date and time (in RFC3339 format) of when the broadcaster started streaming. The string is empty if the broadcaster is not streaming live. StartedAt time.Time `json:"started_at"` // TagIds **IMPORTANT** As of February 28, 2023, this field is deprecated and returns only an empty array. If you use this field, please update your code to use the `tags` field. // // The list of tags that apply to the stream. The list contains IDs only when the channel is steaming live. For a list of possible tags, see [List of All Tags](https://www.twitch.tv/directory/all/tags). The list doesn’t include Category Tags. // Deprecated: TagIds []string `json:"tag_ids"` // Tags The tags applied to the channel. Tags []string `json:"tags"` // ThumbnailUrl A URL to a thumbnail of the broadcaster’s profile image. ThumbnailUrl string `json:"thumbnail_url"` // Title The stream’s title. Is an empty string if the broadcaster didn’t set it. Title string `json:"title"` }
Channel defines model for Channel.
func (Channel) GetBroadcasterLanguage ¶
func (Channel) GetBroadcasterLogin ¶
func (Channel) GetDisplayName ¶
func (Channel) GetGameName ¶
func (Channel) GetStartedAt ¶
func (Channel) GetThumbnailUrl ¶
type ChannelEditor ¶
type ChannelEditor struct { // CreatedAt The date and time, in RFC3339 format, when the user became one of the broadcaster’s editors. CreatedAt time.Time `json:"created_at"` // UserId An ID that uniquely identifies a user with editor permissions. UserId string `json:"user_id"` // UserName The user’s display name. UserName string `json:"user_name"` }
ChannelEditor defines model for ChannelEditor.
func (ChannelEditor) GetCreatedAt ¶
func (datatype ChannelEditor) GetCreatedAt() time.Time
func (ChannelEditor) GetUserId ¶
func (datatype ChannelEditor) GetUserId() string
func (ChannelEditor) GetUserName ¶
func (datatype ChannelEditor) GetUserName() string
type ChannelEmote ¶
type ChannelEmote struct { // EmoteSetId An ID that identifies the emote set that the emote belongs to. EmoteSetId string `json:"emote_set_id"` // EmoteType The type of emote. The possible values are: // // * bitstier — A custom Bits tier emote. // * follower — A custom follower emote. // * subscriptions — A custom subscriber emote. EmoteType ChannelEmoteEmoteType `json:"emote_type"` // Format The formats that the emote is available in. For example, if the emote is available only as a static PNG, the array contains only `static`. But if the emote is available as a static PNG and an animated GIF, the array contains `static` and `animated`. The possible formats are: // // * animated — An animated GIF is available for this emote. // * static — A static PNG file is available for this emote. Format []ChannelEmoteFormat `json:"format"` // Id An ID that identifies this emote. Id string `json:"id"` // Images The image URLs for the emote. These image URLs always provide a static, non-animated emote image with a light background. // // **NOTE:** You should use the templated URL in the `template` field to fetch the image instead of using these URLs. Images struct { // Url1x A URL to the small version (28px x 28px) of the emote. Url1x string `json:"url_1x"` // Url2x A URL to the medium version (56px x 56px) of the emote. Url2x string `json:"url_2x"` // Url4x A URL to the large version (112px x 112px) of the emote. Url4x string `json:"url_4x"` } `json:"images"` // Name The name of the emote. This is the name that viewers type in the chat window to get the emote to appear. Name string `json:"name"` // Scale The sizes that the emote is available in. For example, if the emote is available in small and medium sizes, the array contains 1.0 and 2.0\. Possible sizes are: // // * 1.0 — A small version (28px x 28px) is available. // * 2.0 — A medium version (56px x 56px) is available. // * 3.0 — A large version (112px x 112px) is available. Scale []ChannelEmoteScale `json:"scale"` // ThemeMode The background themes that the emote is available in. Possible themes are: // // * dark // * light ThemeMode []ChannelEmoteThemeMode `json:"theme_mode"` // Tier The subscriber tier at which the emote is unlocked. This field contains the tier information only if `emote_type` is set to `subscriptions`, otherwise, it's an empty string. Tier string `json:"tier"` }
ChannelEmote defines model for ChannelEmote.
func (ChannelEmote) GetEmoteSetId ¶
func (datatype ChannelEmote) GetEmoteSetId() string
func (ChannelEmote) GetEmoteType ¶
func (datatype ChannelEmote) GetEmoteType() ChannelEmoteEmoteType
func (ChannelEmote) GetFormat ¶
func (datatype ChannelEmote) GetFormat() []ChannelEmoteFormat
func (ChannelEmote) GetId ¶
func (datatype ChannelEmote) GetId() string
func (ChannelEmote) GetImages ¶
func (datatype ChannelEmote) GetImages() struct { // Url1x A URL to the small version (28px x 28px) of the emote. Url1x string `json:"url_1x"` // Url2x A URL to the medium version (56px x 56px) of the emote. Url2x string `json:"url_2x"` // Url4x A URL to the large version (112px x 112px) of the emote. Url4x string `json:"url_4x"` }
func (ChannelEmote) GetName ¶
func (datatype ChannelEmote) GetName() string
func (ChannelEmote) GetScale ¶
func (datatype ChannelEmote) GetScale() []ChannelEmoteScale
func (ChannelEmote) GetThemeMode ¶
func (datatype ChannelEmote) GetThemeMode() []ChannelEmoteThemeMode
func (ChannelEmote) GetTier ¶
func (datatype ChannelEmote) GetTier() string
type ChannelEmoteEmoteType ¶
type ChannelEmoteEmoteType string
ChannelEmoteEmoteType The type of emote. The possible values are:
* bitstier — A custom Bits tier emote. * follower — A custom follower emote. * subscriptions — A custom subscriber emote.
const ( ChannelEmoteEmoteTypeBitstier ChannelEmoteEmoteType = "bitstier" ChannelEmoteEmoteTypeFollower ChannelEmoteEmoteType = "follower" ChannelEmoteEmoteTypeSubscriptions ChannelEmoteEmoteType = "subscriptions" )
Defines values for ChannelEmoteEmoteType.
type ChannelEmoteFormat ¶
type ChannelEmoteFormat string
ChannelEmoteFormat defines model for ChannelEmote.Format.
const ( ChannelEmoteFormatAnimated ChannelEmoteFormat = "animated" ChannelEmoteFormatStatic ChannelEmoteFormat = "static" )
Defines values for ChannelEmoteFormat.
type ChannelEmoteScale ¶
type ChannelEmoteScale string
ChannelEmoteScale defines model for ChannelEmote.Scale.
const ( ChannelEmoteScaleN10 ChannelEmoteScale = "1.0" ChannelEmoteScaleN20 ChannelEmoteScale = "2.0" ChannelEmoteScaleN30 ChannelEmoteScale = "3.0" )
Defines values for ChannelEmoteScale.
type ChannelEmoteThemeMode ¶
type ChannelEmoteThemeMode string
ChannelEmoteThemeMode defines model for ChannelEmote.ThemeMode.
const ( ChannelEmoteThemeModeDark ChannelEmoteThemeMode = "dark" ChannelEmoteThemeModeLight ChannelEmoteThemeMode = "light" )
Defines values for ChannelEmoteThemeMode.
type ChannelInformation ¶
type ChannelInformation struct { // BroadcasterId An ID that uniquely identifies the broadcaster. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLanguage The broadcaster’s preferred language. The value is an ISO 639-1 two-letter language code (for example, _en_ for English). The value is set to “other” if the language is not a Twitch supported language. BroadcasterLanguage string `json:"broadcaster_language"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // ContentClassificationLabels The CCLs applied to the channel. ContentClassificationLabels []string `json:"content_classification_labels"` // Delay The value of the broadcaster’s stream delay setting, in seconds. This field’s value defaults to zero unless 1) the request specifies a user access token, 2) the ID in the _broadcaster\_id_ query parameter matches the user ID in the access token, and 3) the broadcaster has partner status and they set a non-zero stream delay value. Delay int32 `json:"delay"` // GameId An ID that uniquely identifies the game that the broadcaster is playing or last played. The value is an empty string if the broadcaster has never played a game. GameId string `json:"game_id"` // GameName The name of the game that the broadcaster is playing or last played. The value is an empty string if the broadcaster has never played a game. GameName string `json:"game_name"` // IsBrandedContent Boolean flag indicating if the channel has branded content. IsBrandedContent bool `json:"is_branded_content"` // Tags The tags applied to the channel. Tags []string `json:"tags"` // Title The title of the stream that the broadcaster is currently streaming or last streamed. The value is an empty string if the broadcaster has never streamed. Title string `json:"title"` }
ChannelInformation defines model for ChannelInformation.
func (ChannelInformation) GetBroadcasterId ¶
func (datatype ChannelInformation) GetBroadcasterId() string
func (ChannelInformation) GetBroadcasterLanguage ¶
func (datatype ChannelInformation) GetBroadcasterLanguage() string
func (ChannelInformation) GetBroadcasterLogin ¶
func (datatype ChannelInformation) GetBroadcasterLogin() string
func (ChannelInformation) GetBroadcasterName ¶
func (datatype ChannelInformation) GetBroadcasterName() string
func (ChannelInformation) GetContentClassificationLabels ¶
func (datatype ChannelInformation) GetContentClassificationLabels() []string
func (ChannelInformation) GetDelay ¶
func (datatype ChannelInformation) GetDelay() int32
func (ChannelInformation) GetGameId ¶
func (datatype ChannelInformation) GetGameId() string
func (ChannelInformation) GetGameName ¶
func (datatype ChannelInformation) GetGameName() string
func (ChannelInformation) GetIsBrandedContent ¶
func (datatype ChannelInformation) GetIsBrandedContent() bool
func (ChannelInformation) GetTags ¶
func (datatype ChannelInformation) GetTags() []string
func (ChannelInformation) GetTitle ¶
func (datatype ChannelInformation) GetTitle() string
type ChannelStreamScheduleSegment ¶
type ChannelStreamScheduleSegment struct { // CanceledUntil Indicates whether the broadcaster canceled this segment of a recurring broadcast. If the broadcaster canceled this segment, this field is set to the same value that’s in the `end_time` field; otherwise, it’s set to **null**. CanceledUntil *string `json:"canceled_until"` // Category The type of content that the broadcaster plans to stream or **null** if not specified. Category struct { // Id An ID that identifies the category that best represents the content that the broadcaster plans to stream. For example, the game’s ID if the broadcaster will play a game or the Just Chatting ID if the broadcaster will host a talk show. Id string `json:"id"` // Name The name of the category. For example, the game’s title if the broadcaster will play a game or Just Chatting if the broadcaster will host a talk show. Name string `json:"name"` } `json:"category"` // EndTime The UTC date and time (in RFC3339 format) of when the broadcast ends. EndTime time.Time `json:"end_time"` // Id An ID that identifies this broadcast segment. Id string `json:"id"` // IsRecurring A Boolean value that determines whether the broadcast is part of a recurring series that streams at the same time each week or is a one-time broadcast. Is **true** if the broadcast is part of a recurring series. IsRecurring bool `json:"is_recurring"` // StartTime The UTC date and time (in RFC3339 format) of when the broadcast starts. StartTime time.Time `json:"start_time"` // Title The broadcast segment’s title. Title string `json:"title"` }
ChannelStreamScheduleSegment defines model for ChannelStreamScheduleSegment.
func (ChannelStreamScheduleSegment) GetCanceledUntil ¶
func (datatype ChannelStreamScheduleSegment) GetCanceledUntil() string
func (ChannelStreamScheduleSegment) GetCategory ¶
func (datatype ChannelStreamScheduleSegment) GetCategory() struct { // Id An ID that identifies the category that best represents the content that the broadcaster plans to stream. For example, the game’s ID if the broadcaster will play a game or the Just Chatting ID if the broadcaster will host a talk show. Id string `json:"id"` // Name The name of the category. For example, the game’s title if the broadcaster will play a game or Just Chatting if the broadcaster will host a talk show. Name string `json:"name"` }
func (ChannelStreamScheduleSegment) GetEndTime ¶
func (datatype ChannelStreamScheduleSegment) GetEndTime() time.Time
func (ChannelStreamScheduleSegment) GetId ¶
func (datatype ChannelStreamScheduleSegment) GetId() string
func (ChannelStreamScheduleSegment) GetIsRecurring ¶
func (datatype ChannelStreamScheduleSegment) GetIsRecurring() bool
func (ChannelStreamScheduleSegment) GetStartTime ¶
func (datatype ChannelStreamScheduleSegment) GetStartTime() time.Time
func (ChannelStreamScheduleSegment) GetTitle ¶
func (datatype ChannelStreamScheduleSegment) GetTitle() string
type ChannelTeam ¶
type ChannelTeam struct { // BackgroundImageUrl A URL to the team’s background image. BackgroundImageUrl string `json:"background_image_url"` // Banner A URL to the team’s banner. Banner string `json:"banner"` // BroadcasterId An ID that identifies the broadcaster. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // CreatedAt The UTC date and time (in RFC3339 format) of when the team was created. CreatedAt time.Time `json:"created_at"` // Id An ID that identifies the team. Id string `json:"id"` // Info The team’s description. The description may contain formatting such as Markdown, HTML, newline (\\n) characters, etc. Info string `json:"info"` // TeamDisplayName The team’s display name. TeamDisplayName string `json:"team_display_name"` // TeamName The team’s name. TeamName string `json:"team_name"` // ThumbnailUrl A URL to a thumbnail image of the team’s logo. ThumbnailUrl string `json:"thumbnail_url"` // UpdatedAt The UTC date and time (in RFC3339 format) of the last time the team was updated. UpdatedAt time.Time `json:"updated_at"` }
ChannelTeam defines model for ChannelTeam.
func (ChannelTeam) GetBackgroundImageUrl ¶
func (datatype ChannelTeam) GetBackgroundImageUrl() string
func (ChannelTeam) GetBanner ¶
func (datatype ChannelTeam) GetBanner() string
func (ChannelTeam) GetBroadcasterId ¶
func (datatype ChannelTeam) GetBroadcasterId() string
func (ChannelTeam) GetBroadcasterLogin ¶
func (datatype ChannelTeam) GetBroadcasterLogin() string
func (ChannelTeam) GetBroadcasterName ¶
func (datatype ChannelTeam) GetBroadcasterName() string
func (ChannelTeam) GetCreatedAt ¶
func (datatype ChannelTeam) GetCreatedAt() time.Time
func (ChannelTeam) GetId ¶
func (datatype ChannelTeam) GetId() string
func (ChannelTeam) GetInfo ¶
func (datatype ChannelTeam) GetInfo() string
func (ChannelTeam) GetTeamDisplayName ¶
func (datatype ChannelTeam) GetTeamDisplayName() string
func (ChannelTeam) GetTeamName ¶
func (datatype ChannelTeam) GetTeamName() string
func (ChannelTeam) GetThumbnailUrl ¶
func (datatype ChannelTeam) GetThumbnailUrl() string
func (ChannelTeam) GetUpdatedAt ¶
func (datatype ChannelTeam) GetUpdatedAt() time.Time
type CharityCampaign ¶
type CharityCampaign struct { // BroadcasterId An ID that identifies the broadcaster that’s running the campaign. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // CharityDescription A description of the charity. CharityDescription string `json:"charity_description"` // CharityLogo A URL to an image of the charity’s logo. The image’s type is PNG and its size is 100px X 100px. CharityLogo string `json:"charity_logo"` // CharityName The charity’s name. CharityName string `json:"charity_name"` // CharityWebsite A URL to the charity’s website. CharityWebsite string `json:"charity_website"` // CurrentAmount The current amount of donations that the campaign has received. CurrentAmount struct { // Currency The ISO-4217 three-letter currency code that identifies the type of currency in `value`. Currency string `json:"currency"` // DecimalPlaces The number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate `value` from minor units to major units by using the formula: // // `value / 10^decimal_places` DecimalPlaces int32 `json:"decimal_places"` // Value The monetary amount. The amount is specified in the currency’s minor unit. For example, the minor units for USD is cents, so if the amount is $5.50 USD, `value` is set to 550. Value int32 `json:"value"` } `json:"current_amount"` // Id An ID that identifies the charity campaign. Id string `json:"id"` // TargetAmount The campaign’s fundraising goal. This field is **null** if the broadcaster has not defined a fundraising goal. TargetAmount struct { // Currency The ISO-4217 three-letter currency code that identifies the type of currency in `value`. Currency string `json:"currency"` // DecimalPlaces The number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate `value` from minor units to major units by using the formula: // // `value / 10^decimal_places` DecimalPlaces int32 `json:"decimal_places"` // Value The monetary amount. The amount is specified in the currency’s minor unit. For example, the minor units for USD is cents, so if the amount is $5.50 USD, `value` is set to 550. Value int32 `json:"value"` } `json:"target_amount"` }
CharityCampaign defines model for CharityCampaign.
func (CharityCampaign) GetBroadcasterId ¶
func (datatype CharityCampaign) GetBroadcasterId() string
func (CharityCampaign) GetBroadcasterLogin ¶
func (datatype CharityCampaign) GetBroadcasterLogin() string
func (CharityCampaign) GetBroadcasterName ¶
func (datatype CharityCampaign) GetBroadcasterName() string
func (CharityCampaign) GetCharityDescription ¶
func (datatype CharityCampaign) GetCharityDescription() string
func (CharityCampaign) GetCharityLogo ¶
func (datatype CharityCampaign) GetCharityLogo() string
func (CharityCampaign) GetCharityName ¶
func (datatype CharityCampaign) GetCharityName() string
func (CharityCampaign) GetCharityWebsite ¶
func (datatype CharityCampaign) GetCharityWebsite() string
func (CharityCampaign) GetCurrentAmount ¶
func (datatype CharityCampaign) GetCurrentAmount() struct { // Currency The ISO-4217 three-letter currency code that identifies the type of currency in `value`. Currency string `json:"currency"` // DecimalPlaces The number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate `value` from minor units to major units by using the formula: // // `value / 10^decimal_places` DecimalPlaces int32 `json:"decimal_places"` // Value The monetary amount. The amount is specified in the currency’s minor unit. For example, the minor units for USD is cents, so if the amount is $5.50 USD, `value` is set to 550. Value int32 `json:"value"` }
func (CharityCampaign) GetId ¶
func (datatype CharityCampaign) GetId() string
func (CharityCampaign) GetTargetAmount ¶
func (datatype CharityCampaign) GetTargetAmount() struct { // Currency The ISO-4217 three-letter currency code that identifies the type of currency in `value`. Currency string `json:"currency"` // DecimalPlaces The number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate `value` from minor units to major units by using the formula: // // `value / 10^decimal_places` DecimalPlaces int32 `json:"decimal_places"` // Value The monetary amount. The amount is specified in the currency’s minor unit. For example, the minor units for USD is cents, so if the amount is $5.50 USD, `value` is set to 550. Value int32 `json:"value"` }
type CharityCampaignDonation ¶
type CharityCampaignDonation struct { // Amount An object that contains the amount of money that the user donated. Amount struct { // Currency The ISO-4217 three-letter currency code that identifies the type of currency in `value`. Currency string `json:"currency"` // DecimalPlaces The number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate `value` from minor units to major units by using the formula: // // `value / 10^decimal_places` DecimalPlaces int32 `json:"decimal_places"` // Value The monetary amount. The amount is specified in the currency’s minor unit. For example, the minor units for USD is cents, so if the amount is $5.50 USD, `value` is set to 550. Value int32 `json:"value"` } `json:"amount"` // CampaignId An ID that identifies the charity campaign that the donation applies to. CampaignId string `json:"campaign_id"` // Id An ID that identifies the donation. The ID is unique across campaigns. Id string `json:"id"` // UserId An ID that identifies a user that donated money to the campaign. UserId string `json:"user_id"` // UserLogin The user’s login name. UserLogin string `json:"user_login"` // UserName The user’s display name. UserName string `json:"user_name"` }
CharityCampaignDonation defines model for CharityCampaignDonation.
func (CharityCampaignDonation) GetAmount ¶
func (datatype CharityCampaignDonation) GetAmount() struct { // Currency The ISO-4217 three-letter currency code that identifies the type of currency in `value`. Currency string `json:"currency"` // DecimalPlaces The number of decimal places used by the currency. For example, USD uses two decimal places. Use this number to translate `value` from minor units to major units by using the formula: // // `value / 10^decimal_places` DecimalPlaces int32 `json:"decimal_places"` // Value The monetary amount. The amount is specified in the currency’s minor unit. For example, the minor units for USD is cents, so if the amount is $5.50 USD, `value` is set to 550. Value int32 `json:"value"` }
func (CharityCampaignDonation) GetCampaignId ¶
func (datatype CharityCampaignDonation) GetCampaignId() string
func (CharityCampaignDonation) GetId ¶
func (datatype CharityCampaignDonation) GetId() string
func (CharityCampaignDonation) GetUserId ¶
func (datatype CharityCampaignDonation) GetUserId() string
func (CharityCampaignDonation) GetUserLogin ¶
func (datatype CharityCampaignDonation) GetUserLogin() string
func (CharityCampaignDonation) GetUserName ¶
func (datatype CharityCampaignDonation) GetUserName() string
type ChatBadge ¶
type ChatBadge struct { // SetId An ID that identifies this set of chat badges. For example, Bits or Subscriber. SetId string `json:"set_id"` // Versions The list of chat badges in this set. Versions []struct { // ClickAction The action to take when clicking on the badge. Set to `null` if no action is specified. ClickAction string `json:"click_action"` // ClickUrl The URL to navigate to when clicking on the badge. Set to `null` if no URL is specified. ClickUrl string `json:"click_url"` // Description The description of the badge. Description string `json:"description"` // Id An ID that identifies this version of the badge. The ID can be any value. For example, for Bits, the ID is the Bits tier level, but for World of Warcraft, it could be Alliance or Horde. Id string `json:"id"` // ImageUrl1x A URL to the small version (18px x 18px) of the badge. ImageUrl1x string `json:"image_url_1x"` // ImageUrl2x A URL to the medium version (36px x 36px) of the badge. ImageUrl2x string `json:"image_url_2x"` // ImageUrl4x A URL to the large version (72px x 72px) of the badge. ImageUrl4x string `json:"image_url_4x"` // Title The title of the badge. Title string `json:"title"` } `json:"versions"` }
ChatBadge defines model for ChatBadge.
func (ChatBadge) GetVersions ¶
func (datatype ChatBadge) GetVersions() []struct { // ClickAction The action to take when clicking on the badge. Set to `null` if no action is specified. ClickAction string `json:"click_action"` // ClickUrl The URL to navigate to when clicking on the badge. Set to `null` if no URL is specified. ClickUrl string `json:"click_url"` // Description The description of the badge. Description string `json:"description"` // Id An ID that identifies this version of the badge. The ID can be any value. For example, for Bits, the ID is the Bits tier level, but for World of Warcraft, it could be Alliance or Horde. Id string `json:"id"` // ImageUrl1x A URL to the small version (18px x 18px) of the badge. ImageUrl1x string `json:"image_url_1x"` // ImageUrl2x A URL to the medium version (36px x 36px) of the badge. ImageUrl2x string `json:"image_url_2x"` // ImageUrl4x A URL to the large version (72px x 72px) of the badge. ImageUrl4x string `json:"image_url_4x"` // Title The title of the badge. Title string `json:"title"` }
type ChatSettings ¶
type ChatSettings struct { // BroadcasterId The ID of the broadcaster specified in the request. BroadcasterId string `json:"broadcaster_id"` // EmoteMode A Boolean value that determines whether chat messages must contain only emotes. Is **true** if chat messages may contain only emotes; otherwise, **false**. EmoteMode bool `json:"emote_mode"` // FollowerMode A Boolean value that determines whether the broadcaster restricts the chat room to followers only. // // Is **true** if the broadcaster restricts the chat room to followers only; otherwise, **false**. // // See the `follower_mode_duration` field for how long users must follow the broadcaster before being able to participate in the chat room. FollowerMode bool `json:"follower_mode"` // FollowerModeDuration The length of time, in minutes, that users must follow the broadcaster before being able to participate in the chat room. Is **null** if `follower_mode` is **false**. FollowerModeDuration *int32 `json:"follower_mode_duration"` // ModeratorId The moderator’s ID. The response includes this field only if the request specifies a user access token that includes the **moderator:read:chat\_settings** scope. ModeratorId *string `json:"moderator_id,omitempty"` // NonModeratorChatDelay A Boolean value that determines whether the broadcaster adds a short delay before chat messages appear in the chat room. This gives chat moderators and bots a chance to remove them before viewers can see the message. See the `non_moderator_chat_delay_duration` field for the length of the delay. Is **true** if the broadcaster applies a delay; otherwise, **false**. // // The response includes this field only if the request specifies a user access token that includes the **moderator:read:chat\_settings** scope and the user in the _moderator\_id_ query parameter is one of the broadcaster’s moderators. NonModeratorChatDelay *bool `json:"non_moderator_chat_delay,omitempty"` // NonModeratorChatDelayDuration The amount of time, in seconds, that messages are delayed before appearing in chat. Is **null** if `non_moderator_chat_delay` is **false**. // // The response includes this field only if the request specifies a user access token that includes the **moderator:read:chat\_settings** scope and the user in the _moderator\_id_ query parameter is one of the broadcaster’s moderators. NonModeratorChatDelayDuration *int32 `json:"non_moderator_chat_delay_duration"` // SlowMode A Boolean value that determines whether the broadcaster limits how often users in the chat room are allowed to send messages. // // Is **true** if the broadcaster applies a delay; otherwise, **false**. // // See the `slow_mode_wait_time` field for the delay. SlowMode bool `json:"slow_mode"` // SlowModeWaitTime The amount of time, in seconds, that users must wait between sending messages. // // Is **null** if slow\_mode is **false**. SlowModeWaitTime *int32 `json:"slow_mode_wait_time"` // SubscriberMode A Boolean value that determines whether only users that subscribe to the broadcaster’s channel may talk in the chat room. // // Is **true** if the broadcaster restricts the chat room to subscribers only; otherwise, **false**. SubscriberMode bool `json:"subscriber_mode"` // UniqueChatMode A Boolean value that determines whether the broadcaster requires users to post only unique messages in the chat room. // // Is **true** if the broadcaster requires unique messages only; otherwise, **false**. UniqueChatMode bool `json:"unique_chat_mode"` }
ChatSettings defines model for ChatSettings.
func (ChatSettings) GetBroadcasterId ¶
func (datatype ChatSettings) GetBroadcasterId() string
func (ChatSettings) GetEmoteMode ¶
func (datatype ChatSettings) GetEmoteMode() bool
func (ChatSettings) GetFollowerMode ¶
func (datatype ChatSettings) GetFollowerMode() bool
func (ChatSettings) GetFollowerModeDuration ¶
func (datatype ChatSettings) GetFollowerModeDuration() int32
func (ChatSettings) GetModeratorId ¶
func (datatype ChatSettings) GetModeratorId() string
func (ChatSettings) GetNonModeratorChatDelay ¶
func (datatype ChatSettings) GetNonModeratorChatDelay() bool
func (ChatSettings) GetNonModeratorChatDelayDuration ¶
func (datatype ChatSettings) GetNonModeratorChatDelayDuration() int32
func (ChatSettings) GetSlowMode ¶
func (datatype ChatSettings) GetSlowMode() bool
func (ChatSettings) GetSlowModeWaitTime ¶
func (datatype ChatSettings) GetSlowModeWaitTime() int32
func (ChatSettings) GetSubscriberMode ¶
func (datatype ChatSettings) GetSubscriberMode() bool
func (ChatSettings) GetUniqueChatMode ¶
func (datatype ChatSettings) GetUniqueChatMode() bool
type ChatSettingsUpdated ¶
type ChatSettingsUpdated struct { // BroadcasterId The ID of the broadcaster specified in the request. BroadcasterId string `json:"broadcaster_id"` // EmoteMode A Boolean value that determines whether chat messages must contain only emotes. Is **true** if chat messages may contain only emotes; otherwise, **false**. EmoteMode bool `json:"emote_mode"` // FollowerMode A Boolean value that determines whether the broadcaster restricts the chat room to followers only. // // Is **true** if the broadcaster restricts the chat room to followers only; otherwise, **false**. // // See the `follower_mode_duration` field for how long users must follow the broadcaster before being able to participate in the chat room. FollowerMode bool `json:"follower_mode"` // FollowerModeDuration The length of time, in minutes, that users must follow the broadcaster before being able to participate in the chat room. Is **null** if `follower_mode` is **false**. FollowerModeDuration *int32 `json:"follower_mode_duration"` // ModeratorId The moderator’s ID. The response includes this field only if the request specifies a user access token that includes the **moderator:read:chat\_settings** scope. ModeratorId *string `json:"moderator_id,omitempty"` // NonModeratorChatDelay A Boolean value that determines whether the broadcaster adds a short delay before chat messages appear in the chat room. This gives chat moderators and bots a chance to remove them before viewers can see the message. See the `non_moderator_chat_delay_duration` field for the length of the delay. Is **true** if the broadcaster applies a delay; otherwise, **false**. NonModeratorChatDelay bool `json:"non_moderator_chat_delay"` // NonModeratorChatDelayDuration The amount of time, in seconds, that messages are delayed before appearing in chat. Is **null** if `non_moderator_chat_delay` is **false**. NonModeratorChatDelayDuration *int32 `json:"non_moderator_chat_delay_duration"` // SlowMode A Boolean value that determines whether the broadcaster limits how often users in the chat room are allowed to send messages. // // Is **true** if the broadcaster applies a delay; otherwise, **false**. // // See the `slow_mode_wait_time` field for the delay. SlowMode bool `json:"slow_mode"` // SlowModeWaitTime The amount of time, in seconds, that users must wait between sending messages. // // Is **null** if slow\_mode is **false**. SlowModeWaitTime *int32 `json:"slow_mode_wait_time"` // SubscriberMode A Boolean value that determines whether only users that subscribe to the broadcaster’s channel may talk in the chat room. // // Is **true** if the broadcaster restricts the chat room to subscribers only; otherwise, **false**. SubscriberMode bool `json:"subscriber_mode"` // UniqueChatMode A Boolean value that determines whether the broadcaster requires users to post only unique messages in the chat room. // // Is **true** if the broadcaster requires unique messages only; otherwise, **false**. UniqueChatMode bool `json:"unique_chat_mode"` }
ChatSettingsUpdated defines model for ChatSettingsUpdated.
func (ChatSettingsUpdated) GetBroadcasterId ¶
func (datatype ChatSettingsUpdated) GetBroadcasterId() string
func (ChatSettingsUpdated) GetEmoteMode ¶
func (datatype ChatSettingsUpdated) GetEmoteMode() bool
func (ChatSettingsUpdated) GetFollowerMode ¶
func (datatype ChatSettingsUpdated) GetFollowerMode() bool
func (ChatSettingsUpdated) GetFollowerModeDuration ¶
func (datatype ChatSettingsUpdated) GetFollowerModeDuration() int32
func (ChatSettingsUpdated) GetModeratorId ¶
func (datatype ChatSettingsUpdated) GetModeratorId() string
func (ChatSettingsUpdated) GetNonModeratorChatDelay ¶
func (datatype ChatSettingsUpdated) GetNonModeratorChatDelay() bool
func (ChatSettingsUpdated) GetNonModeratorChatDelayDuration ¶
func (datatype ChatSettingsUpdated) GetNonModeratorChatDelayDuration() int32
func (ChatSettingsUpdated) GetSlowMode ¶
func (datatype ChatSettingsUpdated) GetSlowMode() bool
func (ChatSettingsUpdated) GetSlowModeWaitTime ¶
func (datatype ChatSettingsUpdated) GetSlowModeWaitTime() int32
func (ChatSettingsUpdated) GetSubscriberMode ¶
func (datatype ChatSettingsUpdated) GetSubscriberMode() bool
func (ChatSettingsUpdated) GetUniqueChatMode ¶
func (datatype ChatSettingsUpdated) GetUniqueChatMode() bool
type Chatter ¶
type Chatter struct { // UserId The ID of a user that’s connected to the broadcaster’s chat room. UserId string `json:"user_id"` // UserLogin The user’s login name. UserLogin string `json:"user_login"` // UserName The user’s display name. UserName string `json:"user_name"` }
Chatter defines model for Chatter.
func (Chatter) GetUserLogin ¶
func (Chatter) GetUserName ¶
type CheckAutoModStatusBody ¶
type CheckAutoModStatusBody struct { // Data The list of messages to check. The list must contain at least one message and may contain up to a maximum of 100 messages. Data []struct { // MsgId A caller-defined ID used to correlate this message with the same message in the response. MsgId string `json:"msg_id"` // MsgText The message to check. MsgText string `json:"msg_text"` } `json:"data"` }
CheckAutoModStatusBody defines model for CheckAutoModStatusBody.
func (CheckAutoModStatusBody) GetData ¶
func (datatype CheckAutoModStatusBody) GetData() []struct { // MsgId A caller-defined ID used to correlate this message with the same message in the response. MsgId string `json:"msg_id"` // MsgText The message to check. MsgText string `json:"msg_text"` }
type CheckAutoModStatusResponse ¶
type CheckAutoModStatusResponse struct { // Data The list of messages and whether Twitch would approve them for chat. Data []AutoModStatus `json:"data"` }
CheckAutoModStatusResponse defines model for CheckAutoModStatusResponse.
func (CheckAutoModStatusResponse) GetData ¶
func (datatype CheckAutoModStatusResponse) GetData() []AutoModStatus
type CheckAutomodStatusHTTPResponse ¶
type CheckAutomodStatusHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CheckAutoModStatusResponse }
func ParseCheckAutomodStatusHTTPResponse ¶
func ParseCheckAutomodStatusHTTPResponse(rsp *http.Response) (*CheckAutomodStatusHTTPResponse, error)
ParseCheckAutomodStatusHTTPResponse parses an HTTP response from a CheckAutomodStatusWithResponse call
func (CheckAutomodStatusHTTPResponse) Status ¶
func (r CheckAutomodStatusHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CheckAutomodStatusHTTPResponse) StatusCode ¶
func (r CheckAutomodStatusHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CheckAutomodStatusJSONRequestBody ¶
type CheckAutomodStatusJSONRequestBody = CheckAutoModStatusBody
CheckAutomodStatusJSONRequestBody defines body for CheckAutomodStatus for application/json ContentType.
type CheckAutomodStatusParams ¶
type CheckAutomodStatusParams struct { // BroadcasterId The ID of the broadcaster whose AutoMod settings and list of blocked terms are used to check the message. This ID must match the user ID in the access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
CheckAutomodStatusParams defines parameters for CheckAutomodStatus.
type CheckUserSubscriptionHTTPResponse ¶
type CheckUserSubscriptionHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CheckUserSubscriptionResponse }
func ParseCheckUserSubscriptionHTTPResponse ¶
func ParseCheckUserSubscriptionHTTPResponse(rsp *http.Response) (*CheckUserSubscriptionHTTPResponse, error)
ParseCheckUserSubscriptionHTTPResponse parses an HTTP response from a CheckUserSubscriptionWithResponse call
func (CheckUserSubscriptionHTTPResponse) Status ¶
func (r CheckUserSubscriptionHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CheckUserSubscriptionHTTPResponse) StatusCode ¶
func (r CheckUserSubscriptionHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CheckUserSubscriptionParams ¶
type CheckUserSubscriptionParams struct { // BroadcasterId The ID of a partner or affiliate broadcaster. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // UserId The ID of the user that you’re checking to see whether they subscribe to the broadcaster in _broadcaster\_id_. This ID must match the user ID in the access Token. UserId string `form:"user_id" json:"user_id"` }
CheckUserSubscriptionParams defines parameters for CheckUserSubscription.
type CheckUserSubscriptionResponse ¶
type CheckUserSubscriptionResponse struct { // Data A list that contains a single object with information about the user’s subscription. Data []UserSubscription `json:"data"` }
CheckUserSubscriptionResponse defines model for CheckUserSubscriptionResponse.
func (CheckUserSubscriptionResponse) GetData ¶
func (datatype CheckUserSubscriptionResponse) GetData() []UserSubscription
type Cheermote ¶
type Cheermote struct { // IsCharitable A Boolean value that indicates whether this Cheermote provides a charitable contribution match during charity campaigns. IsCharitable bool `json:"is_charitable"` // LastUpdated The date and time, in RFC3339 format, when this Cheermote was last updated. LastUpdated time.Time `json:"last_updated"` // Order The order that the Cheermotes are shown in the Bits card. The numbers may not be consecutive. For example, the numbers may jump from 1 to 7 to 13\. The order numbers are unique within a Cheermote type (for example, global\_first\_party) but may not be unique amongst all Cheermotes in the response. Order int32 `json:"order"` // Prefix The name portion of the Cheermote string that you use in chat to cheer Bits. The full Cheermote string is the concatenation of {prefix} + {number of Bits}. For example, if the prefix is “Cheer” and you want to cheer 100 Bits, the full Cheermote string is Cheer100\. When the Cheermote string is entered in chat, Twitch converts it to the image associated with the Bits tier that was cheered. Prefix string `json:"prefix"` // Tiers A list of tier levels that the Cheermote supports. Each tier identifies the range of Bits that you can cheer at that tier level and an image that graphically identifies the tier level. Tiers []struct { // CanCheer A Boolean value that determines whether users can cheer at this tier level. CanCheer bool `json:"can_cheer"` // Color The hex code of the color associated with this tier level (for example, #979797). Color string `json:"color"` // Id The tier level. Possible tiers are: // // * 1 // * 100 // * 500 // * 1000 // * 5000 // * 10000 // * 100000 Id CheermoteTiersId `json:"id"` Images CheermoteImages `json:"images"` // MinBits The minimum number of Bits that you must cheer at this tier level. The maximum number of Bits that you can cheer at this level is determined by the required minimum Bits of the next tier level minus 1\. For example, if `min_bits` is 1 and `min_bits` for the next tier is 100, the Bits range for this tier level is 1 through 99\. The minimum Bits value of the last tier is the maximum number of Bits you can cheer using this Cheermote. For example, 10000. MinBits int32 `json:"min_bits"` // ShowInBitsCard A Boolean value that determines whether this tier level is shown in the Bits card. Is **true** if this tier level is shown in the Bits card. ShowInBitsCard bool `json:"show_in_bits_card"` } `json:"tiers"` // Type The type of Cheermote. Possible values are: // // * global\_first\_party — A Twitch-defined Cheermote that is shown in the Bits card. // * global\_third\_party — A Twitch-defined Cheermote that is not shown in the Bits card. // * channel\_custom — A broadcaster-defined Cheermote. // * display\_only — Do not use; for internal use only. // * sponsored — A sponsor-defined Cheermote. When used, the sponsor adds additional Bits to the amount that the user cheered. For example, if the user cheered Terminator100, the broadcaster might receive 110 Bits, which includes the sponsor's 10 Bits contribution. Type CheermoteType `json:"type"` }
Cheermote defines model for Cheermote.
func (Cheermote) GetIsCharitable ¶
func (Cheermote) GetLastUpdated ¶
func (Cheermote) GetTiers ¶
func (datatype Cheermote) GetTiers() []struct { // CanCheer A Boolean value that determines whether users can cheer at this tier level. CanCheer bool `json:"can_cheer"` // Color The hex code of the color associated with this tier level (for example, #979797). Color string `json:"color"` // Id The tier level. Possible tiers are: // // * 1 // * 100 // * 500 // * 1000 // * 5000 // * 10000 // * 100000 Id CheermoteTiersId `json:"id"` Images CheermoteImages `json:"images"` // MinBits The minimum number of Bits that you must cheer at this tier level. The maximum number of Bits that you can cheer at this level is determined by the required minimum Bits of the next tier level minus 1\. For example, if `min_bits` is 1 and `min_bits` for the next tier is 100, the Bits range for this tier level is 1 through 99\. The minimum Bits value of the last tier is the maximum number of Bits you can cheer using this Cheermote. For example, 10000. MinBits int32 `json:"min_bits"` // ShowInBitsCard A Boolean value that determines whether this tier level is shown in the Bits card. Is **true** if this tier level is shown in the Bits card. ShowInBitsCard bool `json:"show_in_bits_card"` }
func (Cheermote) GetType ¶
func (datatype Cheermote) GetType() CheermoteType
type CheermoteImageFormat ¶
type CheermoteImageFormat struct { N1 *string `json:"1,omitempty"` N15 *string `json:"1.5,omitempty"` N2 *string `json:"2,omitempty"` N3 *string `json:"3,omitempty"` N4 *string `json:"4,omitempty"` }
CheermoteImageFormat defines model for CheermoteImageFormat.
func (CheermoteImageFormat) GetN1 ¶
func (datatype CheermoteImageFormat) GetN1() string
func (CheermoteImageFormat) GetN15 ¶
func (datatype CheermoteImageFormat) GetN15() string
func (CheermoteImageFormat) GetN2 ¶
func (datatype CheermoteImageFormat) GetN2() string
func (CheermoteImageFormat) GetN3 ¶
func (datatype CheermoteImageFormat) GetN3() string
func (CheermoteImageFormat) GetN4 ¶
func (datatype CheermoteImageFormat) GetN4() string
type CheermoteImageTheme ¶
type CheermoteImageTheme struct { Animated *CheermoteImageFormat `json:"animated,omitempty"` Static *CheermoteImageFormat `json:"static,omitempty"` }
CheermoteImageTheme defines model for CheermoteImageTheme.
func (CheermoteImageTheme) GetAnimated ¶
func (datatype CheermoteImageTheme) GetAnimated() CheermoteImageFormat
func (CheermoteImageTheme) GetStatic ¶
func (datatype CheermoteImageTheme) GetStatic() CheermoteImageFormat
type CheermoteImages ¶
type CheermoteImages struct { Dark *CheermoteImageTheme `json:"dark,omitempty"` Light *CheermoteImageTheme `json:"light,omitempty"` }
CheermoteImages defines model for CheermoteImages.
func (CheermoteImages) GetDark ¶
func (datatype CheermoteImages) GetDark() CheermoteImageTheme
func (CheermoteImages) GetLight ¶
func (datatype CheermoteImages) GetLight() CheermoteImageTheme
type CheermoteTiersId ¶
type CheermoteTiersId string
CheermoteTiersId The tier level. Possible tiers are:
* 1 * 100 * 500 * 1000 * 5000 * 10000 * 100000
const ( CheermoteTiersIdN1 CheermoteTiersId = "1" CheermoteTiersIdN100 CheermoteTiersId = "100" CheermoteTiersIdN1000 CheermoteTiersId = "1000" CheermoteTiersIdN10000 CheermoteTiersId = "10000" CheermoteTiersIdN100000 CheermoteTiersId = "100000" CheermoteTiersIdN500 CheermoteTiersId = "500" CheermoteTiersIdN5000 CheermoteTiersId = "5000" )
Defines values for CheermoteTiersId.
type CheermoteType ¶
type CheermoteType string
CheermoteType The type of Cheermote. Possible values are:
* global\_first\_party — A Twitch-defined Cheermote that is shown in the Bits card. * global\_third\_party — A Twitch-defined Cheermote that is not shown in the Bits card. * channel\_custom — A broadcaster-defined Cheermote. * display\_only — Do not use; for internal use only. * sponsored — A sponsor-defined Cheermote. When used, the sponsor adds additional Bits to the amount that the user cheered. For example, if the user cheered Terminator100, the broadcaster might receive 110 Bits, which includes the sponsor's 10 Bits contribution.
const ( ChannelCustom CheermoteType = "channel_custom" DisplayOnly CheermoteType = "display_only" GlobalFirstParty CheermoteType = "global_first_party" GlobalThirdParty CheermoteType = "global_third_party" Sponsored CheermoteType = "sponsored" )
Defines values for CheermoteType.
type CircuitWrapperClientWithResponsesCircuit ¶
type CircuitWrapperClientWithResponsesCircuit struct { ClientWithResponsesInterface // ShouldSkipError determines whether an error should be skipped and have the circuit // track the call as successful. This takes precedence over IsBadRequest ShouldSkipError func(error) bool // IsBadRequest checks whether to count a user error against the circuit. It is recommended to set this IsBadRequest func(error) bool // CircuitAddBlockedTermWithBodyWithResponse is the circuit for method AddBlockedTermWithBodyWithResponse CircuitAddBlockedTermWithBodyWithResponse *circuit.Circuit // CircuitAddBlockedTermWithResponse is the circuit for method AddBlockedTermWithResponse CircuitAddBlockedTermWithResponse *circuit.Circuit // CircuitAddChannelModeratorWithResponse is the circuit for method AddChannelModeratorWithResponse CircuitAddChannelModeratorWithResponse *circuit.Circuit // CircuitAddChannelVipWithResponse is the circuit for method AddChannelVipWithResponse CircuitAddChannelVipWithResponse *circuit.Circuit // CircuitAssignGuestStarSlotWithResponse is the circuit for method AssignGuestStarSlotWithResponse CircuitAssignGuestStarSlotWithResponse *circuit.Circuit // CircuitBanUserWithBodyWithResponse is the circuit for method BanUserWithBodyWithResponse CircuitBanUserWithBodyWithResponse *circuit.Circuit // CircuitBanUserWithResponse is the circuit for method BanUserWithResponse CircuitBanUserWithResponse *circuit.Circuit // CircuitBlockUserWithResponse is the circuit for method BlockUserWithResponse CircuitBlockUserWithResponse *circuit.Circuit // CircuitCancelARaidWithResponse is the circuit for method CancelARaidWithResponse CircuitCancelARaidWithResponse *circuit.Circuit // CircuitCheckAutomodStatusWithBodyWithResponse is the circuit for method CheckAutomodStatusWithBodyWithResponse CircuitCheckAutomodStatusWithBodyWithResponse *circuit.Circuit // CircuitCheckAutomodStatusWithResponse is the circuit for method CheckAutomodStatusWithResponse CircuitCheckAutomodStatusWithResponse *circuit.Circuit // CircuitCheckUserSubscriptionWithResponse is the circuit for method CheckUserSubscriptionWithResponse CircuitCheckUserSubscriptionWithResponse *circuit.Circuit // CircuitCreateChannelStreamScheduleSegmentWithBodyWithResponse is the circuit for method CreateChannelStreamScheduleSegmentWithBodyWithResponse CircuitCreateChannelStreamScheduleSegmentWithBodyWithResponse *circuit.Circuit // CircuitCreateChannelStreamScheduleSegmentWithResponse is the circuit for method CreateChannelStreamScheduleSegmentWithResponse CircuitCreateChannelStreamScheduleSegmentWithResponse *circuit.Circuit // CircuitCreateClipWithResponse is the circuit for method CreateClipWithResponse CircuitCreateClipWithResponse *circuit.Circuit // CircuitCreateConduitsWithBodyWithResponse is the circuit for method CreateConduitsWithBodyWithResponse CircuitCreateConduitsWithBodyWithResponse *circuit.Circuit // CircuitCreateConduitsWithResponse is the circuit for method CreateConduitsWithResponse CircuitCreateConduitsWithResponse *circuit.Circuit // CircuitCreateCustomRewardsWithBodyWithResponse is the circuit for method CreateCustomRewardsWithBodyWithResponse CircuitCreateCustomRewardsWithBodyWithResponse *circuit.Circuit // CircuitCreateCustomRewardsWithResponse is the circuit for method CreateCustomRewardsWithResponse CircuitCreateCustomRewardsWithResponse *circuit.Circuit // CircuitCreateEventsubSubscriptionWithBodyWithResponse is the circuit for method CreateEventsubSubscriptionWithBodyWithResponse CircuitCreateEventsubSubscriptionWithBodyWithResponse *circuit.Circuit // CircuitCreateEventsubSubscriptionWithResponse is the circuit for method CreateEventsubSubscriptionWithResponse CircuitCreateEventsubSubscriptionWithResponse *circuit.Circuit // CircuitCreateExtensionSecretWithResponse is the circuit for method CreateExtensionSecretWithResponse CircuitCreateExtensionSecretWithResponse *circuit.Circuit // CircuitCreateGuestStarSessionWithResponse is the circuit for method CreateGuestStarSessionWithResponse CircuitCreateGuestStarSessionWithResponse *circuit.Circuit // CircuitCreatePollWithBodyWithResponse is the circuit for method CreatePollWithBodyWithResponse CircuitCreatePollWithBodyWithResponse *circuit.Circuit // CircuitCreatePollWithResponse is the circuit for method CreatePollWithResponse CircuitCreatePollWithResponse *circuit.Circuit // CircuitCreatePredictionWithBodyWithResponse is the circuit for method CreatePredictionWithBodyWithResponse CircuitCreatePredictionWithBodyWithResponse *circuit.Circuit // CircuitCreatePredictionWithResponse is the circuit for method CreatePredictionWithResponse CircuitCreatePredictionWithResponse *circuit.Circuit // CircuitCreateStreamMarkerWithBodyWithResponse is the circuit for method CreateStreamMarkerWithBodyWithResponse CircuitCreateStreamMarkerWithBodyWithResponse *circuit.Circuit // CircuitCreateStreamMarkerWithResponse is the circuit for method CreateStreamMarkerWithResponse CircuitCreateStreamMarkerWithResponse *circuit.Circuit // CircuitDeleteChannelStreamScheduleSegmentWithResponse is the circuit for method DeleteChannelStreamScheduleSegmentWithResponse CircuitDeleteChannelStreamScheduleSegmentWithResponse *circuit.Circuit // CircuitDeleteChatMessagesWithResponse is the circuit for method DeleteChatMessagesWithResponse CircuitDeleteChatMessagesWithResponse *circuit.Circuit // CircuitDeleteConduitWithResponse is the circuit for method DeleteConduitWithResponse CircuitDeleteConduitWithResponse *circuit.Circuit // CircuitDeleteCustomRewardWithResponse is the circuit for method DeleteCustomRewardWithResponse CircuitDeleteCustomRewardWithResponse *circuit.Circuit // CircuitDeleteEventsubSubscriptionWithResponse is the circuit for method DeleteEventsubSubscriptionWithResponse CircuitDeleteEventsubSubscriptionWithResponse *circuit.Circuit // CircuitDeleteGuestStarInviteWithResponse is the circuit for method DeleteGuestStarInviteWithResponse CircuitDeleteGuestStarInviteWithResponse *circuit.Circuit // CircuitDeleteGuestStarSlotWithResponse is the circuit for method DeleteGuestStarSlotWithResponse CircuitDeleteGuestStarSlotWithResponse *circuit.Circuit // CircuitDeleteVideosWithResponse is the circuit for method DeleteVideosWithResponse CircuitDeleteVideosWithResponse *circuit.Circuit // CircuitEndGuestStarSessionWithResponse is the circuit for method EndGuestStarSessionWithResponse CircuitEndGuestStarSessionWithResponse *circuit.Circuit // CircuitEndPollWithBodyWithResponse is the circuit for method EndPollWithBodyWithResponse CircuitEndPollWithBodyWithResponse *circuit.Circuit // CircuitEndPollWithResponse is the circuit for method EndPollWithResponse CircuitEndPollWithResponse *circuit.Circuit // CircuitEndPredictionWithBodyWithResponse is the circuit for method EndPredictionWithBodyWithResponse CircuitEndPredictionWithBodyWithResponse *circuit.Circuit // CircuitEndPredictionWithResponse is the circuit for method EndPredictionWithResponse CircuitEndPredictionWithResponse *circuit.Circuit // CircuitGetAdScheduleWithResponse is the circuit for method GetAdScheduleWithResponse CircuitGetAdScheduleWithResponse *circuit.Circuit // CircuitGetAllStreamTagsWithResponse is the circuit for method GetAllStreamTagsWithResponse CircuitGetAllStreamTagsWithResponse *circuit.Circuit // CircuitGetAutomodSettingsWithResponse is the circuit for method GetAutomodSettingsWithResponse CircuitGetAutomodSettingsWithResponse *circuit.Circuit // CircuitGetBannedUsersWithResponse is the circuit for method GetBannedUsersWithResponse CircuitGetBannedUsersWithResponse *circuit.Circuit // CircuitGetBitsLeaderboardWithResponse is the circuit for method GetBitsLeaderboardWithResponse CircuitGetBitsLeaderboardWithResponse *circuit.Circuit // CircuitGetBlockedTermsWithResponse is the circuit for method GetBlockedTermsWithResponse CircuitGetBlockedTermsWithResponse *circuit.Circuit // CircuitGetBroadcasterSubscriptionsWithResponse is the circuit for method GetBroadcasterSubscriptionsWithResponse CircuitGetBroadcasterSubscriptionsWithResponse *circuit.Circuit // CircuitGetChannelChatBadgesWithResponse is the circuit for method GetChannelChatBadgesWithResponse CircuitGetChannelChatBadgesWithResponse *circuit.Circuit // CircuitGetChannelEditorsWithResponse is the circuit for method GetChannelEditorsWithResponse CircuitGetChannelEditorsWithResponse *circuit.Circuit // CircuitGetChannelEmotesWithResponse is the circuit for method GetChannelEmotesWithResponse CircuitGetChannelEmotesWithResponse *circuit.Circuit // CircuitGetChannelFollowersWithResponse is the circuit for method GetChannelFollowersWithResponse CircuitGetChannelFollowersWithResponse *circuit.Circuit // CircuitGetChannelGuestStarSettingsWithResponse is the circuit for method GetChannelGuestStarSettingsWithResponse CircuitGetChannelGuestStarSettingsWithResponse *circuit.Circuit // CircuitGetChannelIcalendarWithResponse is the circuit for method GetChannelIcalendarWithResponse CircuitGetChannelIcalendarWithResponse *circuit.Circuit // CircuitGetChannelInformationWithResponse is the circuit for method GetChannelInformationWithResponse CircuitGetChannelInformationWithResponse *circuit.Circuit // CircuitGetChannelStreamScheduleWithResponse is the circuit for method GetChannelStreamScheduleWithResponse CircuitGetChannelStreamScheduleWithResponse *circuit.Circuit // CircuitGetChannelTeamsWithResponse is the circuit for method GetChannelTeamsWithResponse CircuitGetChannelTeamsWithResponse *circuit.Circuit // CircuitGetCharityCampaignDonationsWithResponse is the circuit for method GetCharityCampaignDonationsWithResponse CircuitGetCharityCampaignDonationsWithResponse *circuit.Circuit // CircuitGetCharityCampaignWithResponse is the circuit for method GetCharityCampaignWithResponse CircuitGetCharityCampaignWithResponse *circuit.Circuit // CircuitGetChatSettingsWithResponse is the circuit for method GetChatSettingsWithResponse CircuitGetChatSettingsWithResponse *circuit.Circuit // CircuitGetChattersWithResponse is the circuit for method GetChattersWithResponse CircuitGetChattersWithResponse *circuit.Circuit // CircuitGetCheermotesWithResponse is the circuit for method GetCheermotesWithResponse CircuitGetCheermotesWithResponse *circuit.Circuit // CircuitGetClipsWithResponse is the circuit for method GetClipsWithResponse CircuitGetClipsWithResponse *circuit.Circuit // CircuitGetConduitShardsWithResponse is the circuit for method GetConduitShardsWithResponse CircuitGetConduitShardsWithResponse *circuit.Circuit // CircuitGetConduitsWithResponse is the circuit for method GetConduitsWithResponse CircuitGetConduitsWithResponse *circuit.Circuit // CircuitGetContentClassificationLabelsWithResponse is the circuit for method GetContentClassificationLabelsWithResponse CircuitGetContentClassificationLabelsWithResponse *circuit.Circuit // CircuitGetCreatorGoalsWithResponse is the circuit for method GetCreatorGoalsWithResponse CircuitGetCreatorGoalsWithResponse *circuit.Circuit // CircuitGetCustomRewardRedemptionWithResponse is the circuit for method GetCustomRewardRedemptionWithResponse CircuitGetCustomRewardRedemptionWithResponse *circuit.Circuit // CircuitGetCustomRewardWithResponse is the circuit for method GetCustomRewardWithResponse CircuitGetCustomRewardWithResponse *circuit.Circuit // CircuitGetDropsEntitlementsWithResponse is the circuit for method GetDropsEntitlementsWithResponse CircuitGetDropsEntitlementsWithResponse *circuit.Circuit // CircuitGetEmoteSetsWithResponse is the circuit for method GetEmoteSetsWithResponse CircuitGetEmoteSetsWithResponse *circuit.Circuit // CircuitGetEventsubSubscriptionsWithResponse is the circuit for method GetEventsubSubscriptionsWithResponse CircuitGetEventsubSubscriptionsWithResponse *circuit.Circuit // CircuitGetExtensionAnalyticsWithResponse is the circuit for method GetExtensionAnalyticsWithResponse CircuitGetExtensionAnalyticsWithResponse *circuit.Circuit // CircuitGetExtensionBitsProductsWithResponse is the circuit for method GetExtensionBitsProductsWithResponse CircuitGetExtensionBitsProductsWithResponse *circuit.Circuit // CircuitGetExtensionConfigurationSegmentWithResponse is the circuit for method GetExtensionConfigurationSegmentWithResponse CircuitGetExtensionConfigurationSegmentWithResponse *circuit.Circuit // CircuitGetExtensionLiveChannelsWithResponse is the circuit for method GetExtensionLiveChannelsWithResponse CircuitGetExtensionLiveChannelsWithResponse *circuit.Circuit // CircuitGetExtensionSecretsWithResponse is the circuit for method GetExtensionSecretsWithResponse CircuitGetExtensionSecretsWithResponse *circuit.Circuit // CircuitGetExtensionTransactionsWithResponse is the circuit for method GetExtensionTransactionsWithResponse CircuitGetExtensionTransactionsWithResponse *circuit.Circuit // CircuitGetExtensionsWithResponse is the circuit for method GetExtensionsWithResponse CircuitGetExtensionsWithResponse *circuit.Circuit // CircuitGetFollowedChannelsWithResponse is the circuit for method GetFollowedChannelsWithResponse CircuitGetFollowedChannelsWithResponse *circuit.Circuit // CircuitGetFollowedStreamsWithResponse is the circuit for method GetFollowedStreamsWithResponse CircuitGetFollowedStreamsWithResponse *circuit.Circuit // CircuitGetGameAnalyticsWithResponse is the circuit for method GetGameAnalyticsWithResponse CircuitGetGameAnalyticsWithResponse *circuit.Circuit // CircuitGetGamesWithResponse is the circuit for method GetGamesWithResponse CircuitGetGamesWithResponse *circuit.Circuit // CircuitGetGlobalChatBadgesWithResponse is the circuit for method GetGlobalChatBadgesWithResponse CircuitGetGlobalChatBadgesWithResponse *circuit.Circuit // CircuitGetGlobalEmotesWithResponse is the circuit for method GetGlobalEmotesWithResponse CircuitGetGlobalEmotesWithResponse *circuit.Circuit // CircuitGetGuestStarInvitesWithResponse is the circuit for method GetGuestStarInvitesWithResponse CircuitGetGuestStarInvitesWithResponse *circuit.Circuit // CircuitGetGuestStarSessionWithResponse is the circuit for method GetGuestStarSessionWithResponse CircuitGetGuestStarSessionWithResponse *circuit.Circuit // CircuitGetHypeTrainEventsWithResponse is the circuit for method GetHypeTrainEventsWithResponse CircuitGetHypeTrainEventsWithResponse *circuit.Circuit // CircuitGetModeratedChannelsWithResponse is the circuit for method GetModeratedChannelsWithResponse CircuitGetModeratedChannelsWithResponse *circuit.Circuit // CircuitGetModeratorsWithResponse is the circuit for method GetModeratorsWithResponse CircuitGetModeratorsWithResponse *circuit.Circuit // CircuitGetPollsWithResponse is the circuit for method GetPollsWithResponse CircuitGetPollsWithResponse *circuit.Circuit // CircuitGetPredictionsWithResponse is the circuit for method GetPredictionsWithResponse CircuitGetPredictionsWithResponse *circuit.Circuit // CircuitGetReleasedExtensionsWithResponse is the circuit for method GetReleasedExtensionsWithResponse CircuitGetReleasedExtensionsWithResponse *circuit.Circuit CircuitGetSharedChatSessionWithResponse *circuit.Circuit // CircuitGetShieldModeStatusWithResponse is the circuit for method GetShieldModeStatusWithResponse CircuitGetShieldModeStatusWithResponse *circuit.Circuit // CircuitGetStreamKeyWithResponse is the circuit for method GetStreamKeyWithResponse CircuitGetStreamKeyWithResponse *circuit.Circuit // CircuitGetStreamMarkersWithResponse is the circuit for method GetStreamMarkersWithResponse CircuitGetStreamMarkersWithResponse *circuit.Circuit // CircuitGetStreamTagsWithResponse is the circuit for method GetStreamTagsWithResponse CircuitGetStreamTagsWithResponse *circuit.Circuit // CircuitGetStreamsWithResponse is the circuit for method GetStreamsWithResponse CircuitGetStreamsWithResponse *circuit.Circuit // CircuitGetTeamsWithResponse is the circuit for method GetTeamsWithResponse CircuitGetTeamsWithResponse *circuit.Circuit // CircuitGetTopGamesWithResponse is the circuit for method GetTopGamesWithResponse CircuitGetTopGamesWithResponse *circuit.Circuit // CircuitGetUnbanRequestsWithResponse is the circuit for method GetUnbanRequestsWithResponse CircuitGetUnbanRequestsWithResponse *circuit.Circuit // CircuitGetUserActiveExtensionsWithResponse is the circuit for method GetUserActiveExtensionsWithResponse CircuitGetUserActiveExtensionsWithResponse *circuit.Circuit // CircuitGetUserBlockListWithResponse is the circuit for method GetUserBlockListWithResponse CircuitGetUserBlockListWithResponse *circuit.Circuit // CircuitGetUserChatColorWithResponse is the circuit for method GetUserChatColorWithResponse CircuitGetUserChatColorWithResponse *circuit.Circuit // CircuitGetUserEmotesWithResponse is the circuit for method GetUserEmotesWithResponse CircuitGetUserEmotesWithResponse *circuit.Circuit // CircuitGetUserExtensionsWithResponse is the circuit for method GetUserExtensionsWithResponse CircuitGetUserExtensionsWithResponse *circuit.Circuit // CircuitGetUsersWithResponse is the circuit for method GetUsersWithResponse CircuitGetUsersWithResponse *circuit.Circuit // CircuitGetVideosWithResponse is the circuit for method GetVideosWithResponse CircuitGetVideosWithResponse *circuit.Circuit // CircuitGetVipsWithResponse is the circuit for method GetVipsWithResponse CircuitGetVipsWithResponse *circuit.Circuit // CircuitManageHeldAutomodMessagesWithBodyWithResponse is the circuit for method ManageHeldAutomodMessagesWithBodyWithResponse CircuitManageHeldAutomodMessagesWithBodyWithResponse *circuit.Circuit // CircuitManageHeldAutomodMessagesWithResponse is the circuit for method ManageHeldAutomodMessagesWithResponse CircuitManageHeldAutomodMessagesWithResponse *circuit.Circuit // CircuitModifyChannelInformationWithBodyWithResponse is the circuit for method ModifyChannelInformationWithBodyWithResponse CircuitModifyChannelInformationWithBodyWithResponse *circuit.Circuit // CircuitModifyChannelInformationWithResponse is the circuit for method ModifyChannelInformationWithResponse CircuitModifyChannelInformationWithResponse *circuit.Circuit // CircuitRemoveBlockedTermWithResponse is the circuit for method RemoveBlockedTermWithResponse CircuitRemoveBlockedTermWithResponse *circuit.Circuit // CircuitRemoveChannelModeratorWithResponse is the circuit for method RemoveChannelModeratorWithResponse CircuitRemoveChannelModeratorWithResponse *circuit.Circuit // CircuitRemoveChannelVipWithResponse is the circuit for method RemoveChannelVipWithResponse CircuitRemoveChannelVipWithResponse *circuit.Circuit // CircuitResolveUnbanRequestsWithResponse is the circuit for method ResolveUnbanRequestsWithResponse CircuitResolveUnbanRequestsWithResponse *circuit.Circuit // CircuitSearchCategoriesWithResponse is the circuit for method SearchCategoriesWithResponse CircuitSearchCategoriesWithResponse *circuit.Circuit // CircuitSearchChannelsWithResponse is the circuit for method SearchChannelsWithResponse CircuitSearchChannelsWithResponse *circuit.Circuit // CircuitSendAShoutoutWithResponse is the circuit for method SendAShoutoutWithResponse CircuitSendAShoutoutWithResponse *circuit.Circuit // CircuitSendChatAnnouncementWithBodyWithResponse is the circuit for method SendChatAnnouncementWithBodyWithResponse CircuitSendChatAnnouncementWithBodyWithResponse *circuit.Circuit // CircuitSendChatAnnouncementWithResponse is the circuit for method SendChatAnnouncementWithResponse CircuitSendChatAnnouncementWithResponse *circuit.Circuit // CircuitSendChatMessageWithBodyWithResponse is the circuit for method SendChatMessageWithBodyWithResponse CircuitSendChatMessageWithBodyWithResponse *circuit.Circuit // CircuitSendChatMessageWithResponse is the circuit for method SendChatMessageWithResponse CircuitSendChatMessageWithResponse *circuit.Circuit // CircuitSendExtensionChatMessageWithBodyWithResponse is the circuit for method SendExtensionChatMessageWithBodyWithResponse CircuitSendExtensionChatMessageWithBodyWithResponse *circuit.Circuit // CircuitSendExtensionChatMessageWithResponse is the circuit for method SendExtensionChatMessageWithResponse CircuitSendExtensionChatMessageWithResponse *circuit.Circuit // CircuitSendExtensionPubsubMessageWithBodyWithResponse is the circuit for method SendExtensionPubsubMessageWithBodyWithResponse CircuitSendExtensionPubsubMessageWithBodyWithResponse *circuit.Circuit // CircuitSendExtensionPubsubMessageWithResponse is the circuit for method SendExtensionPubsubMessageWithResponse CircuitSendExtensionPubsubMessageWithResponse *circuit.Circuit // CircuitSendGuestStarInviteWithResponse is the circuit for method SendGuestStarInviteWithResponse CircuitSendGuestStarInviteWithResponse *circuit.Circuit // CircuitSendWhisperWithBodyWithResponse is the circuit for method SendWhisperWithBodyWithResponse CircuitSendWhisperWithBodyWithResponse *circuit.Circuit // CircuitSendWhisperWithResponse is the circuit for method SendWhisperWithResponse CircuitSendWhisperWithResponse *circuit.Circuit // CircuitSetExtensionConfigurationSegmentWithBodyWithResponse is the circuit for method SetExtensionConfigurationSegmentWithBodyWithResponse CircuitSetExtensionConfigurationSegmentWithBodyWithResponse *circuit.Circuit // CircuitSetExtensionConfigurationSegmentWithResponse is the circuit for method SetExtensionConfigurationSegmentWithResponse CircuitSetExtensionConfigurationSegmentWithResponse *circuit.Circuit // CircuitSetExtensionRequiredConfigurationWithBodyWithResponse is the circuit for method SetExtensionRequiredConfigurationWithBodyWithResponse CircuitSetExtensionRequiredConfigurationWithBodyWithResponse *circuit.Circuit // CircuitSetExtensionRequiredConfigurationWithResponse is the circuit for method SetExtensionRequiredConfigurationWithResponse CircuitSetExtensionRequiredConfigurationWithResponse *circuit.Circuit // CircuitSnoozeNextAdWithResponse is the circuit for method SnoozeNextAdWithResponse CircuitSnoozeNextAdWithResponse *circuit.Circuit // CircuitStartARaidWithResponse is the circuit for method StartARaidWithResponse CircuitStartARaidWithResponse *circuit.Circuit // CircuitStartCommercialWithBodyWithResponse is the circuit for method StartCommercialWithBodyWithResponse CircuitStartCommercialWithBodyWithResponse *circuit.Circuit // CircuitStartCommercialWithResponse is the circuit for method StartCommercialWithResponse CircuitStartCommercialWithResponse *circuit.Circuit // CircuitUnbanUserWithResponse is the circuit for method UnbanUserWithResponse CircuitUnbanUserWithResponse *circuit.Circuit // CircuitUnblockUserWithResponse is the circuit for method UnblockUserWithResponse CircuitUnblockUserWithResponse *circuit.Circuit // CircuitUpdateAutomodSettingsWithBodyWithResponse is the circuit for method UpdateAutomodSettingsWithBodyWithResponse CircuitUpdateAutomodSettingsWithBodyWithResponse *circuit.Circuit // CircuitUpdateAutomodSettingsWithResponse is the circuit for method UpdateAutomodSettingsWithResponse CircuitUpdateAutomodSettingsWithResponse *circuit.Circuit // CircuitUpdateChannelGuestStarSettingsWithBodyWithResponse is the circuit for method UpdateChannelGuestStarSettingsWithBodyWithResponse CircuitUpdateChannelGuestStarSettingsWithBodyWithResponse *circuit.Circuit // CircuitUpdateChannelGuestStarSettingsWithResponse is the circuit for method UpdateChannelGuestStarSettingsWithResponse CircuitUpdateChannelGuestStarSettingsWithResponse *circuit.Circuit // CircuitUpdateChannelStreamScheduleSegmentWithBodyWithResponse is the circuit for method UpdateChannelStreamScheduleSegmentWithBodyWithResponse CircuitUpdateChannelStreamScheduleSegmentWithBodyWithResponse *circuit.Circuit // CircuitUpdateChannelStreamScheduleSegmentWithResponse is the circuit for method UpdateChannelStreamScheduleSegmentWithResponse CircuitUpdateChannelStreamScheduleSegmentWithResponse *circuit.Circuit // CircuitUpdateChannelStreamScheduleWithResponse is the circuit for method UpdateChannelStreamScheduleWithResponse CircuitUpdateChannelStreamScheduleWithResponse *circuit.Circuit // CircuitUpdateChatSettingsWithBodyWithResponse is the circuit for method UpdateChatSettingsWithBodyWithResponse CircuitUpdateChatSettingsWithBodyWithResponse *circuit.Circuit // CircuitUpdateChatSettingsWithResponse is the circuit for method UpdateChatSettingsWithResponse CircuitUpdateChatSettingsWithResponse *circuit.Circuit // CircuitUpdateConduitShardsWithBodyWithResponse is the circuit for method UpdateConduitShardsWithBodyWithResponse CircuitUpdateConduitShardsWithBodyWithResponse *circuit.Circuit // CircuitUpdateConduitShardsWithResponse is the circuit for method UpdateConduitShardsWithResponse CircuitUpdateConduitShardsWithResponse *circuit.Circuit // CircuitUpdateConduitsWithBodyWithResponse is the circuit for method UpdateConduitsWithBodyWithResponse CircuitUpdateConduitsWithBodyWithResponse *circuit.Circuit // CircuitUpdateConduitsWithResponse is the circuit for method UpdateConduitsWithResponse CircuitUpdateConduitsWithResponse *circuit.Circuit // CircuitUpdateCustomRewardWithBodyWithResponse is the circuit for method UpdateCustomRewardWithBodyWithResponse CircuitUpdateCustomRewardWithBodyWithResponse *circuit.Circuit // CircuitUpdateCustomRewardWithResponse is the circuit for method UpdateCustomRewardWithResponse CircuitUpdateCustomRewardWithResponse *circuit.Circuit // CircuitUpdateDropsEntitlementsWithBodyWithResponse is the circuit for method UpdateDropsEntitlementsWithBodyWithResponse CircuitUpdateDropsEntitlementsWithBodyWithResponse *circuit.Circuit // CircuitUpdateDropsEntitlementsWithResponse is the circuit for method UpdateDropsEntitlementsWithResponse CircuitUpdateDropsEntitlementsWithResponse *circuit.Circuit // CircuitUpdateExtensionBitsProductWithBodyWithResponse is the circuit for method UpdateExtensionBitsProductWithBodyWithResponse CircuitUpdateExtensionBitsProductWithBodyWithResponse *circuit.Circuit // CircuitUpdateExtensionBitsProductWithResponse is the circuit for method UpdateExtensionBitsProductWithResponse CircuitUpdateExtensionBitsProductWithResponse *circuit.Circuit // CircuitUpdateGuestStarSlotSettingsWithResponse is the circuit for method UpdateGuestStarSlotSettingsWithResponse CircuitUpdateGuestStarSlotSettingsWithResponse *circuit.Circuit // CircuitUpdateGuestStarSlotWithResponse is the circuit for method UpdateGuestStarSlotWithResponse CircuitUpdateGuestStarSlotWithResponse *circuit.Circuit // CircuitUpdateRedemptionStatusWithBodyWithResponse is the circuit for method UpdateRedemptionStatusWithBodyWithResponse CircuitUpdateRedemptionStatusWithBodyWithResponse *circuit.Circuit // CircuitUpdateRedemptionStatusWithResponse is the circuit for method UpdateRedemptionStatusWithResponse CircuitUpdateRedemptionStatusWithResponse *circuit.Circuit // CircuitUpdateShieldModeStatusWithBodyWithResponse is the circuit for method UpdateShieldModeStatusWithBodyWithResponse CircuitUpdateShieldModeStatusWithBodyWithResponse *circuit.Circuit // CircuitUpdateShieldModeStatusWithResponse is the circuit for method UpdateShieldModeStatusWithResponse CircuitUpdateShieldModeStatusWithResponse *circuit.Circuit // CircuitUpdateUserChatColorWithResponse is the circuit for method UpdateUserChatColorWithResponse CircuitUpdateUserChatColorWithResponse *circuit.Circuit // CircuitUpdateUserExtensionsWithBodyWithResponse is the circuit for method UpdateUserExtensionsWithBodyWithResponse CircuitUpdateUserExtensionsWithBodyWithResponse *circuit.Circuit // CircuitUpdateUserExtensionsWithResponse is the circuit for method UpdateUserExtensionsWithResponse CircuitUpdateUserExtensionsWithResponse *circuit.Circuit // CircuitUpdateUserWithResponse is the circuit for method UpdateUserWithResponse CircuitUpdateUserWithResponse *circuit.Circuit // CircuitWarnChatUserWithBodyWithResponse is the circuit for method WarnChatUserWithBodyWithResponse CircuitWarnChatUserWithBodyWithResponse *circuit.Circuit // CircuitWarnChatUserWithResponse is the circuit for method WarnChatUserWithResponse CircuitWarnChatUserWithResponse *circuit.Circuit }
CircuitWrapperClientWithResponsesCircuit is a circuit wrapper for ClientWithResponsesInterface
func NewCircuitWrapperClientWithResponsesCircuit ¶
func NewCircuitWrapperClientWithResponsesCircuit( manager *circuit.Manager, embedded ClientWithResponsesInterface, conf CircuitWrapperClientWithResponsesCircuitConfig, ) (*CircuitWrapperClientWithResponsesCircuit, error)
NewCircuitWrapperClientWithResponsesCircuit creates a new circuit wrapper and initializes circuits
func (*CircuitWrapperClientWithResponsesCircuit) AddBlockedTermWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) AddBlockedTermWithBodyWithResponse(ctx context.Context, p1 *AddBlockedTermParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*AddBlockedTermHTTPResponse, error)
AddBlockedTermWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method AddBlockedTermWithBodyWithResponse with CircuitAddBlockedTermWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) AddBlockedTermWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) AddBlockedTermWithResponse(ctx context.Context, p1 *AddBlockedTermParams, p2 AddBlockedTermBody, p3 ...RequestEditorFn) (*AddBlockedTermHTTPResponse, error)
AddBlockedTermWithResponse calls the embedded ClientWithResponsesInterface's method AddBlockedTermWithResponse with CircuitAddBlockedTermWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) AddChannelModeratorWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) AddChannelModeratorWithResponse(ctx context.Context, p1 *AddChannelModeratorParams, p2 ...RequestEditorFn) (*AddChannelModeratorHTTPResponse, error)
AddChannelModeratorWithResponse calls the embedded ClientWithResponsesInterface's method AddChannelModeratorWithResponse with CircuitAddChannelModeratorWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) AddChannelVipWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) AddChannelVipWithResponse(ctx context.Context, p1 *AddChannelVipParams, p2 ...RequestEditorFn) (*AddChannelVipHTTPResponse, error)
AddChannelVipWithResponse calls the embedded ClientWithResponsesInterface's method AddChannelVipWithResponse with CircuitAddChannelVipWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) AssignGuestStarSlotWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) AssignGuestStarSlotWithResponse(ctx context.Context, p1 *AssignGuestStarSlotParams, p2 ...RequestEditorFn) (*AssignGuestStarSlotHTTPResponse, error)
AssignGuestStarSlotWithResponse calls the embedded ClientWithResponsesInterface's method AssignGuestStarSlotWithResponse with CircuitAssignGuestStarSlotWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) BanUserWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) BanUserWithBodyWithResponse(ctx context.Context, p1 *BanUserParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*BanUserHTTPResponse, error)
BanUserWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method BanUserWithBodyWithResponse with CircuitBanUserWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) BanUserWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) BanUserWithResponse(ctx context.Context, p1 *BanUserParams, p2 BanUserBody, p3 ...RequestEditorFn) (*BanUserHTTPResponse, error)
BanUserWithResponse calls the embedded ClientWithResponsesInterface's method BanUserWithResponse with CircuitBanUserWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) BlockUserWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) BlockUserWithResponse(ctx context.Context, p1 *BlockUserParams, p2 ...RequestEditorFn) (*BlockUserHTTPResponse, error)
BlockUserWithResponse calls the embedded ClientWithResponsesInterface's method BlockUserWithResponse with CircuitBlockUserWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CancelARaidWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CancelARaidWithResponse(ctx context.Context, p1 *CancelARaidParams, p2 ...RequestEditorFn) (*CancelARaidHTTPResponse, error)
CancelARaidWithResponse calls the embedded ClientWithResponsesInterface's method CancelARaidWithResponse with CircuitCancelARaidWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CheckAutomodStatusWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CheckAutomodStatusWithBodyWithResponse(ctx context.Context, p1 *CheckAutomodStatusParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*CheckAutomodStatusHTTPResponse, error)
CheckAutomodStatusWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method CheckAutomodStatusWithBodyWithResponse with CircuitCheckAutomodStatusWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CheckAutomodStatusWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CheckAutomodStatusWithResponse(ctx context.Context, p1 *CheckAutomodStatusParams, p2 CheckAutoModStatusBody, p3 ...RequestEditorFn) (*CheckAutomodStatusHTTPResponse, error)
CheckAutomodStatusWithResponse calls the embedded ClientWithResponsesInterface's method CheckAutomodStatusWithResponse with CircuitCheckAutomodStatusWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CheckUserSubscriptionWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CheckUserSubscriptionWithResponse(ctx context.Context, p1 *CheckUserSubscriptionParams, p2 ...RequestEditorFn) (*CheckUserSubscriptionHTTPResponse, error)
CheckUserSubscriptionWithResponse calls the embedded ClientWithResponsesInterface's method CheckUserSubscriptionWithResponse with CircuitCheckUserSubscriptionWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CreateChannelStreamScheduleSegmentWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CreateChannelStreamScheduleSegmentWithBodyWithResponse(ctx context.Context, p1 *CreateChannelStreamScheduleSegmentParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*CreateChannelStreamScheduleSegmentHTTPResponse, error)
CreateChannelStreamScheduleSegmentWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method CreateChannelStreamScheduleSegmentWithBodyWithResponse with CircuitCreateChannelStreamScheduleSegmentWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CreateChannelStreamScheduleSegmentWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CreateChannelStreamScheduleSegmentWithResponse(ctx context.Context, p1 *CreateChannelStreamScheduleSegmentParams, p2 CreateChannelStreamScheduleSegmentBody, p3 ...RequestEditorFn) (*CreateChannelStreamScheduleSegmentHTTPResponse, error)
CreateChannelStreamScheduleSegmentWithResponse calls the embedded ClientWithResponsesInterface's method CreateChannelStreamScheduleSegmentWithResponse with CircuitCreateChannelStreamScheduleSegmentWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CreateClipWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CreateClipWithResponse(ctx context.Context, p1 *CreateClipParams, p2 ...RequestEditorFn) (*CreateClipHTTPResponse, error)
CreateClipWithResponse calls the embedded ClientWithResponsesInterface's method CreateClipWithResponse with CircuitCreateClipWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CreateConduitsWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CreateConduitsWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*CreateConduitsHTTPResponse, error)
CreateConduitsWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method CreateConduitsWithBodyWithResponse with CircuitCreateConduitsWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CreateConduitsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CreateConduitsWithResponse(ctx context.Context, p1 CreateConduitsBody, p2 ...RequestEditorFn) (*CreateConduitsHTTPResponse, error)
CreateConduitsWithResponse calls the embedded ClientWithResponsesInterface's method CreateConduitsWithResponse with CircuitCreateConduitsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CreateCustomRewardsWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CreateCustomRewardsWithBodyWithResponse(ctx context.Context, p1 *CreateCustomRewardsParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*CreateCustomRewardsHTTPResponse, error)
CreateCustomRewardsWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method CreateCustomRewardsWithBodyWithResponse with CircuitCreateCustomRewardsWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CreateCustomRewardsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CreateCustomRewardsWithResponse(ctx context.Context, p1 *CreateCustomRewardsParams, p2 CreateCustomRewardsBody, p3 ...RequestEditorFn) (*CreateCustomRewardsHTTPResponse, error)
CreateCustomRewardsWithResponse calls the embedded ClientWithResponsesInterface's method CreateCustomRewardsWithResponse with CircuitCreateCustomRewardsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CreateEventsubSubscriptionWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CreateEventsubSubscriptionWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*CreateEventsubSubscriptionHTTPResponse, error)
CreateEventsubSubscriptionWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method CreateEventsubSubscriptionWithBodyWithResponse with CircuitCreateEventsubSubscriptionWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CreateEventsubSubscriptionWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CreateEventsubSubscriptionWithResponse(ctx context.Context, p1 CreateEventSubSubscriptionBody, p2 ...RequestEditorFn) (*CreateEventsubSubscriptionHTTPResponse, error)
CreateEventsubSubscriptionWithResponse calls the embedded ClientWithResponsesInterface's method CreateEventsubSubscriptionWithResponse with CircuitCreateEventsubSubscriptionWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CreateExtensionSecretWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CreateExtensionSecretWithResponse(ctx context.Context, p1 *CreateExtensionSecretParams, p2 ...RequestEditorFn) (*CreateExtensionSecretHTTPResponse, error)
CreateExtensionSecretWithResponse calls the embedded ClientWithResponsesInterface's method CreateExtensionSecretWithResponse with CircuitCreateExtensionSecretWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CreateGuestStarSessionWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CreateGuestStarSessionWithResponse(ctx context.Context, p1 *CreateGuestStarSessionParams, p2 ...RequestEditorFn) (*CreateGuestStarSessionHTTPResponse, error)
CreateGuestStarSessionWithResponse calls the embedded ClientWithResponsesInterface's method CreateGuestStarSessionWithResponse with CircuitCreateGuestStarSessionWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CreatePollWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CreatePollWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*CreatePollHTTPResponse, error)
CreatePollWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method CreatePollWithBodyWithResponse with CircuitCreatePollWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CreatePollWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CreatePollWithResponse(ctx context.Context, p1 CreatePollBody, p2 ...RequestEditorFn) (*CreatePollHTTPResponse, error)
CreatePollWithResponse calls the embedded ClientWithResponsesInterface's method CreatePollWithResponse with CircuitCreatePollWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CreatePredictionWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CreatePredictionWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*CreatePredictionHTTPResponse, error)
CreatePredictionWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method CreatePredictionWithBodyWithResponse with CircuitCreatePredictionWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CreatePredictionWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CreatePredictionWithResponse(ctx context.Context, p1 CreatePredictionBody, p2 ...RequestEditorFn) (*CreatePredictionHTTPResponse, error)
CreatePredictionWithResponse calls the embedded ClientWithResponsesInterface's method CreatePredictionWithResponse with CircuitCreatePredictionWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CreateStreamMarkerWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CreateStreamMarkerWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*CreateStreamMarkerHTTPResponse, error)
CreateStreamMarkerWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method CreateStreamMarkerWithBodyWithResponse with CircuitCreateStreamMarkerWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) CreateStreamMarkerWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) CreateStreamMarkerWithResponse(ctx context.Context, p1 CreateStreamMarkerBody, p2 ...RequestEditorFn) (*CreateStreamMarkerHTTPResponse, error)
CreateStreamMarkerWithResponse calls the embedded ClientWithResponsesInterface's method CreateStreamMarkerWithResponse with CircuitCreateStreamMarkerWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) DeleteChannelStreamScheduleSegmentWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) DeleteChannelStreamScheduleSegmentWithResponse(ctx context.Context, p1 *DeleteChannelStreamScheduleSegmentParams, p2 ...RequestEditorFn) (*DeleteChannelStreamScheduleSegmentHTTPResponse, error)
DeleteChannelStreamScheduleSegmentWithResponse calls the embedded ClientWithResponsesInterface's method DeleteChannelStreamScheduleSegmentWithResponse with CircuitDeleteChannelStreamScheduleSegmentWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) DeleteChatMessagesWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) DeleteChatMessagesWithResponse(ctx context.Context, p1 *DeleteChatMessagesParams, p2 ...RequestEditorFn) (*DeleteChatMessagesHTTPResponse, error)
DeleteChatMessagesWithResponse calls the embedded ClientWithResponsesInterface's method DeleteChatMessagesWithResponse with CircuitDeleteChatMessagesWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) DeleteConduitWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) DeleteConduitWithResponse(ctx context.Context, p1 *DeleteConduitParams, p2 ...RequestEditorFn) (*DeleteConduitHTTPResponse, error)
DeleteConduitWithResponse calls the embedded ClientWithResponsesInterface's method DeleteConduitWithResponse with CircuitDeleteConduitWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) DeleteCustomRewardWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) DeleteCustomRewardWithResponse(ctx context.Context, p1 *DeleteCustomRewardParams, p2 ...RequestEditorFn) (*DeleteCustomRewardHTTPResponse, error)
DeleteCustomRewardWithResponse calls the embedded ClientWithResponsesInterface's method DeleteCustomRewardWithResponse with CircuitDeleteCustomRewardWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) DeleteEventsubSubscriptionWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) DeleteEventsubSubscriptionWithResponse(ctx context.Context, p1 *DeleteEventsubSubscriptionParams, p2 ...RequestEditorFn) (*DeleteEventsubSubscriptionHTTPResponse, error)
DeleteEventsubSubscriptionWithResponse calls the embedded ClientWithResponsesInterface's method DeleteEventsubSubscriptionWithResponse with CircuitDeleteEventsubSubscriptionWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) DeleteGuestStarInviteWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) DeleteGuestStarInviteWithResponse(ctx context.Context, p1 *DeleteGuestStarInviteParams, p2 ...RequestEditorFn) (*DeleteGuestStarInviteHTTPResponse, error)
DeleteGuestStarInviteWithResponse calls the embedded ClientWithResponsesInterface's method DeleteGuestStarInviteWithResponse with CircuitDeleteGuestStarInviteWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) DeleteGuestStarSlotWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) DeleteGuestStarSlotWithResponse(ctx context.Context, p1 *DeleteGuestStarSlotParams, p2 ...RequestEditorFn) (*DeleteGuestStarSlotHTTPResponse, error)
DeleteGuestStarSlotWithResponse calls the embedded ClientWithResponsesInterface's method DeleteGuestStarSlotWithResponse with CircuitDeleteGuestStarSlotWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) DeleteVideosWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) DeleteVideosWithResponse(ctx context.Context, p1 *DeleteVideosParams, p2 ...RequestEditorFn) (*DeleteVideosHTTPResponse, error)
DeleteVideosWithResponse calls the embedded ClientWithResponsesInterface's method DeleteVideosWithResponse with CircuitDeleteVideosWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) EndGuestStarSessionWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) EndGuestStarSessionWithResponse(ctx context.Context, p1 *EndGuestStarSessionParams, p2 ...RequestEditorFn) (*EndGuestStarSessionHTTPResponse, error)
EndGuestStarSessionWithResponse calls the embedded ClientWithResponsesInterface's method EndGuestStarSessionWithResponse with CircuitEndGuestStarSessionWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) EndPollWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) EndPollWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*EndPollHTTPResponse, error)
EndPollWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method EndPollWithBodyWithResponse with CircuitEndPollWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) EndPollWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) EndPollWithResponse(ctx context.Context, p1 EndPollBody, p2 ...RequestEditorFn) (*EndPollHTTPResponse, error)
EndPollWithResponse calls the embedded ClientWithResponsesInterface's method EndPollWithResponse with CircuitEndPollWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) EndPredictionWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) EndPredictionWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*EndPredictionHTTPResponse, error)
EndPredictionWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method EndPredictionWithBodyWithResponse with CircuitEndPredictionWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) EndPredictionWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) EndPredictionWithResponse(ctx context.Context, p1 EndPredictionBody, p2 ...RequestEditorFn) (*EndPredictionHTTPResponse, error)
EndPredictionWithResponse calls the embedded ClientWithResponsesInterface's method EndPredictionWithResponse with CircuitEndPredictionWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetAdScheduleWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetAdScheduleWithResponse(ctx context.Context, p1 *GetAdScheduleParams, p2 ...RequestEditorFn) (*GetAdScheduleHTTPResponse, error)
GetAdScheduleWithResponse calls the embedded ClientWithResponsesInterface's method GetAdScheduleWithResponse with CircuitGetAdScheduleWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetAllStreamTagsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetAllStreamTagsWithResponse(ctx context.Context, p1 *GetAllStreamTagsParams, p2 ...RequestEditorFn) (*GetAllStreamTagsHTTPResponse, error)
GetAllStreamTagsWithResponse calls the embedded ClientWithResponsesInterface's method GetAllStreamTagsWithResponse with CircuitGetAllStreamTagsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetAutomodSettingsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetAutomodSettingsWithResponse(ctx context.Context, p1 *GetAutomodSettingsParams, p2 ...RequestEditorFn) (*GetAutomodSettingsHTTPResponse, error)
GetAutomodSettingsWithResponse calls the embedded ClientWithResponsesInterface's method GetAutomodSettingsWithResponse with CircuitGetAutomodSettingsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetBannedUsersWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetBannedUsersWithResponse(ctx context.Context, p1 *GetBannedUsersParams, p2 ...RequestEditorFn) (*GetBannedUsersHTTPResponse, error)
GetBannedUsersWithResponse calls the embedded ClientWithResponsesInterface's method GetBannedUsersWithResponse with CircuitGetBannedUsersWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetBitsLeaderboardWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetBitsLeaderboardWithResponse(ctx context.Context, p1 *GetBitsLeaderboardParams, p2 ...RequestEditorFn) (*GetBitsLeaderboardHTTPResponse, error)
GetBitsLeaderboardWithResponse calls the embedded ClientWithResponsesInterface's method GetBitsLeaderboardWithResponse with CircuitGetBitsLeaderboardWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetBlockedTermsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetBlockedTermsWithResponse(ctx context.Context, p1 *GetBlockedTermsParams, p2 ...RequestEditorFn) (*GetBlockedTermsHTTPResponse, error)
GetBlockedTermsWithResponse calls the embedded ClientWithResponsesInterface's method GetBlockedTermsWithResponse with CircuitGetBlockedTermsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetBroadcasterSubscriptionsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetBroadcasterSubscriptionsWithResponse(ctx context.Context, p1 *GetBroadcasterSubscriptionsParams, p2 ...RequestEditorFn) (*GetBroadcasterSubscriptionsHTTPResponse, error)
GetBroadcasterSubscriptionsWithResponse calls the embedded ClientWithResponsesInterface's method GetBroadcasterSubscriptionsWithResponse with CircuitGetBroadcasterSubscriptionsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetChannelChatBadgesWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelChatBadgesWithResponse(ctx context.Context, p1 *GetChannelChatBadgesParams, p2 ...RequestEditorFn) (*GetChannelChatBadgesHTTPResponse, error)
GetChannelChatBadgesWithResponse calls the embedded ClientWithResponsesInterface's method GetChannelChatBadgesWithResponse with CircuitGetChannelChatBadgesWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetChannelEditorsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelEditorsWithResponse(ctx context.Context, p1 *GetChannelEditorsParams, p2 ...RequestEditorFn) (*GetChannelEditorsHTTPResponse, error)
GetChannelEditorsWithResponse calls the embedded ClientWithResponsesInterface's method GetChannelEditorsWithResponse with CircuitGetChannelEditorsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetChannelEmotesWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelEmotesWithResponse(ctx context.Context, p1 *GetChannelEmotesParams, p2 ...RequestEditorFn) (*GetChannelEmotesHTTPResponse, error)
GetChannelEmotesWithResponse calls the embedded ClientWithResponsesInterface's method GetChannelEmotesWithResponse with CircuitGetChannelEmotesWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetChannelFollowersWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelFollowersWithResponse(ctx context.Context, p1 *GetChannelFollowersParams, p2 ...RequestEditorFn) (*GetChannelFollowersHTTPResponse, error)
GetChannelFollowersWithResponse calls the embedded ClientWithResponsesInterface's method GetChannelFollowersWithResponse with CircuitGetChannelFollowersWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetChannelGuestStarSettingsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelGuestStarSettingsWithResponse(ctx context.Context, p1 *GetChannelGuestStarSettingsParams, p2 ...RequestEditorFn) (*GetChannelGuestStarSettingsHTTPResponse, error)
GetChannelGuestStarSettingsWithResponse calls the embedded ClientWithResponsesInterface's method GetChannelGuestStarSettingsWithResponse with CircuitGetChannelGuestStarSettingsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetChannelIcalendarWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelIcalendarWithResponse(ctx context.Context, p1 *GetChannelIcalendarParams, p2 ...RequestEditorFn) (*GetChannelIcalendarHTTPResponse, error)
GetChannelIcalendarWithResponse calls the embedded ClientWithResponsesInterface's method GetChannelIcalendarWithResponse with CircuitGetChannelIcalendarWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetChannelInformationWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelInformationWithResponse(ctx context.Context, p1 *GetChannelInformationParams, p2 ...RequestEditorFn) (*GetChannelInformationHTTPResponse, error)
GetChannelInformationWithResponse calls the embedded ClientWithResponsesInterface's method GetChannelInformationWithResponse with CircuitGetChannelInformationWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetChannelStreamScheduleWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelStreamScheduleWithResponse(ctx context.Context, p1 *GetChannelStreamScheduleParams, p2 ...RequestEditorFn) (*GetChannelStreamScheduleHTTPResponse, error)
GetChannelStreamScheduleWithResponse calls the embedded ClientWithResponsesInterface's method GetChannelStreamScheduleWithResponse with CircuitGetChannelStreamScheduleWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetChannelTeamsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetChannelTeamsWithResponse(ctx context.Context, p1 *GetChannelTeamsParams, p2 ...RequestEditorFn) (*GetChannelTeamsHTTPResponse, error)
GetChannelTeamsWithResponse calls the embedded ClientWithResponsesInterface's method GetChannelTeamsWithResponse with CircuitGetChannelTeamsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetCharityCampaignDonationsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetCharityCampaignDonationsWithResponse(ctx context.Context, p1 *GetCharityCampaignDonationsParams, p2 ...RequestEditorFn) (*GetCharityCampaignDonationsHTTPResponse, error)
GetCharityCampaignDonationsWithResponse calls the embedded ClientWithResponsesInterface's method GetCharityCampaignDonationsWithResponse with CircuitGetCharityCampaignDonationsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetCharityCampaignWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetCharityCampaignWithResponse(ctx context.Context, p1 *GetCharityCampaignParams, p2 ...RequestEditorFn) (*GetCharityCampaignHTTPResponse, error)
GetCharityCampaignWithResponse calls the embedded ClientWithResponsesInterface's method GetCharityCampaignWithResponse with CircuitGetCharityCampaignWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetChatSettingsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetChatSettingsWithResponse(ctx context.Context, p1 *GetChatSettingsParams, p2 ...RequestEditorFn) (*GetChatSettingsHTTPResponse, error)
GetChatSettingsWithResponse calls the embedded ClientWithResponsesInterface's method GetChatSettingsWithResponse with CircuitGetChatSettingsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetChattersWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetChattersWithResponse(ctx context.Context, p1 *GetChattersParams, p2 ...RequestEditorFn) (*GetChattersHTTPResponse, error)
GetChattersWithResponse calls the embedded ClientWithResponsesInterface's method GetChattersWithResponse with CircuitGetChattersWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetCheermotesWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetCheermotesWithResponse(ctx context.Context, p1 *GetCheermotesParams, p2 ...RequestEditorFn) (*GetCheermotesHTTPResponse, error)
GetCheermotesWithResponse calls the embedded ClientWithResponsesInterface's method GetCheermotesWithResponse with CircuitGetCheermotesWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetClipsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetClipsWithResponse(ctx context.Context, p1 *GetClipsParams, p2 ...RequestEditorFn) (*GetClipsHTTPResponse, error)
GetClipsWithResponse calls the embedded ClientWithResponsesInterface's method GetClipsWithResponse with CircuitGetClipsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetConduitShardsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetConduitShardsWithResponse(ctx context.Context, p1 *GetConduitShardsParams, p2 ...RequestEditorFn) (*GetConduitShardsHTTPResponse, error)
GetConduitShardsWithResponse calls the embedded ClientWithResponsesInterface's method GetConduitShardsWithResponse with CircuitGetConduitShardsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetConduitsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetConduitsWithResponse(ctx context.Context, p1 ...RequestEditorFn) (*GetConduitsHTTPResponse, error)
GetConduitsWithResponse calls the embedded ClientWithResponsesInterface's method GetConduitsWithResponse with CircuitGetConduitsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetContentClassificationLabelsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetContentClassificationLabelsWithResponse(ctx context.Context, p1 *GetContentClassificationLabelsParams, p2 ...RequestEditorFn) (*GetContentClassificationLabelsHTTPResponse, error)
GetContentClassificationLabelsWithResponse calls the embedded ClientWithResponsesInterface's method GetContentClassificationLabelsWithResponse with CircuitGetContentClassificationLabelsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetCreatorGoalsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetCreatorGoalsWithResponse(ctx context.Context, p1 *GetCreatorGoalsParams, p2 ...RequestEditorFn) (*GetCreatorGoalsHTTPResponse, error)
GetCreatorGoalsWithResponse calls the embedded ClientWithResponsesInterface's method GetCreatorGoalsWithResponse with CircuitGetCreatorGoalsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetCustomRewardRedemptionWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetCustomRewardRedemptionWithResponse(ctx context.Context, p1 *GetCustomRewardRedemptionParams, p2 ...RequestEditorFn) (*GetCustomRewardRedemptionHTTPResponse, error)
GetCustomRewardRedemptionWithResponse calls the embedded ClientWithResponsesInterface's method GetCustomRewardRedemptionWithResponse with CircuitGetCustomRewardRedemptionWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetCustomRewardWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetCustomRewardWithResponse(ctx context.Context, p1 *GetCustomRewardParams, p2 ...RequestEditorFn) (*GetCustomRewardHTTPResponse, error)
GetCustomRewardWithResponse calls the embedded ClientWithResponsesInterface's method GetCustomRewardWithResponse with CircuitGetCustomRewardWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetDropsEntitlementsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetDropsEntitlementsWithResponse(ctx context.Context, p1 *GetDropsEntitlementsParams, p2 ...RequestEditorFn) (*GetDropsEntitlementsHTTPResponse, error)
GetDropsEntitlementsWithResponse calls the embedded ClientWithResponsesInterface's method GetDropsEntitlementsWithResponse with CircuitGetDropsEntitlementsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetEmoteSetsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetEmoteSetsWithResponse(ctx context.Context, p1 *GetEmoteSetsParams, p2 ...RequestEditorFn) (*GetEmoteSetsHTTPResponse, error)
GetEmoteSetsWithResponse calls the embedded ClientWithResponsesInterface's method GetEmoteSetsWithResponse with CircuitGetEmoteSetsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetEventsubSubscriptionsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetEventsubSubscriptionsWithResponse(ctx context.Context, p1 *GetEventsubSubscriptionsParams, p2 ...RequestEditorFn) (*GetEventsubSubscriptionsHTTPResponse, error)
GetEventsubSubscriptionsWithResponse calls the embedded ClientWithResponsesInterface's method GetEventsubSubscriptionsWithResponse with CircuitGetEventsubSubscriptionsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetExtensionAnalyticsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetExtensionAnalyticsWithResponse(ctx context.Context, p1 *GetExtensionAnalyticsParams, p2 ...RequestEditorFn) (*GetExtensionAnalyticsHTTPResponse, error)
GetExtensionAnalyticsWithResponse calls the embedded ClientWithResponsesInterface's method GetExtensionAnalyticsWithResponse with CircuitGetExtensionAnalyticsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetExtensionBitsProductsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetExtensionBitsProductsWithResponse(ctx context.Context, p1 *GetExtensionBitsProductsParams, p2 ...RequestEditorFn) (*GetExtensionBitsProductsHTTPResponse, error)
GetExtensionBitsProductsWithResponse calls the embedded ClientWithResponsesInterface's method GetExtensionBitsProductsWithResponse with CircuitGetExtensionBitsProductsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetExtensionConfigurationSegmentWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetExtensionConfigurationSegmentWithResponse(ctx context.Context, p1 *GetExtensionConfigurationSegmentParams, p2 ...RequestEditorFn) (*GetExtensionConfigurationSegmentHTTPResponse, error)
GetExtensionConfigurationSegmentWithResponse calls the embedded ClientWithResponsesInterface's method GetExtensionConfigurationSegmentWithResponse with CircuitGetExtensionConfigurationSegmentWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetExtensionLiveChannelsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetExtensionLiveChannelsWithResponse(ctx context.Context, p1 *GetExtensionLiveChannelsParams, p2 ...RequestEditorFn) (*GetExtensionLiveChannelsHTTPResponse, error)
GetExtensionLiveChannelsWithResponse calls the embedded ClientWithResponsesInterface's method GetExtensionLiveChannelsWithResponse with CircuitGetExtensionLiveChannelsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetExtensionSecretsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetExtensionSecretsWithResponse(ctx context.Context, p1 ...RequestEditorFn) (*GetExtensionSecretsHTTPResponse, error)
GetExtensionSecretsWithResponse calls the embedded ClientWithResponsesInterface's method GetExtensionSecretsWithResponse with CircuitGetExtensionSecretsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetExtensionTransactionsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetExtensionTransactionsWithResponse(ctx context.Context, p1 *GetExtensionTransactionsParams, p2 ...RequestEditorFn) (*GetExtensionTransactionsHTTPResponse, error)
GetExtensionTransactionsWithResponse calls the embedded ClientWithResponsesInterface's method GetExtensionTransactionsWithResponse with CircuitGetExtensionTransactionsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetExtensionsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetExtensionsWithResponse(ctx context.Context, p1 *GetExtensionsParams, p2 ...RequestEditorFn) (*GetExtensionsHTTPResponse, error)
GetExtensionsWithResponse calls the embedded ClientWithResponsesInterface's method GetExtensionsWithResponse with CircuitGetExtensionsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetFollowedChannelsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetFollowedChannelsWithResponse(ctx context.Context, p1 *GetFollowedChannelsParams, p2 ...RequestEditorFn) (*GetFollowedChannelsHTTPResponse, error)
GetFollowedChannelsWithResponse calls the embedded ClientWithResponsesInterface's method GetFollowedChannelsWithResponse with CircuitGetFollowedChannelsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetFollowedStreamsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetFollowedStreamsWithResponse(ctx context.Context, p1 *GetFollowedStreamsParams, p2 ...RequestEditorFn) (*GetFollowedStreamsHTTPResponse, error)
GetFollowedStreamsWithResponse calls the embedded ClientWithResponsesInterface's method GetFollowedStreamsWithResponse with CircuitGetFollowedStreamsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetGameAnalyticsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetGameAnalyticsWithResponse(ctx context.Context, p1 *GetGameAnalyticsParams, p2 ...RequestEditorFn) (*GetGameAnalyticsHTTPResponse, error)
GetGameAnalyticsWithResponse calls the embedded ClientWithResponsesInterface's method GetGameAnalyticsWithResponse with CircuitGetGameAnalyticsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetGamesWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetGamesWithResponse(ctx context.Context, p1 *GetGamesParams, p2 ...RequestEditorFn) (*GetGamesHTTPResponse, error)
GetGamesWithResponse calls the embedded ClientWithResponsesInterface's method GetGamesWithResponse with CircuitGetGamesWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetGlobalChatBadgesWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetGlobalChatBadgesWithResponse(ctx context.Context, p1 ...RequestEditorFn) (*GetGlobalChatBadgesHTTPResponse, error)
GetGlobalChatBadgesWithResponse calls the embedded ClientWithResponsesInterface's method GetGlobalChatBadgesWithResponse with CircuitGetGlobalChatBadgesWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetGlobalEmotesWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetGlobalEmotesWithResponse(ctx context.Context, p1 ...RequestEditorFn) (*GetGlobalEmotesHTTPResponse, error)
GetGlobalEmotesWithResponse calls the embedded ClientWithResponsesInterface's method GetGlobalEmotesWithResponse with CircuitGetGlobalEmotesWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetGuestStarInvitesWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetGuestStarInvitesWithResponse(ctx context.Context, p1 *GetGuestStarInvitesParams, p2 ...RequestEditorFn) (*GetGuestStarInvitesHTTPResponse, error)
GetGuestStarInvitesWithResponse calls the embedded ClientWithResponsesInterface's method GetGuestStarInvitesWithResponse with CircuitGetGuestStarInvitesWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetGuestStarSessionWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetGuestStarSessionWithResponse(ctx context.Context, p1 *GetGuestStarSessionParams, p2 ...RequestEditorFn) (*GetGuestStarSessionHTTPResponse, error)
GetGuestStarSessionWithResponse calls the embedded ClientWithResponsesInterface's method GetGuestStarSessionWithResponse with CircuitGetGuestStarSessionWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetHypeTrainEventsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetHypeTrainEventsWithResponse(ctx context.Context, p1 *GetHypeTrainEventsParams, p2 ...RequestEditorFn) (*GetHypeTrainEventsHTTPResponse, error)
GetHypeTrainEventsWithResponse calls the embedded ClientWithResponsesInterface's method GetHypeTrainEventsWithResponse with CircuitGetHypeTrainEventsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetModeratedChannelsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetModeratedChannelsWithResponse(ctx context.Context, p1 *GetModeratedChannelsParams, p2 ...RequestEditorFn) (*GetModeratedChannelsHTTPResponse, error)
GetModeratedChannelsWithResponse calls the embedded ClientWithResponsesInterface's method GetModeratedChannelsWithResponse with CircuitGetModeratedChannelsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetModeratorsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetModeratorsWithResponse(ctx context.Context, p1 *GetModeratorsParams, p2 ...RequestEditorFn) (*GetModeratorsHTTPResponse, error)
GetModeratorsWithResponse calls the embedded ClientWithResponsesInterface's method GetModeratorsWithResponse with CircuitGetModeratorsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetPollsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetPollsWithResponse(ctx context.Context, p1 *GetPollsParams, p2 ...RequestEditorFn) (*GetPollsHTTPResponse, error)
GetPollsWithResponse calls the embedded ClientWithResponsesInterface's method GetPollsWithResponse with CircuitGetPollsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetPredictionsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetPredictionsWithResponse(ctx context.Context, p1 *GetPredictionsParams, p2 ...RequestEditorFn) (*GetPredictionsHTTPResponse, error)
GetPredictionsWithResponse calls the embedded ClientWithResponsesInterface's method GetPredictionsWithResponse with CircuitGetPredictionsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetReleasedExtensionsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetReleasedExtensionsWithResponse(ctx context.Context, p1 *GetReleasedExtensionsParams, p2 ...RequestEditorFn) (*GetReleasedExtensionsHTTPResponse, error)
GetReleasedExtensionsWithResponse calls the embedded ClientWithResponsesInterface's method GetReleasedExtensionsWithResponse with CircuitGetReleasedExtensionsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetSharedChatSessionWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetSharedChatSessionWithResponse(ctx context.Context, p1 *GetSharedChatSessionParams, p2 ...RequestEditorFn) (*GetSharedChatSessionHTTPResponse, error)
GetSharedChatSessionWithResponse calls the embedded ClientWithResponsesInterface's method GetSharedChatSessionWithResponse with CircuitGetSharedChatSessionWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetShieldModeStatusWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetShieldModeStatusWithResponse(ctx context.Context, p1 *GetShieldModeStatusParams, p2 ...RequestEditorFn) (*GetShieldModeStatusHTTPResponse, error)
GetShieldModeStatusWithResponse calls the embedded ClientWithResponsesInterface's method GetShieldModeStatusWithResponse with CircuitGetShieldModeStatusWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetStreamKeyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetStreamKeyWithResponse(ctx context.Context, p1 *GetStreamKeyParams, p2 ...RequestEditorFn) (*GetStreamKeyHTTPResponse, error)
GetStreamKeyWithResponse calls the embedded ClientWithResponsesInterface's method GetStreamKeyWithResponse with CircuitGetStreamKeyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetStreamMarkersWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetStreamMarkersWithResponse(ctx context.Context, p1 *GetStreamMarkersParams, p2 ...RequestEditorFn) (*GetStreamMarkersHTTPResponse, error)
GetStreamMarkersWithResponse calls the embedded ClientWithResponsesInterface's method GetStreamMarkersWithResponse with CircuitGetStreamMarkersWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetStreamTagsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetStreamTagsWithResponse(ctx context.Context, p1 *GetStreamTagsParams, p2 ...RequestEditorFn) (*GetStreamTagsHTTPResponse, error)
GetStreamTagsWithResponse calls the embedded ClientWithResponsesInterface's method GetStreamTagsWithResponse with CircuitGetStreamTagsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetStreamsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetStreamsWithResponse(ctx context.Context, p1 *GetStreamsParams, p2 ...RequestEditorFn) (*GetStreamsHTTPResponse, error)
GetStreamsWithResponse calls the embedded ClientWithResponsesInterface's method GetStreamsWithResponse with CircuitGetStreamsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetTeamsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetTeamsWithResponse(ctx context.Context, p1 *GetTeamsParams, p2 ...RequestEditorFn) (*GetTeamsHTTPResponse, error)
GetTeamsWithResponse calls the embedded ClientWithResponsesInterface's method GetTeamsWithResponse with CircuitGetTeamsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetTopGamesWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetTopGamesWithResponse(ctx context.Context, p1 *GetTopGamesParams, p2 ...RequestEditorFn) (*GetTopGamesHTTPResponse, error)
GetTopGamesWithResponse calls the embedded ClientWithResponsesInterface's method GetTopGamesWithResponse with CircuitGetTopGamesWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetUnbanRequestsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetUnbanRequestsWithResponse(ctx context.Context, p1 *GetUnbanRequestsParams, p2 ...RequestEditorFn) (*GetUnbanRequestsHTTPResponse, error)
GetUnbanRequestsWithResponse calls the embedded ClientWithResponsesInterface's method GetUnbanRequestsWithResponse with CircuitGetUnbanRequestsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetUserActiveExtensionsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetUserActiveExtensionsWithResponse(ctx context.Context, p1 *GetUserActiveExtensionsParams, p2 ...RequestEditorFn) (*GetUserActiveExtensionsHTTPResponse, error)
GetUserActiveExtensionsWithResponse calls the embedded ClientWithResponsesInterface's method GetUserActiveExtensionsWithResponse with CircuitGetUserActiveExtensionsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetUserBlockListWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetUserBlockListWithResponse(ctx context.Context, p1 *GetUserBlockListParams, p2 ...RequestEditorFn) (*GetUserBlockListHTTPResponse, error)
GetUserBlockListWithResponse calls the embedded ClientWithResponsesInterface's method GetUserBlockListWithResponse with CircuitGetUserBlockListWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetUserChatColorWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetUserChatColorWithResponse(ctx context.Context, p1 *GetUserChatColorParams, p2 ...RequestEditorFn) (*GetUserChatColorHTTPResponse, error)
GetUserChatColorWithResponse calls the embedded ClientWithResponsesInterface's method GetUserChatColorWithResponse with CircuitGetUserChatColorWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetUserEmotesWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetUserEmotesWithResponse(ctx context.Context, p1 *GetUserEmotesParams, p2 ...RequestEditorFn) (*GetUserEmotesHTTPResponse, error)
GetUserEmotesWithResponse calls the embedded ClientWithResponsesInterface's method GetUserEmotesWithResponse with CircuitGetUserEmotesWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetUserExtensionsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetUserExtensionsWithResponse(ctx context.Context, p1 ...RequestEditorFn) (*GetUserExtensionsHTTPResponse, error)
GetUserExtensionsWithResponse calls the embedded ClientWithResponsesInterface's method GetUserExtensionsWithResponse with CircuitGetUserExtensionsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetUsersWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetUsersWithResponse(ctx context.Context, p1 *GetUsersParams, p2 ...RequestEditorFn) (*GetUsersHTTPResponse, error)
GetUsersWithResponse calls the embedded ClientWithResponsesInterface's method GetUsersWithResponse with CircuitGetUsersWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetVideosWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetVideosWithResponse(ctx context.Context, p1 *GetVideosParams, p2 ...RequestEditorFn) (*GetVideosHTTPResponse, error)
GetVideosWithResponse calls the embedded ClientWithResponsesInterface's method GetVideosWithResponse with CircuitGetVideosWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) GetVipsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) GetVipsWithResponse(ctx context.Context, p1 *GetVipsParams, p2 ...RequestEditorFn) (*GetVipsHTTPResponse, error)
GetVipsWithResponse calls the embedded ClientWithResponsesInterface's method GetVipsWithResponse with CircuitGetVipsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) ManageHeldAutomodMessagesWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) ManageHeldAutomodMessagesWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*ManageHeldAutomodMessagesHTTPResponse, error)
ManageHeldAutomodMessagesWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method ManageHeldAutomodMessagesWithBodyWithResponse with CircuitManageHeldAutomodMessagesWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) ManageHeldAutomodMessagesWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) ManageHeldAutomodMessagesWithResponse(ctx context.Context, p1 ManageHeldAutoModMessagesBody, p2 ...RequestEditorFn) (*ManageHeldAutomodMessagesHTTPResponse, error)
ManageHeldAutomodMessagesWithResponse calls the embedded ClientWithResponsesInterface's method ManageHeldAutomodMessagesWithResponse with CircuitManageHeldAutomodMessagesWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) ModifyChannelInformationWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) ModifyChannelInformationWithBodyWithResponse(ctx context.Context, p1 *ModifyChannelInformationParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*ModifyChannelInformationHTTPResponse, error)
ModifyChannelInformationWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method ModifyChannelInformationWithBodyWithResponse with CircuitModifyChannelInformationWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) ModifyChannelInformationWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) ModifyChannelInformationWithResponse(ctx context.Context, p1 *ModifyChannelInformationParams, p2 ModifyChannelInformationBody, p3 ...RequestEditorFn) (*ModifyChannelInformationHTTPResponse, error)
ModifyChannelInformationWithResponse calls the embedded ClientWithResponsesInterface's method ModifyChannelInformationWithResponse with CircuitModifyChannelInformationWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) RemoveBlockedTermWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) RemoveBlockedTermWithResponse(ctx context.Context, p1 *RemoveBlockedTermParams, p2 ...RequestEditorFn) (*RemoveBlockedTermHTTPResponse, error)
RemoveBlockedTermWithResponse calls the embedded ClientWithResponsesInterface's method RemoveBlockedTermWithResponse with CircuitRemoveBlockedTermWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) RemoveChannelModeratorWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) RemoveChannelModeratorWithResponse(ctx context.Context, p1 *RemoveChannelModeratorParams, p2 ...RequestEditorFn) (*RemoveChannelModeratorHTTPResponse, error)
RemoveChannelModeratorWithResponse calls the embedded ClientWithResponsesInterface's method RemoveChannelModeratorWithResponse with CircuitRemoveChannelModeratorWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) RemoveChannelVipWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) RemoveChannelVipWithResponse(ctx context.Context, p1 *RemoveChannelVipParams, p2 ...RequestEditorFn) (*RemoveChannelVipHTTPResponse, error)
RemoveChannelVipWithResponse calls the embedded ClientWithResponsesInterface's method RemoveChannelVipWithResponse with CircuitRemoveChannelVipWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) ResolveUnbanRequestsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) ResolveUnbanRequestsWithResponse(ctx context.Context, p1 *ResolveUnbanRequestsParams, p2 ...RequestEditorFn) (*ResolveUnbanRequestsHTTPResponse, error)
ResolveUnbanRequestsWithResponse calls the embedded ClientWithResponsesInterface's method ResolveUnbanRequestsWithResponse with CircuitResolveUnbanRequestsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SearchCategoriesWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SearchCategoriesWithResponse(ctx context.Context, p1 *SearchCategoriesParams, p2 ...RequestEditorFn) (*SearchCategoriesHTTPResponse, error)
SearchCategoriesWithResponse calls the embedded ClientWithResponsesInterface's method SearchCategoriesWithResponse with CircuitSearchCategoriesWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SearchChannelsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SearchChannelsWithResponse(ctx context.Context, p1 *SearchChannelsParams, p2 ...RequestEditorFn) (*SearchChannelsHTTPResponse, error)
SearchChannelsWithResponse calls the embedded ClientWithResponsesInterface's method SearchChannelsWithResponse with CircuitSearchChannelsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SendAShoutoutWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SendAShoutoutWithResponse(ctx context.Context, p1 *SendAShoutoutParams, p2 ...RequestEditorFn) (*SendAShoutoutHTTPResponse, error)
SendAShoutoutWithResponse calls the embedded ClientWithResponsesInterface's method SendAShoutoutWithResponse with CircuitSendAShoutoutWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SendChatAnnouncementWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SendChatAnnouncementWithBodyWithResponse(ctx context.Context, p1 *SendChatAnnouncementParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*SendChatAnnouncementHTTPResponse, error)
SendChatAnnouncementWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method SendChatAnnouncementWithBodyWithResponse with CircuitSendChatAnnouncementWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SendChatAnnouncementWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SendChatAnnouncementWithResponse(ctx context.Context, p1 *SendChatAnnouncementParams, p2 SendChatAnnouncementBody, p3 ...RequestEditorFn) (*SendChatAnnouncementHTTPResponse, error)
SendChatAnnouncementWithResponse calls the embedded ClientWithResponsesInterface's method SendChatAnnouncementWithResponse with CircuitSendChatAnnouncementWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SendChatMessageWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SendChatMessageWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*SendChatMessageHTTPResponse, error)
SendChatMessageWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method SendChatMessageWithBodyWithResponse with CircuitSendChatMessageWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SendChatMessageWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SendChatMessageWithResponse(ctx context.Context, p1 SendChatMessageBody, p2 ...RequestEditorFn) (*SendChatMessageHTTPResponse, error)
SendChatMessageWithResponse calls the embedded ClientWithResponsesInterface's method SendChatMessageWithResponse with CircuitSendChatMessageWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SendExtensionChatMessageWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SendExtensionChatMessageWithBodyWithResponse(ctx context.Context, p1 *SendExtensionChatMessageParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*SendExtensionChatMessageHTTPResponse, error)
SendExtensionChatMessageWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method SendExtensionChatMessageWithBodyWithResponse with CircuitSendExtensionChatMessageWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SendExtensionChatMessageWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SendExtensionChatMessageWithResponse(ctx context.Context, p1 *SendExtensionChatMessageParams, p2 SendExtensionChatMessageBody, p3 ...RequestEditorFn) (*SendExtensionChatMessageHTTPResponse, error)
SendExtensionChatMessageWithResponse calls the embedded ClientWithResponsesInterface's method SendExtensionChatMessageWithResponse with CircuitSendExtensionChatMessageWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SendExtensionPubsubMessageWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SendExtensionPubsubMessageWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*SendExtensionPubsubMessageHTTPResponse, error)
SendExtensionPubsubMessageWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method SendExtensionPubsubMessageWithBodyWithResponse with CircuitSendExtensionPubsubMessageWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SendExtensionPubsubMessageWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SendExtensionPubsubMessageWithResponse(ctx context.Context, p1 SendExtensionPubSubMessageBody, p2 ...RequestEditorFn) (*SendExtensionPubsubMessageHTTPResponse, error)
SendExtensionPubsubMessageWithResponse calls the embedded ClientWithResponsesInterface's method SendExtensionPubsubMessageWithResponse with CircuitSendExtensionPubsubMessageWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SendGuestStarInviteWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SendGuestStarInviteWithResponse(ctx context.Context, p1 *SendGuestStarInviteParams, p2 ...RequestEditorFn) (*SendGuestStarInviteHTTPResponse, error)
SendGuestStarInviteWithResponse calls the embedded ClientWithResponsesInterface's method SendGuestStarInviteWithResponse with CircuitSendGuestStarInviteWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SendWhisperWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SendWhisperWithBodyWithResponse(ctx context.Context, p1 *SendWhisperParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*SendWhisperHTTPResponse, error)
SendWhisperWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method SendWhisperWithBodyWithResponse with CircuitSendWhisperWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SendWhisperWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SendWhisperWithResponse(ctx context.Context, p1 *SendWhisperParams, p2 SendWhisperBody, p3 ...RequestEditorFn) (*SendWhisperHTTPResponse, error)
SendWhisperWithResponse calls the embedded ClientWithResponsesInterface's method SendWhisperWithResponse with CircuitSendWhisperWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SetExtensionConfigurationSegmentWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SetExtensionConfigurationSegmentWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*SetExtensionConfigurationSegmentHTTPResponse, error)
SetExtensionConfigurationSegmentWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method SetExtensionConfigurationSegmentWithBodyWithResponse with CircuitSetExtensionConfigurationSegmentWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SetExtensionConfigurationSegmentWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SetExtensionConfigurationSegmentWithResponse(ctx context.Context, p1 SetExtensionConfigurationSegmentBody, p2 ...RequestEditorFn) (*SetExtensionConfigurationSegmentHTTPResponse, error)
SetExtensionConfigurationSegmentWithResponse calls the embedded ClientWithResponsesInterface's method SetExtensionConfigurationSegmentWithResponse with CircuitSetExtensionConfigurationSegmentWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SetExtensionRequiredConfigurationWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SetExtensionRequiredConfigurationWithBodyWithResponse(ctx context.Context, p1 *SetExtensionRequiredConfigurationParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*SetExtensionRequiredConfigurationHTTPResponse, error)
SetExtensionRequiredConfigurationWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method SetExtensionRequiredConfigurationWithBodyWithResponse with CircuitSetExtensionRequiredConfigurationWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SetExtensionRequiredConfigurationWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SetExtensionRequiredConfigurationWithResponse(ctx context.Context, p1 *SetExtensionRequiredConfigurationParams, p2 SetExtensionRequiredConfigurationBody, p3 ...RequestEditorFn) (*SetExtensionRequiredConfigurationHTTPResponse, error)
SetExtensionRequiredConfigurationWithResponse calls the embedded ClientWithResponsesInterface's method SetExtensionRequiredConfigurationWithResponse with CircuitSetExtensionRequiredConfigurationWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) SnoozeNextAdWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) SnoozeNextAdWithResponse(ctx context.Context, p1 *SnoozeNextAdParams, p2 ...RequestEditorFn) (*SnoozeNextAdHTTPResponse, error)
SnoozeNextAdWithResponse calls the embedded ClientWithResponsesInterface's method SnoozeNextAdWithResponse with CircuitSnoozeNextAdWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) StartARaidWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) StartARaidWithResponse(ctx context.Context, p1 *StartARaidParams, p2 ...RequestEditorFn) (*StartARaidHTTPResponse, error)
StartARaidWithResponse calls the embedded ClientWithResponsesInterface's method StartARaidWithResponse with CircuitStartARaidWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) StartCommercialWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) StartCommercialWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*StartCommercialHTTPResponse, error)
StartCommercialWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method StartCommercialWithBodyWithResponse with CircuitStartCommercialWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) StartCommercialWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) StartCommercialWithResponse(ctx context.Context, p1 StartCommercialBody, p2 ...RequestEditorFn) (*StartCommercialHTTPResponse, error)
StartCommercialWithResponse calls the embedded ClientWithResponsesInterface's method StartCommercialWithResponse with CircuitStartCommercialWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UnbanUserWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UnbanUserWithResponse(ctx context.Context, p1 *UnbanUserParams, p2 ...RequestEditorFn) (*UnbanUserHTTPResponse, error)
UnbanUserWithResponse calls the embedded ClientWithResponsesInterface's method UnbanUserWithResponse with CircuitUnbanUserWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UnblockUserWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UnblockUserWithResponse(ctx context.Context, p1 *UnblockUserParams, p2 ...RequestEditorFn) (*UnblockUserHTTPResponse, error)
UnblockUserWithResponse calls the embedded ClientWithResponsesInterface's method UnblockUserWithResponse with CircuitUnblockUserWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateAutomodSettingsWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateAutomodSettingsWithBodyWithResponse(ctx context.Context, p1 *UpdateAutomodSettingsParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*UpdateAutomodSettingsHTTPResponse, error)
UpdateAutomodSettingsWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method UpdateAutomodSettingsWithBodyWithResponse with CircuitUpdateAutomodSettingsWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateAutomodSettingsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateAutomodSettingsWithResponse(ctx context.Context, p1 *UpdateAutomodSettingsParams, p2 UpdateAutoModSettingsBody, p3 ...RequestEditorFn) (*UpdateAutomodSettingsHTTPResponse, error)
UpdateAutomodSettingsWithResponse calls the embedded ClientWithResponsesInterface's method UpdateAutomodSettingsWithResponse with CircuitUpdateAutomodSettingsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateChannelGuestStarSettingsWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateChannelGuestStarSettingsWithBodyWithResponse(ctx context.Context, p1 *UpdateChannelGuestStarSettingsParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*UpdateChannelGuestStarSettingsHTTPResponse, error)
UpdateChannelGuestStarSettingsWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method UpdateChannelGuestStarSettingsWithBodyWithResponse with CircuitUpdateChannelGuestStarSettingsWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateChannelGuestStarSettingsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateChannelGuestStarSettingsWithResponse(ctx context.Context, p1 *UpdateChannelGuestStarSettingsParams, p2 UpdateChannelGuestStarSettingsBody, p3 ...RequestEditorFn) (*UpdateChannelGuestStarSettingsHTTPResponse, error)
UpdateChannelGuestStarSettingsWithResponse calls the embedded ClientWithResponsesInterface's method UpdateChannelGuestStarSettingsWithResponse with CircuitUpdateChannelGuestStarSettingsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateChannelStreamScheduleSegmentWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateChannelStreamScheduleSegmentWithBodyWithResponse(ctx context.Context, p1 *UpdateChannelStreamScheduleSegmentParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*UpdateChannelStreamScheduleSegmentHTTPResponse, error)
UpdateChannelStreamScheduleSegmentWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method UpdateChannelStreamScheduleSegmentWithBodyWithResponse with CircuitUpdateChannelStreamScheduleSegmentWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateChannelStreamScheduleSegmentWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateChannelStreamScheduleSegmentWithResponse(ctx context.Context, p1 *UpdateChannelStreamScheduleSegmentParams, p2 UpdateChannelStreamScheduleSegmentBody, p3 ...RequestEditorFn) (*UpdateChannelStreamScheduleSegmentHTTPResponse, error)
UpdateChannelStreamScheduleSegmentWithResponse calls the embedded ClientWithResponsesInterface's method UpdateChannelStreamScheduleSegmentWithResponse with CircuitUpdateChannelStreamScheduleSegmentWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateChannelStreamScheduleWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateChannelStreamScheduleWithResponse(ctx context.Context, p1 *UpdateChannelStreamScheduleParams, p2 ...RequestEditorFn) (*UpdateChannelStreamScheduleHTTPResponse, error)
UpdateChannelStreamScheduleWithResponse calls the embedded ClientWithResponsesInterface's method UpdateChannelStreamScheduleWithResponse with CircuitUpdateChannelStreamScheduleWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateChatSettingsWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateChatSettingsWithBodyWithResponse(ctx context.Context, p1 *UpdateChatSettingsParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*UpdateChatSettingsHTTPResponse, error)
UpdateChatSettingsWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method UpdateChatSettingsWithBodyWithResponse with CircuitUpdateChatSettingsWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateChatSettingsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateChatSettingsWithResponse(ctx context.Context, p1 *UpdateChatSettingsParams, p2 UpdateChatSettingsBody, p3 ...RequestEditorFn) (*UpdateChatSettingsHTTPResponse, error)
UpdateChatSettingsWithResponse calls the embedded ClientWithResponsesInterface's method UpdateChatSettingsWithResponse with CircuitUpdateChatSettingsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateConduitShardsWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateConduitShardsWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*UpdateConduitShardsHTTPResponse, error)
UpdateConduitShardsWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method UpdateConduitShardsWithBodyWithResponse with CircuitUpdateConduitShardsWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateConduitShardsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateConduitShardsWithResponse(ctx context.Context, p1 UpdateConduitShardsBody, p2 ...RequestEditorFn) (*UpdateConduitShardsHTTPResponse, error)
UpdateConduitShardsWithResponse calls the embedded ClientWithResponsesInterface's method UpdateConduitShardsWithResponse with CircuitUpdateConduitShardsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateConduitsWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateConduitsWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*UpdateConduitsHTTPResponse, error)
UpdateConduitsWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method UpdateConduitsWithBodyWithResponse with CircuitUpdateConduitsWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateConduitsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateConduitsWithResponse(ctx context.Context, p1 UpdateConduitsBody, p2 ...RequestEditorFn) (*UpdateConduitsHTTPResponse, error)
UpdateConduitsWithResponse calls the embedded ClientWithResponsesInterface's method UpdateConduitsWithResponse with CircuitUpdateConduitsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateCustomRewardWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateCustomRewardWithBodyWithResponse(ctx context.Context, p1 *UpdateCustomRewardParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*UpdateCustomRewardHTTPResponse, error)
UpdateCustomRewardWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method UpdateCustomRewardWithBodyWithResponse with CircuitUpdateCustomRewardWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateCustomRewardWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateCustomRewardWithResponse(ctx context.Context, p1 *UpdateCustomRewardParams, p2 UpdateCustomRewardBody, p3 ...RequestEditorFn) (*UpdateCustomRewardHTTPResponse, error)
UpdateCustomRewardWithResponse calls the embedded ClientWithResponsesInterface's method UpdateCustomRewardWithResponse with CircuitUpdateCustomRewardWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateDropsEntitlementsWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateDropsEntitlementsWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*UpdateDropsEntitlementsHTTPResponse, error)
UpdateDropsEntitlementsWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method UpdateDropsEntitlementsWithBodyWithResponse with CircuitUpdateDropsEntitlementsWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateDropsEntitlementsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateDropsEntitlementsWithResponse(ctx context.Context, p1 UpdateDropsEntitlementsBody, p2 ...RequestEditorFn) (*UpdateDropsEntitlementsHTTPResponse, error)
UpdateDropsEntitlementsWithResponse calls the embedded ClientWithResponsesInterface's method UpdateDropsEntitlementsWithResponse with CircuitUpdateDropsEntitlementsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateExtensionBitsProductWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateExtensionBitsProductWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*UpdateExtensionBitsProductHTTPResponse, error)
UpdateExtensionBitsProductWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method UpdateExtensionBitsProductWithBodyWithResponse with CircuitUpdateExtensionBitsProductWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateExtensionBitsProductWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateExtensionBitsProductWithResponse(ctx context.Context, p1 UpdateExtensionBitsProductBody, p2 ...RequestEditorFn) (*UpdateExtensionBitsProductHTTPResponse, error)
UpdateExtensionBitsProductWithResponse calls the embedded ClientWithResponsesInterface's method UpdateExtensionBitsProductWithResponse with CircuitUpdateExtensionBitsProductWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateGuestStarSlotSettingsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateGuestStarSlotSettingsWithResponse(ctx context.Context, p1 *UpdateGuestStarSlotSettingsParams, p2 ...RequestEditorFn) (*UpdateGuestStarSlotSettingsHTTPResponse, error)
UpdateGuestStarSlotSettingsWithResponse calls the embedded ClientWithResponsesInterface's method UpdateGuestStarSlotSettingsWithResponse with CircuitUpdateGuestStarSlotSettingsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateGuestStarSlotWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateGuestStarSlotWithResponse(ctx context.Context, p1 *UpdateGuestStarSlotParams, p2 ...RequestEditorFn) (*UpdateGuestStarSlotHTTPResponse, error)
UpdateGuestStarSlotWithResponse calls the embedded ClientWithResponsesInterface's method UpdateGuestStarSlotWithResponse with CircuitUpdateGuestStarSlotWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateRedemptionStatusWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateRedemptionStatusWithBodyWithResponse(ctx context.Context, p1 *UpdateRedemptionStatusParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*UpdateRedemptionStatusHTTPResponse, error)
UpdateRedemptionStatusWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method UpdateRedemptionStatusWithBodyWithResponse with CircuitUpdateRedemptionStatusWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateRedemptionStatusWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateRedemptionStatusWithResponse(ctx context.Context, p1 *UpdateRedemptionStatusParams, p2 UpdateRedemptionStatusBody, p3 ...RequestEditorFn) (*UpdateRedemptionStatusHTTPResponse, error)
UpdateRedemptionStatusWithResponse calls the embedded ClientWithResponsesInterface's method UpdateRedemptionStatusWithResponse with CircuitUpdateRedemptionStatusWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateShieldModeStatusWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateShieldModeStatusWithBodyWithResponse(ctx context.Context, p1 *UpdateShieldModeStatusParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*UpdateShieldModeStatusHTTPResponse, error)
UpdateShieldModeStatusWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method UpdateShieldModeStatusWithBodyWithResponse with CircuitUpdateShieldModeStatusWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateShieldModeStatusWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateShieldModeStatusWithResponse(ctx context.Context, p1 *UpdateShieldModeStatusParams, p2 UpdateShieldModeStatusBody, p3 ...RequestEditorFn) (*UpdateShieldModeStatusHTTPResponse, error)
UpdateShieldModeStatusWithResponse calls the embedded ClientWithResponsesInterface's method UpdateShieldModeStatusWithResponse with CircuitUpdateShieldModeStatusWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateUserChatColorWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateUserChatColorWithResponse(ctx context.Context, p1 *UpdateUserChatColorParams, p2 ...RequestEditorFn) (*UpdateUserChatColorHTTPResponse, error)
UpdateUserChatColorWithResponse calls the embedded ClientWithResponsesInterface's method UpdateUserChatColorWithResponse with CircuitUpdateUserChatColorWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateUserExtensionsWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateUserExtensionsWithBodyWithResponse(ctx context.Context, p1 string, p2 io.Reader, p3 ...RequestEditorFn) (*UpdateUserExtensionsHTTPResponse, error)
UpdateUserExtensionsWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method UpdateUserExtensionsWithBodyWithResponse with CircuitUpdateUserExtensionsWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateUserExtensionsWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateUserExtensionsWithResponse(ctx context.Context, p1 UpdateUserExtensionsBody, p2 ...RequestEditorFn) (*UpdateUserExtensionsHTTPResponse, error)
UpdateUserExtensionsWithResponse calls the embedded ClientWithResponsesInterface's method UpdateUserExtensionsWithResponse with CircuitUpdateUserExtensionsWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) UpdateUserWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) UpdateUserWithResponse(ctx context.Context, p1 *UpdateUserParams, p2 ...RequestEditorFn) (*UpdateUserHTTPResponse, error)
UpdateUserWithResponse calls the embedded ClientWithResponsesInterface's method UpdateUserWithResponse with CircuitUpdateUserWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) WarnChatUserWithBodyWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) WarnChatUserWithBodyWithResponse(ctx context.Context, p1 *WarnChatUserParams, p2 string, p3 io.Reader, p4 ...RequestEditorFn) (*WarnChatUserHTTPResponse, error)
WarnChatUserWithBodyWithResponse calls the embedded ClientWithResponsesInterface's method WarnChatUserWithBodyWithResponse with CircuitWarnChatUserWithBodyWithResponse
func (*CircuitWrapperClientWithResponsesCircuit) WarnChatUserWithResponse ¶
func (w *CircuitWrapperClientWithResponsesCircuit) WarnChatUserWithResponse(ctx context.Context, p1 *WarnChatUserParams, p2 WarnChatUserBody, p3 ...RequestEditorFn) (*WarnChatUserHTTPResponse, error)
WarnChatUserWithResponse calls the embedded ClientWithResponsesInterface's method WarnChatUserWithResponse with CircuitWarnChatUserWithResponse
type CircuitWrapperClientWithResponsesCircuitConfig ¶
type CircuitWrapperClientWithResponsesCircuitConfig struct { // ShouldSkipError determines whether an error should be skipped and have the circuit // track the call as successful. This takes precedence over IsBadRequest ShouldSkipError func(error) bool // IsBadRequest is an optional bad request checker. It is useful to not count user errors as faults IsBadRequest func(error) bool // Prefix is prepended to all circuit names Prefix string // Defaults are used for all created circuits. Per-circuit configs override this Defaults circuit.Config // CircuitAddBlockedTermWithBodyWithResponse is the configuration used for the AddBlockedTermWithBodyWithResponse circuit. This overrides values set by Defaults CircuitAddBlockedTermWithBodyWithResponse circuit.Config // CircuitAddBlockedTermWithResponse is the configuration used for the AddBlockedTermWithResponse circuit. This overrides values set by Defaults CircuitAddBlockedTermWithResponse circuit.Config // CircuitAddChannelModeratorWithResponse is the configuration used for the AddChannelModeratorWithResponse circuit. This overrides values set by Defaults CircuitAddChannelModeratorWithResponse circuit.Config // CircuitAddChannelVipWithResponse is the configuration used for the AddChannelVipWithResponse circuit. This overrides values set by Defaults CircuitAddChannelVipWithResponse circuit.Config // CircuitAssignGuestStarSlotWithResponse is the configuration used for the AssignGuestStarSlotWithResponse circuit. This overrides values set by Defaults CircuitAssignGuestStarSlotWithResponse circuit.Config // CircuitBanUserWithBodyWithResponse is the configuration used for the BanUserWithBodyWithResponse circuit. This overrides values set by Defaults CircuitBanUserWithBodyWithResponse circuit.Config // CircuitBanUserWithResponse is the configuration used for the BanUserWithResponse circuit. This overrides values set by Defaults CircuitBanUserWithResponse circuit.Config // CircuitBlockUserWithResponse is the configuration used for the BlockUserWithResponse circuit. This overrides values set by Defaults CircuitBlockUserWithResponse circuit.Config // CircuitCancelARaidWithResponse is the configuration used for the CancelARaidWithResponse circuit. This overrides values set by Defaults CircuitCancelARaidWithResponse circuit.Config // CircuitCheckAutomodStatusWithBodyWithResponse is the configuration used for the CheckAutomodStatusWithBodyWithResponse circuit. This overrides values set by Defaults CircuitCheckAutomodStatusWithBodyWithResponse circuit.Config // CircuitCheckAutomodStatusWithResponse is the configuration used for the CheckAutomodStatusWithResponse circuit. This overrides values set by Defaults CircuitCheckAutomodStatusWithResponse circuit.Config // CircuitCheckUserSubscriptionWithResponse is the configuration used for the CheckUserSubscriptionWithResponse circuit. This overrides values set by Defaults CircuitCheckUserSubscriptionWithResponse circuit.Config // CircuitCreateChannelStreamScheduleSegmentWithBodyWithResponse is the configuration used for the CreateChannelStreamScheduleSegmentWithBodyWithResponse circuit. This overrides values set by Defaults CircuitCreateChannelStreamScheduleSegmentWithBodyWithResponse circuit.Config // CircuitCreateChannelStreamScheduleSegmentWithResponse is the configuration used for the CreateChannelStreamScheduleSegmentWithResponse circuit. This overrides values set by Defaults CircuitCreateChannelStreamScheduleSegmentWithResponse circuit.Config // CircuitCreateClipWithResponse is the configuration used for the CreateClipWithResponse circuit. This overrides values set by Defaults CircuitCreateClipWithResponse circuit.Config // CircuitCreateConduitsWithBodyWithResponse is the configuration used for the CreateConduitsWithBodyWithResponse circuit. This overrides values set by Defaults CircuitCreateConduitsWithBodyWithResponse circuit.Config // CircuitCreateConduitsWithResponse is the configuration used for the CreateConduitsWithResponse circuit. This overrides values set by Defaults CircuitCreateConduitsWithResponse circuit.Config // CircuitCreateCustomRewardsWithBodyWithResponse is the configuration used for the CreateCustomRewardsWithBodyWithResponse circuit. This overrides values set by Defaults CircuitCreateCustomRewardsWithBodyWithResponse circuit.Config // CircuitCreateCustomRewardsWithResponse is the configuration used for the CreateCustomRewardsWithResponse circuit. This overrides values set by Defaults CircuitCreateCustomRewardsWithResponse circuit.Config // CircuitCreateEventsubSubscriptionWithBodyWithResponse is the configuration used for the CreateEventsubSubscriptionWithBodyWithResponse circuit. This overrides values set by Defaults CircuitCreateEventsubSubscriptionWithBodyWithResponse circuit.Config // CircuitCreateEventsubSubscriptionWithResponse is the configuration used for the CreateEventsubSubscriptionWithResponse circuit. This overrides values set by Defaults CircuitCreateEventsubSubscriptionWithResponse circuit.Config // CircuitCreateExtensionSecretWithResponse is the configuration used for the CreateExtensionSecretWithResponse circuit. This overrides values set by Defaults CircuitCreateExtensionSecretWithResponse circuit.Config // CircuitCreateGuestStarSessionWithResponse is the configuration used for the CreateGuestStarSessionWithResponse circuit. This overrides values set by Defaults CircuitCreateGuestStarSessionWithResponse circuit.Config // CircuitCreatePollWithBodyWithResponse is the configuration used for the CreatePollWithBodyWithResponse circuit. This overrides values set by Defaults CircuitCreatePollWithBodyWithResponse circuit.Config // CircuitCreatePollWithResponse is the configuration used for the CreatePollWithResponse circuit. This overrides values set by Defaults CircuitCreatePollWithResponse circuit.Config // CircuitCreatePredictionWithBodyWithResponse is the configuration used for the CreatePredictionWithBodyWithResponse circuit. This overrides values set by Defaults CircuitCreatePredictionWithBodyWithResponse circuit.Config // CircuitCreatePredictionWithResponse is the configuration used for the CreatePredictionWithResponse circuit. This overrides values set by Defaults CircuitCreatePredictionWithResponse circuit.Config // CircuitCreateStreamMarkerWithBodyWithResponse is the configuration used for the CreateStreamMarkerWithBodyWithResponse circuit. This overrides values set by Defaults CircuitCreateStreamMarkerWithBodyWithResponse circuit.Config // CircuitCreateStreamMarkerWithResponse is the configuration used for the CreateStreamMarkerWithResponse circuit. This overrides values set by Defaults CircuitCreateStreamMarkerWithResponse circuit.Config // CircuitDeleteChannelStreamScheduleSegmentWithResponse is the configuration used for the DeleteChannelStreamScheduleSegmentWithResponse circuit. This overrides values set by Defaults CircuitDeleteChannelStreamScheduleSegmentWithResponse circuit.Config // CircuitDeleteChatMessagesWithResponse is the configuration used for the DeleteChatMessagesWithResponse circuit. This overrides values set by Defaults CircuitDeleteChatMessagesWithResponse circuit.Config // CircuitDeleteConduitWithResponse is the configuration used for the DeleteConduitWithResponse circuit. This overrides values set by Defaults CircuitDeleteConduitWithResponse circuit.Config // CircuitDeleteCustomRewardWithResponse is the configuration used for the DeleteCustomRewardWithResponse circuit. This overrides values set by Defaults CircuitDeleteCustomRewardWithResponse circuit.Config // CircuitDeleteEventsubSubscriptionWithResponse is the configuration used for the DeleteEventsubSubscriptionWithResponse circuit. This overrides values set by Defaults CircuitDeleteEventsubSubscriptionWithResponse circuit.Config // CircuitDeleteGuestStarInviteWithResponse is the configuration used for the DeleteGuestStarInviteWithResponse circuit. This overrides values set by Defaults CircuitDeleteGuestStarInviteWithResponse circuit.Config // CircuitDeleteGuestStarSlotWithResponse is the configuration used for the DeleteGuestStarSlotWithResponse circuit. This overrides values set by Defaults CircuitDeleteGuestStarSlotWithResponse circuit.Config // CircuitDeleteVideosWithResponse is the configuration used for the DeleteVideosWithResponse circuit. This overrides values set by Defaults CircuitDeleteVideosWithResponse circuit.Config // CircuitEndGuestStarSessionWithResponse is the configuration used for the EndGuestStarSessionWithResponse circuit. This overrides values set by Defaults CircuitEndGuestStarSessionWithResponse circuit.Config // CircuitEndPollWithBodyWithResponse is the configuration used for the EndPollWithBodyWithResponse circuit. This overrides values set by Defaults CircuitEndPollWithBodyWithResponse circuit.Config // CircuitEndPollWithResponse is the configuration used for the EndPollWithResponse circuit. This overrides values set by Defaults CircuitEndPollWithResponse circuit.Config // CircuitEndPredictionWithBodyWithResponse is the configuration used for the EndPredictionWithBodyWithResponse circuit. This overrides values set by Defaults CircuitEndPredictionWithBodyWithResponse circuit.Config // CircuitEndPredictionWithResponse is the configuration used for the EndPredictionWithResponse circuit. This overrides values set by Defaults CircuitEndPredictionWithResponse circuit.Config // CircuitGetAdScheduleWithResponse is the configuration used for the GetAdScheduleWithResponse circuit. This overrides values set by Defaults CircuitGetAdScheduleWithResponse circuit.Config // CircuitGetAllStreamTagsWithResponse is the configuration used for the GetAllStreamTagsWithResponse circuit. This overrides values set by Defaults CircuitGetAllStreamTagsWithResponse circuit.Config // CircuitGetAutomodSettingsWithResponse is the configuration used for the GetAutomodSettingsWithResponse circuit. This overrides values set by Defaults CircuitGetAutomodSettingsWithResponse circuit.Config // CircuitGetBannedUsersWithResponse is the configuration used for the GetBannedUsersWithResponse circuit. This overrides values set by Defaults CircuitGetBannedUsersWithResponse circuit.Config // CircuitGetBitsLeaderboardWithResponse is the configuration used for the GetBitsLeaderboardWithResponse circuit. This overrides values set by Defaults CircuitGetBitsLeaderboardWithResponse circuit.Config // CircuitGetBlockedTermsWithResponse is the configuration used for the GetBlockedTermsWithResponse circuit. This overrides values set by Defaults CircuitGetBlockedTermsWithResponse circuit.Config // CircuitGetBroadcasterSubscriptionsWithResponse is the configuration used for the GetBroadcasterSubscriptionsWithResponse circuit. This overrides values set by Defaults CircuitGetBroadcasterSubscriptionsWithResponse circuit.Config // CircuitGetChannelChatBadgesWithResponse is the configuration used for the GetChannelChatBadgesWithResponse circuit. This overrides values set by Defaults CircuitGetChannelChatBadgesWithResponse circuit.Config // CircuitGetChannelEditorsWithResponse is the configuration used for the GetChannelEditorsWithResponse circuit. This overrides values set by Defaults CircuitGetChannelEditorsWithResponse circuit.Config // CircuitGetChannelEmotesWithResponse is the configuration used for the GetChannelEmotesWithResponse circuit. This overrides values set by Defaults CircuitGetChannelEmotesWithResponse circuit.Config // CircuitGetChannelFollowersWithResponse is the configuration used for the GetChannelFollowersWithResponse circuit. This overrides values set by Defaults CircuitGetChannelFollowersWithResponse circuit.Config // CircuitGetChannelGuestStarSettingsWithResponse is the configuration used for the GetChannelGuestStarSettingsWithResponse circuit. This overrides values set by Defaults CircuitGetChannelGuestStarSettingsWithResponse circuit.Config // CircuitGetChannelIcalendarWithResponse is the configuration used for the GetChannelIcalendarWithResponse circuit. This overrides values set by Defaults CircuitGetChannelIcalendarWithResponse circuit.Config // CircuitGetChannelInformationWithResponse is the configuration used for the GetChannelInformationWithResponse circuit. This overrides values set by Defaults CircuitGetChannelInformationWithResponse circuit.Config // CircuitGetChannelStreamScheduleWithResponse is the configuration used for the GetChannelStreamScheduleWithResponse circuit. This overrides values set by Defaults CircuitGetChannelStreamScheduleWithResponse circuit.Config // CircuitGetChannelTeamsWithResponse is the configuration used for the GetChannelTeamsWithResponse circuit. This overrides values set by Defaults CircuitGetChannelTeamsWithResponse circuit.Config // CircuitGetCharityCampaignDonationsWithResponse is the configuration used for the GetCharityCampaignDonationsWithResponse circuit. This overrides values set by Defaults CircuitGetCharityCampaignDonationsWithResponse circuit.Config // CircuitGetCharityCampaignWithResponse is the configuration used for the GetCharityCampaignWithResponse circuit. This overrides values set by Defaults CircuitGetCharityCampaignWithResponse circuit.Config // CircuitGetChatSettingsWithResponse is the configuration used for the GetChatSettingsWithResponse circuit. This overrides values set by Defaults CircuitGetChatSettingsWithResponse circuit.Config // CircuitGetChattersWithResponse is the configuration used for the GetChattersWithResponse circuit. This overrides values set by Defaults CircuitGetChattersWithResponse circuit.Config // CircuitGetCheermotesWithResponse is the configuration used for the GetCheermotesWithResponse circuit. This overrides values set by Defaults CircuitGetCheermotesWithResponse circuit.Config // CircuitGetClipsWithResponse is the configuration used for the GetClipsWithResponse circuit. This overrides values set by Defaults CircuitGetClipsWithResponse circuit.Config // CircuitGetConduitShardsWithResponse is the configuration used for the GetConduitShardsWithResponse circuit. This overrides values set by Defaults CircuitGetConduitShardsWithResponse circuit.Config // CircuitGetConduitsWithResponse is the configuration used for the GetConduitsWithResponse circuit. This overrides values set by Defaults CircuitGetConduitsWithResponse circuit.Config // CircuitGetContentClassificationLabelsWithResponse is the configuration used for the GetContentClassificationLabelsWithResponse circuit. This overrides values set by Defaults CircuitGetContentClassificationLabelsWithResponse circuit.Config // CircuitGetCreatorGoalsWithResponse is the configuration used for the GetCreatorGoalsWithResponse circuit. This overrides values set by Defaults CircuitGetCreatorGoalsWithResponse circuit.Config // CircuitGetCustomRewardRedemptionWithResponse is the configuration used for the GetCustomRewardRedemptionWithResponse circuit. This overrides values set by Defaults CircuitGetCustomRewardRedemptionWithResponse circuit.Config // CircuitGetCustomRewardWithResponse is the configuration used for the GetCustomRewardWithResponse circuit. This overrides values set by Defaults CircuitGetCustomRewardWithResponse circuit.Config // CircuitGetDropsEntitlementsWithResponse is the configuration used for the GetDropsEntitlementsWithResponse circuit. This overrides values set by Defaults CircuitGetDropsEntitlementsWithResponse circuit.Config // CircuitGetEmoteSetsWithResponse is the configuration used for the GetEmoteSetsWithResponse circuit. This overrides values set by Defaults CircuitGetEmoteSetsWithResponse circuit.Config // CircuitGetEventsubSubscriptionsWithResponse is the configuration used for the GetEventsubSubscriptionsWithResponse circuit. This overrides values set by Defaults CircuitGetEventsubSubscriptionsWithResponse circuit.Config // CircuitGetExtensionAnalyticsWithResponse is the configuration used for the GetExtensionAnalyticsWithResponse circuit. This overrides values set by Defaults CircuitGetExtensionAnalyticsWithResponse circuit.Config // CircuitGetExtensionBitsProductsWithResponse is the configuration used for the GetExtensionBitsProductsWithResponse circuit. This overrides values set by Defaults CircuitGetExtensionBitsProductsWithResponse circuit.Config // CircuitGetExtensionConfigurationSegmentWithResponse is the configuration used for the GetExtensionConfigurationSegmentWithResponse circuit. This overrides values set by Defaults CircuitGetExtensionConfigurationSegmentWithResponse circuit.Config // CircuitGetExtensionLiveChannelsWithResponse is the configuration used for the GetExtensionLiveChannelsWithResponse circuit. This overrides values set by Defaults CircuitGetExtensionLiveChannelsWithResponse circuit.Config // CircuitGetExtensionSecretsWithResponse is the configuration used for the GetExtensionSecretsWithResponse circuit. This overrides values set by Defaults CircuitGetExtensionSecretsWithResponse circuit.Config // CircuitGetExtensionTransactionsWithResponse is the configuration used for the GetExtensionTransactionsWithResponse circuit. This overrides values set by Defaults CircuitGetExtensionTransactionsWithResponse circuit.Config // CircuitGetExtensionsWithResponse is the configuration used for the GetExtensionsWithResponse circuit. This overrides values set by Defaults CircuitGetExtensionsWithResponse circuit.Config // CircuitGetFollowedChannelsWithResponse is the configuration used for the GetFollowedChannelsWithResponse circuit. This overrides values set by Defaults CircuitGetFollowedChannelsWithResponse circuit.Config // CircuitGetFollowedStreamsWithResponse is the configuration used for the GetFollowedStreamsWithResponse circuit. This overrides values set by Defaults CircuitGetFollowedStreamsWithResponse circuit.Config // CircuitGetGameAnalyticsWithResponse is the configuration used for the GetGameAnalyticsWithResponse circuit. This overrides values set by Defaults CircuitGetGameAnalyticsWithResponse circuit.Config // CircuitGetGamesWithResponse is the configuration used for the GetGamesWithResponse circuit. This overrides values set by Defaults CircuitGetGamesWithResponse circuit.Config // CircuitGetGlobalChatBadgesWithResponse is the configuration used for the GetGlobalChatBadgesWithResponse circuit. This overrides values set by Defaults CircuitGetGlobalChatBadgesWithResponse circuit.Config // CircuitGetGlobalEmotesWithResponse is the configuration used for the GetGlobalEmotesWithResponse circuit. This overrides values set by Defaults CircuitGetGlobalEmotesWithResponse circuit.Config // CircuitGetGuestStarInvitesWithResponse is the configuration used for the GetGuestStarInvitesWithResponse circuit. This overrides values set by Defaults CircuitGetGuestStarInvitesWithResponse circuit.Config // CircuitGetGuestStarSessionWithResponse is the configuration used for the GetGuestStarSessionWithResponse circuit. This overrides values set by Defaults CircuitGetGuestStarSessionWithResponse circuit.Config // CircuitGetHypeTrainEventsWithResponse is the configuration used for the GetHypeTrainEventsWithResponse circuit. This overrides values set by Defaults CircuitGetHypeTrainEventsWithResponse circuit.Config // CircuitGetModeratedChannelsWithResponse is the configuration used for the GetModeratedChannelsWithResponse circuit. This overrides values set by Defaults CircuitGetModeratedChannelsWithResponse circuit.Config // CircuitGetModeratorsWithResponse is the configuration used for the GetModeratorsWithResponse circuit. This overrides values set by Defaults CircuitGetModeratorsWithResponse circuit.Config // CircuitGetPollsWithResponse is the configuration used for the GetPollsWithResponse circuit. This overrides values set by Defaults CircuitGetPollsWithResponse circuit.Config // CircuitGetPredictionsWithResponse is the configuration used for the GetPredictionsWithResponse circuit. This overrides values set by Defaults CircuitGetPredictionsWithResponse circuit.Config // CircuitGetReleasedExtensionsWithResponse is the configuration used for the GetReleasedExtensionsWithResponse circuit. This overrides values set by Defaults CircuitGetReleasedExtensionsWithResponse circuit.Config CircuitGetSharedChatSessionWithResponse circuit.Config // CircuitGetShieldModeStatusWithResponse is the configuration used for the GetShieldModeStatusWithResponse circuit. This overrides values set by Defaults CircuitGetShieldModeStatusWithResponse circuit.Config // CircuitGetStreamKeyWithResponse is the configuration used for the GetStreamKeyWithResponse circuit. This overrides values set by Defaults CircuitGetStreamKeyWithResponse circuit.Config // CircuitGetStreamMarkersWithResponse is the configuration used for the GetStreamMarkersWithResponse circuit. This overrides values set by Defaults CircuitGetStreamMarkersWithResponse circuit.Config // CircuitGetStreamTagsWithResponse is the configuration used for the GetStreamTagsWithResponse circuit. This overrides values set by Defaults CircuitGetStreamTagsWithResponse circuit.Config // CircuitGetStreamsWithResponse is the configuration used for the GetStreamsWithResponse circuit. This overrides values set by Defaults CircuitGetStreamsWithResponse circuit.Config // CircuitGetTeamsWithResponse is the configuration used for the GetTeamsWithResponse circuit. This overrides values set by Defaults CircuitGetTeamsWithResponse circuit.Config // CircuitGetTopGamesWithResponse is the configuration used for the GetTopGamesWithResponse circuit. This overrides values set by Defaults CircuitGetTopGamesWithResponse circuit.Config // CircuitGetUnbanRequestsWithResponse is the configuration used for the GetUnbanRequestsWithResponse circuit. This overrides values set by Defaults CircuitGetUnbanRequestsWithResponse circuit.Config // CircuitGetUserActiveExtensionsWithResponse is the configuration used for the GetUserActiveExtensionsWithResponse circuit. This overrides values set by Defaults CircuitGetUserActiveExtensionsWithResponse circuit.Config // CircuitGetUserBlockListWithResponse is the configuration used for the GetUserBlockListWithResponse circuit. This overrides values set by Defaults CircuitGetUserBlockListWithResponse circuit.Config // CircuitGetUserChatColorWithResponse is the configuration used for the GetUserChatColorWithResponse circuit. This overrides values set by Defaults CircuitGetUserChatColorWithResponse circuit.Config // CircuitGetUserEmotesWithResponse is the configuration used for the GetUserEmotesWithResponse circuit. This overrides values set by Defaults CircuitGetUserEmotesWithResponse circuit.Config // CircuitGetUserExtensionsWithResponse is the configuration used for the GetUserExtensionsWithResponse circuit. This overrides values set by Defaults CircuitGetUserExtensionsWithResponse circuit.Config // CircuitGetUsersWithResponse is the configuration used for the GetUsersWithResponse circuit. This overrides values set by Defaults CircuitGetUsersWithResponse circuit.Config // CircuitGetVideosWithResponse is the configuration used for the GetVideosWithResponse circuit. This overrides values set by Defaults CircuitGetVideosWithResponse circuit.Config // CircuitGetVipsWithResponse is the configuration used for the GetVipsWithResponse circuit. This overrides values set by Defaults CircuitGetVipsWithResponse circuit.Config // CircuitManageHeldAutomodMessagesWithBodyWithResponse is the configuration used for the ManageHeldAutomodMessagesWithBodyWithResponse circuit. This overrides values set by Defaults CircuitManageHeldAutomodMessagesWithBodyWithResponse circuit.Config // CircuitManageHeldAutomodMessagesWithResponse is the configuration used for the ManageHeldAutomodMessagesWithResponse circuit. This overrides values set by Defaults CircuitManageHeldAutomodMessagesWithResponse circuit.Config // CircuitModifyChannelInformationWithBodyWithResponse is the configuration used for the ModifyChannelInformationWithBodyWithResponse circuit. This overrides values set by Defaults CircuitModifyChannelInformationWithBodyWithResponse circuit.Config // CircuitModifyChannelInformationWithResponse is the configuration used for the ModifyChannelInformationWithResponse circuit. This overrides values set by Defaults CircuitModifyChannelInformationWithResponse circuit.Config // CircuitRemoveBlockedTermWithResponse is the configuration used for the RemoveBlockedTermWithResponse circuit. This overrides values set by Defaults CircuitRemoveBlockedTermWithResponse circuit.Config // CircuitRemoveChannelModeratorWithResponse is the configuration used for the RemoveChannelModeratorWithResponse circuit. This overrides values set by Defaults CircuitRemoveChannelModeratorWithResponse circuit.Config // CircuitRemoveChannelVipWithResponse is the configuration used for the RemoveChannelVipWithResponse circuit. This overrides values set by Defaults CircuitRemoveChannelVipWithResponse circuit.Config // CircuitResolveUnbanRequestsWithResponse is the configuration used for the ResolveUnbanRequestsWithResponse circuit. This overrides values set by Defaults CircuitResolveUnbanRequestsWithResponse circuit.Config // CircuitSearchCategoriesWithResponse is the configuration used for the SearchCategoriesWithResponse circuit. This overrides values set by Defaults CircuitSearchCategoriesWithResponse circuit.Config // CircuitSearchChannelsWithResponse is the configuration used for the SearchChannelsWithResponse circuit. This overrides values set by Defaults CircuitSearchChannelsWithResponse circuit.Config // CircuitSendAShoutoutWithResponse is the configuration used for the SendAShoutoutWithResponse circuit. This overrides values set by Defaults CircuitSendAShoutoutWithResponse circuit.Config // CircuitSendChatAnnouncementWithBodyWithResponse is the configuration used for the SendChatAnnouncementWithBodyWithResponse circuit. This overrides values set by Defaults CircuitSendChatAnnouncementWithBodyWithResponse circuit.Config // CircuitSendChatAnnouncementWithResponse is the configuration used for the SendChatAnnouncementWithResponse circuit. This overrides values set by Defaults CircuitSendChatAnnouncementWithResponse circuit.Config // CircuitSendChatMessageWithBodyWithResponse is the configuration used for the SendChatMessageWithBodyWithResponse circuit. This overrides values set by Defaults CircuitSendChatMessageWithBodyWithResponse circuit.Config // CircuitSendChatMessageWithResponse is the configuration used for the SendChatMessageWithResponse circuit. This overrides values set by Defaults CircuitSendChatMessageWithResponse circuit.Config // CircuitSendExtensionChatMessageWithBodyWithResponse is the configuration used for the SendExtensionChatMessageWithBodyWithResponse circuit. This overrides values set by Defaults CircuitSendExtensionChatMessageWithBodyWithResponse circuit.Config // CircuitSendExtensionChatMessageWithResponse is the configuration used for the SendExtensionChatMessageWithResponse circuit. This overrides values set by Defaults CircuitSendExtensionChatMessageWithResponse circuit.Config // CircuitSendExtensionPubsubMessageWithBodyWithResponse is the configuration used for the SendExtensionPubsubMessageWithBodyWithResponse circuit. This overrides values set by Defaults CircuitSendExtensionPubsubMessageWithBodyWithResponse circuit.Config // CircuitSendExtensionPubsubMessageWithResponse is the configuration used for the SendExtensionPubsubMessageWithResponse circuit. This overrides values set by Defaults CircuitSendExtensionPubsubMessageWithResponse circuit.Config // CircuitSendGuestStarInviteWithResponse is the configuration used for the SendGuestStarInviteWithResponse circuit. This overrides values set by Defaults CircuitSendGuestStarInviteWithResponse circuit.Config // CircuitSendWhisperWithBodyWithResponse is the configuration used for the SendWhisperWithBodyWithResponse circuit. This overrides values set by Defaults CircuitSendWhisperWithBodyWithResponse circuit.Config // CircuitSendWhisperWithResponse is the configuration used for the SendWhisperWithResponse circuit. This overrides values set by Defaults CircuitSendWhisperWithResponse circuit.Config // CircuitSetExtensionConfigurationSegmentWithBodyWithResponse is the configuration used for the SetExtensionConfigurationSegmentWithBodyWithResponse circuit. This overrides values set by Defaults CircuitSetExtensionConfigurationSegmentWithBodyWithResponse circuit.Config // CircuitSetExtensionConfigurationSegmentWithResponse is the configuration used for the SetExtensionConfigurationSegmentWithResponse circuit. This overrides values set by Defaults CircuitSetExtensionConfigurationSegmentWithResponse circuit.Config // CircuitSetExtensionRequiredConfigurationWithBodyWithResponse is the configuration used for the SetExtensionRequiredConfigurationWithBodyWithResponse circuit. This overrides values set by Defaults CircuitSetExtensionRequiredConfigurationWithBodyWithResponse circuit.Config // CircuitSetExtensionRequiredConfigurationWithResponse is the configuration used for the SetExtensionRequiredConfigurationWithResponse circuit. This overrides values set by Defaults CircuitSetExtensionRequiredConfigurationWithResponse circuit.Config // CircuitSnoozeNextAdWithResponse is the configuration used for the SnoozeNextAdWithResponse circuit. This overrides values set by Defaults CircuitSnoozeNextAdWithResponse circuit.Config // CircuitStartARaidWithResponse is the configuration used for the StartARaidWithResponse circuit. This overrides values set by Defaults CircuitStartARaidWithResponse circuit.Config // CircuitStartCommercialWithBodyWithResponse is the configuration used for the StartCommercialWithBodyWithResponse circuit. This overrides values set by Defaults CircuitStartCommercialWithBodyWithResponse circuit.Config // CircuitStartCommercialWithResponse is the configuration used for the StartCommercialWithResponse circuit. This overrides values set by Defaults CircuitStartCommercialWithResponse circuit.Config // CircuitUnbanUserWithResponse is the configuration used for the UnbanUserWithResponse circuit. This overrides values set by Defaults CircuitUnbanUserWithResponse circuit.Config // CircuitUnblockUserWithResponse is the configuration used for the UnblockUserWithResponse circuit. This overrides values set by Defaults CircuitUnblockUserWithResponse circuit.Config // CircuitUpdateAutomodSettingsWithBodyWithResponse is the configuration used for the UpdateAutomodSettingsWithBodyWithResponse circuit. This overrides values set by Defaults CircuitUpdateAutomodSettingsWithBodyWithResponse circuit.Config // CircuitUpdateAutomodSettingsWithResponse is the configuration used for the UpdateAutomodSettingsWithResponse circuit. This overrides values set by Defaults CircuitUpdateAutomodSettingsWithResponse circuit.Config // CircuitUpdateChannelGuestStarSettingsWithBodyWithResponse is the configuration used for the UpdateChannelGuestStarSettingsWithBodyWithResponse circuit. This overrides values set by Defaults CircuitUpdateChannelGuestStarSettingsWithBodyWithResponse circuit.Config // CircuitUpdateChannelGuestStarSettingsWithResponse is the configuration used for the UpdateChannelGuestStarSettingsWithResponse circuit. This overrides values set by Defaults CircuitUpdateChannelGuestStarSettingsWithResponse circuit.Config // CircuitUpdateChannelStreamScheduleSegmentWithBodyWithResponse is the configuration used for the UpdateChannelStreamScheduleSegmentWithBodyWithResponse circuit. This overrides values set by Defaults CircuitUpdateChannelStreamScheduleSegmentWithBodyWithResponse circuit.Config // CircuitUpdateChannelStreamScheduleSegmentWithResponse is the configuration used for the UpdateChannelStreamScheduleSegmentWithResponse circuit. This overrides values set by Defaults CircuitUpdateChannelStreamScheduleSegmentWithResponse circuit.Config // CircuitUpdateChannelStreamScheduleWithResponse is the configuration used for the UpdateChannelStreamScheduleWithResponse circuit. This overrides values set by Defaults CircuitUpdateChannelStreamScheduleWithResponse circuit.Config // CircuitUpdateChatSettingsWithBodyWithResponse is the configuration used for the UpdateChatSettingsWithBodyWithResponse circuit. This overrides values set by Defaults CircuitUpdateChatSettingsWithBodyWithResponse circuit.Config // CircuitUpdateChatSettingsWithResponse is the configuration used for the UpdateChatSettingsWithResponse circuit. This overrides values set by Defaults CircuitUpdateChatSettingsWithResponse circuit.Config // CircuitUpdateConduitShardsWithBodyWithResponse is the configuration used for the UpdateConduitShardsWithBodyWithResponse circuit. This overrides values set by Defaults CircuitUpdateConduitShardsWithBodyWithResponse circuit.Config // CircuitUpdateConduitShardsWithResponse is the configuration used for the UpdateConduitShardsWithResponse circuit. This overrides values set by Defaults CircuitUpdateConduitShardsWithResponse circuit.Config // CircuitUpdateConduitsWithBodyWithResponse is the configuration used for the UpdateConduitsWithBodyWithResponse circuit. This overrides values set by Defaults CircuitUpdateConduitsWithBodyWithResponse circuit.Config // CircuitUpdateConduitsWithResponse is the configuration used for the UpdateConduitsWithResponse circuit. This overrides values set by Defaults CircuitUpdateConduitsWithResponse circuit.Config // CircuitUpdateCustomRewardWithBodyWithResponse is the configuration used for the UpdateCustomRewardWithBodyWithResponse circuit. This overrides values set by Defaults CircuitUpdateCustomRewardWithBodyWithResponse circuit.Config // CircuitUpdateCustomRewardWithResponse is the configuration used for the UpdateCustomRewardWithResponse circuit. This overrides values set by Defaults CircuitUpdateCustomRewardWithResponse circuit.Config // CircuitUpdateDropsEntitlementsWithBodyWithResponse is the configuration used for the UpdateDropsEntitlementsWithBodyWithResponse circuit. This overrides values set by Defaults CircuitUpdateDropsEntitlementsWithBodyWithResponse circuit.Config // CircuitUpdateDropsEntitlementsWithResponse is the configuration used for the UpdateDropsEntitlementsWithResponse circuit. This overrides values set by Defaults CircuitUpdateDropsEntitlementsWithResponse circuit.Config // CircuitUpdateExtensionBitsProductWithBodyWithResponse is the configuration used for the UpdateExtensionBitsProductWithBodyWithResponse circuit. This overrides values set by Defaults CircuitUpdateExtensionBitsProductWithBodyWithResponse circuit.Config // CircuitUpdateExtensionBitsProductWithResponse is the configuration used for the UpdateExtensionBitsProductWithResponse circuit. This overrides values set by Defaults CircuitUpdateExtensionBitsProductWithResponse circuit.Config // CircuitUpdateGuestStarSlotSettingsWithResponse is the configuration used for the UpdateGuestStarSlotSettingsWithResponse circuit. This overrides values set by Defaults CircuitUpdateGuestStarSlotSettingsWithResponse circuit.Config // CircuitUpdateGuestStarSlotWithResponse is the configuration used for the UpdateGuestStarSlotWithResponse circuit. This overrides values set by Defaults CircuitUpdateGuestStarSlotWithResponse circuit.Config // CircuitUpdateRedemptionStatusWithBodyWithResponse is the configuration used for the UpdateRedemptionStatusWithBodyWithResponse circuit. This overrides values set by Defaults CircuitUpdateRedemptionStatusWithBodyWithResponse circuit.Config // CircuitUpdateRedemptionStatusWithResponse is the configuration used for the UpdateRedemptionStatusWithResponse circuit. This overrides values set by Defaults CircuitUpdateRedemptionStatusWithResponse circuit.Config // CircuitUpdateShieldModeStatusWithBodyWithResponse is the configuration used for the UpdateShieldModeStatusWithBodyWithResponse circuit. This overrides values set by Defaults CircuitUpdateShieldModeStatusWithBodyWithResponse circuit.Config // CircuitUpdateShieldModeStatusWithResponse is the configuration used for the UpdateShieldModeStatusWithResponse circuit. This overrides values set by Defaults CircuitUpdateShieldModeStatusWithResponse circuit.Config // CircuitUpdateUserChatColorWithResponse is the configuration used for the UpdateUserChatColorWithResponse circuit. This overrides values set by Defaults CircuitUpdateUserChatColorWithResponse circuit.Config // CircuitUpdateUserExtensionsWithBodyWithResponse is the configuration used for the UpdateUserExtensionsWithBodyWithResponse circuit. This overrides values set by Defaults CircuitUpdateUserExtensionsWithBodyWithResponse circuit.Config // CircuitUpdateUserExtensionsWithResponse is the configuration used for the UpdateUserExtensionsWithResponse circuit. This overrides values set by Defaults CircuitUpdateUserExtensionsWithResponse circuit.Config // CircuitUpdateUserWithResponse is the configuration used for the UpdateUserWithResponse circuit. This overrides values set by Defaults CircuitUpdateUserWithResponse circuit.Config // CircuitWarnChatUserWithBodyWithResponse is the configuration used for the WarnChatUserWithBodyWithResponse circuit. This overrides values set by Defaults CircuitWarnChatUserWithBodyWithResponse circuit.Config // CircuitWarnChatUserWithResponse is the configuration used for the WarnChatUserWithResponse circuit. This overrides values set by Defaults CircuitWarnChatUserWithResponse circuit.Config }
CircuitWrapperClientWithResponsesCircuitConfig contains configuration for CircuitWrapperClientWithResponsesCircuit. All fields are optional
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AddBlockedTerm ¶
func (c *Client) AddBlockedTerm(ctx context.Context, params *AddBlockedTermParams, body AddBlockedTermJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddBlockedTermWithBody ¶
func (*Client) AddChannelModerator ¶
func (c *Client) AddChannelModerator(ctx context.Context, params *AddChannelModeratorParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddChannelVip ¶
func (c *Client) AddChannelVip(ctx context.Context, params *AddChannelVipParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AssignGuestStarSlot ¶
func (c *Client) AssignGuestStarSlot(ctx context.Context, params *AssignGuestStarSlotParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) BanUser ¶
func (c *Client) BanUser(ctx context.Context, params *BanUserParams, body BanUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) BanUserWithBody ¶
func (*Client) BlockUser ¶
func (c *Client) BlockUser(ctx context.Context, params *BlockUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CancelARaid ¶
func (c *Client) CancelARaid(ctx context.Context, params *CancelARaidParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CheckAutomodStatus ¶
func (c *Client) CheckAutomodStatus(ctx context.Context, params *CheckAutomodStatusParams, body CheckAutomodStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CheckAutomodStatusWithBody ¶
func (*Client) CheckUserSubscription ¶
func (c *Client) CheckUserSubscription(ctx context.Context, params *CheckUserSubscriptionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateChannelStreamScheduleSegment ¶
func (c *Client) CreateChannelStreamScheduleSegment(ctx context.Context, params *CreateChannelStreamScheduleSegmentParams, body CreateChannelStreamScheduleSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateChannelStreamScheduleSegmentWithBody ¶
func (*Client) CreateClip ¶
func (c *Client) CreateClip(ctx context.Context, params *CreateClipParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateConduits ¶
func (c *Client) CreateConduits(ctx context.Context, body CreateConduitsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateConduitsWithBody ¶
func (*Client) CreateCustomRewards ¶
func (c *Client) CreateCustomRewards(ctx context.Context, params *CreateCustomRewardsParams, body CreateCustomRewardsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateCustomRewardsWithBody ¶
func (*Client) CreateEventsubSubscription ¶
func (c *Client) CreateEventsubSubscription(ctx context.Context, body CreateEventsubSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateEventsubSubscriptionWithBody ¶
func (*Client) CreateExtensionSecret ¶
func (c *Client) CreateExtensionSecret(ctx context.Context, params *CreateExtensionSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateGuestStarSession ¶
func (c *Client) CreateGuestStarSession(ctx context.Context, params *CreateGuestStarSessionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePoll ¶
func (c *Client) CreatePoll(ctx context.Context, body CreatePollJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePollWithBody ¶
func (*Client) CreatePrediction ¶
func (c *Client) CreatePrediction(ctx context.Context, body CreatePredictionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePredictionWithBody ¶
func (*Client) CreateStreamMarker ¶
func (c *Client) CreateStreamMarker(ctx context.Context, body CreateStreamMarkerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateStreamMarkerWithBody ¶
func (*Client) DeleteChannelStreamScheduleSegment ¶
func (c *Client) DeleteChannelStreamScheduleSegment(ctx context.Context, params *DeleteChannelStreamScheduleSegmentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteChatMessages ¶
func (c *Client) DeleteChatMessages(ctx context.Context, params *DeleteChatMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteConduit ¶
func (c *Client) DeleteConduit(ctx context.Context, params *DeleteConduitParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteCustomReward ¶
func (c *Client) DeleteCustomReward(ctx context.Context, params *DeleteCustomRewardParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteEventsubSubscription ¶
func (c *Client) DeleteEventsubSubscription(ctx context.Context, params *DeleteEventsubSubscriptionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteGuestStarInvite ¶
func (c *Client) DeleteGuestStarInvite(ctx context.Context, params *DeleteGuestStarInviteParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteGuestStarSlot ¶
func (c *Client) DeleteGuestStarSlot(ctx context.Context, params *DeleteGuestStarSlotParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteVideos ¶
func (c *Client) DeleteVideos(ctx context.Context, params *DeleteVideosParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EndGuestStarSession ¶
func (c *Client) EndGuestStarSession(ctx context.Context, params *EndGuestStarSessionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EndPoll ¶
func (c *Client) EndPoll(ctx context.Context, body EndPollJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EndPollWithBody ¶
func (*Client) EndPrediction ¶
func (c *Client) EndPrediction(ctx context.Context, body EndPredictionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EndPredictionWithBody ¶
func (*Client) GetAdSchedule ¶
func (c *Client) GetAdSchedule(ctx context.Context, params *GetAdScheduleParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetAllStreamTags ¶
func (c *Client) GetAllStreamTags(ctx context.Context, params *GetAllStreamTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetAutomodSettings ¶
func (c *Client) GetAutomodSettings(ctx context.Context, params *GetAutomodSettingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetBannedUsers ¶
func (c *Client) GetBannedUsers(ctx context.Context, params *GetBannedUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetBitsLeaderboard ¶
func (c *Client) GetBitsLeaderboard(ctx context.Context, params *GetBitsLeaderboardParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetBlockedTerms ¶
func (c *Client) GetBlockedTerms(ctx context.Context, params *GetBlockedTermsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetBroadcasterSubscriptions ¶
func (c *Client) GetBroadcasterSubscriptions(ctx context.Context, params *GetBroadcasterSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChannelChatBadges ¶
func (c *Client) GetChannelChatBadges(ctx context.Context, params *GetChannelChatBadgesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChannelEditors ¶
func (c *Client) GetChannelEditors(ctx context.Context, params *GetChannelEditorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChannelEmotes ¶
func (c *Client) GetChannelEmotes(ctx context.Context, params *GetChannelEmotesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChannelFollowers ¶
func (c *Client) GetChannelFollowers(ctx context.Context, params *GetChannelFollowersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChannelGuestStarSettings ¶
func (c *Client) GetChannelGuestStarSettings(ctx context.Context, params *GetChannelGuestStarSettingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChannelIcalendar ¶
func (c *Client) GetChannelIcalendar(ctx context.Context, params *GetChannelIcalendarParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChannelInformation ¶
func (c *Client) GetChannelInformation(ctx context.Context, params *GetChannelInformationParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChannelStreamSchedule ¶
func (c *Client) GetChannelStreamSchedule(ctx context.Context, params *GetChannelStreamScheduleParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChannelTeams ¶
func (c *Client) GetChannelTeams(ctx context.Context, params *GetChannelTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCharityCampaign ¶
func (c *Client) GetCharityCampaign(ctx context.Context, params *GetCharityCampaignParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCharityCampaignDonations ¶
func (c *Client) GetCharityCampaignDonations(ctx context.Context, params *GetCharityCampaignDonationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChatSettings ¶
func (c *Client) GetChatSettings(ctx context.Context, params *GetChatSettingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChatters ¶
func (c *Client) GetChatters(ctx context.Context, params *GetChattersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCheermotes ¶
func (c *Client) GetCheermotes(ctx context.Context, params *GetCheermotesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetClips ¶
func (c *Client) GetClips(ctx context.Context, params *GetClipsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetConduitShards ¶
func (c *Client) GetConduitShards(ctx context.Context, params *GetConduitShardsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetConduits ¶
func (*Client) GetContentClassificationLabels ¶
func (c *Client) GetContentClassificationLabels(ctx context.Context, params *GetContentClassificationLabelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCreatorGoals ¶
func (c *Client) GetCreatorGoals(ctx context.Context, params *GetCreatorGoalsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCustomReward ¶
func (c *Client) GetCustomReward(ctx context.Context, params *GetCustomRewardParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCustomRewardRedemption ¶
func (c *Client) GetCustomRewardRedemption(ctx context.Context, params *GetCustomRewardRedemptionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetDropsEntitlements ¶
func (c *Client) GetDropsEntitlements(ctx context.Context, params *GetDropsEntitlementsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetEmoteSets ¶
func (c *Client) GetEmoteSets(ctx context.Context, params *GetEmoteSetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetEventsubSubscriptions ¶
func (c *Client) GetEventsubSubscriptions(ctx context.Context, params *GetEventsubSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetExtensionAnalytics ¶
func (c *Client) GetExtensionAnalytics(ctx context.Context, params *GetExtensionAnalyticsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetExtensionBitsProducts ¶
func (c *Client) GetExtensionBitsProducts(ctx context.Context, params *GetExtensionBitsProductsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetExtensionConfigurationSegment ¶
func (c *Client) GetExtensionConfigurationSegment(ctx context.Context, params *GetExtensionConfigurationSegmentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetExtensionLiveChannels ¶
func (c *Client) GetExtensionLiveChannels(ctx context.Context, params *GetExtensionLiveChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetExtensionSecrets ¶
func (*Client) GetExtensionTransactions ¶
func (c *Client) GetExtensionTransactions(ctx context.Context, params *GetExtensionTransactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetExtensions ¶
func (c *Client) GetExtensions(ctx context.Context, params *GetExtensionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetFollowedChannels ¶
func (c *Client) GetFollowedChannels(ctx context.Context, params *GetFollowedChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetFollowedStreams ¶
func (c *Client) GetFollowedStreams(ctx context.Context, params *GetFollowedStreamsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetGameAnalytics ¶
func (c *Client) GetGameAnalytics(ctx context.Context, params *GetGameAnalyticsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetGames ¶
func (c *Client) GetGames(ctx context.Context, params *GetGamesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetGlobalChatBadges ¶
func (*Client) GetGlobalEmotes ¶
func (*Client) GetGuestStarInvites ¶
func (c *Client) GetGuestStarInvites(ctx context.Context, params *GetGuestStarInvitesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetGuestStarSession ¶
func (c *Client) GetGuestStarSession(ctx context.Context, params *GetGuestStarSessionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetHypeTrainEvents ¶
func (c *Client) GetHypeTrainEvents(ctx context.Context, params *GetHypeTrainEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetModeratedChannels ¶
func (c *Client) GetModeratedChannels(ctx context.Context, params *GetModeratedChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetModerators ¶
func (c *Client) GetModerators(ctx context.Context, params *GetModeratorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetPolls ¶
func (c *Client) GetPolls(ctx context.Context, params *GetPollsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetPredictions ¶
func (c *Client) GetPredictions(ctx context.Context, params *GetPredictionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetReleasedExtensions ¶
func (c *Client) GetReleasedExtensions(ctx context.Context, params *GetReleasedExtensionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSharedChatSession ¶
func (c *Client) GetSharedChatSession(ctx context.Context, params *GetSharedChatSessionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetShieldModeStatus ¶
func (c *Client) GetShieldModeStatus(ctx context.Context, params *GetShieldModeStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetStreamKey ¶
func (c *Client) GetStreamKey(ctx context.Context, params *GetStreamKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetStreamMarkers ¶
func (c *Client) GetStreamMarkers(ctx context.Context, params *GetStreamMarkersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetStreamTags ¶
func (c *Client) GetStreamTags(ctx context.Context, params *GetStreamTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetStreams ¶
func (c *Client) GetStreams(ctx context.Context, params *GetStreamsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTeams ¶
func (c *Client) GetTeams(ctx context.Context, params *GetTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTopGames ¶
func (c *Client) GetTopGames(ctx context.Context, params *GetTopGamesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUnbanRequests ¶
func (c *Client) GetUnbanRequests(ctx context.Context, params *GetUnbanRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUserActiveExtensions ¶
func (c *Client) GetUserActiveExtensions(ctx context.Context, params *GetUserActiveExtensionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUserBlockList ¶
func (c *Client) GetUserBlockList(ctx context.Context, params *GetUserBlockListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUserChatColor ¶
func (c *Client) GetUserChatColor(ctx context.Context, params *GetUserChatColorParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUserEmotes ¶
func (c *Client) GetUserEmotes(ctx context.Context, params *GetUserEmotesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUserExtensions ¶
func (*Client) GetUsers ¶
func (c *Client) GetUsers(ctx context.Context, params *GetUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetVideos ¶
func (c *Client) GetVideos(ctx context.Context, params *GetVideosParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetVips ¶
func (c *Client) GetVips(ctx context.Context, params *GetVipsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ManageHeldAutomodMessages ¶
func (c *Client) ManageHeldAutomodMessages(ctx context.Context, body ManageHeldAutomodMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ManageHeldAutomodMessagesWithBody ¶
func (*Client) ModifyChannelInformation ¶
func (c *Client) ModifyChannelInformation(ctx context.Context, params *ModifyChannelInformationParams, body ModifyChannelInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyChannelInformationWithBody ¶
func (*Client) RemoveBlockedTerm ¶
func (c *Client) RemoveBlockedTerm(ctx context.Context, params *RemoveBlockedTermParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemoveChannelModerator ¶
func (c *Client) RemoveChannelModerator(ctx context.Context, params *RemoveChannelModeratorParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemoveChannelVip ¶
func (c *Client) RemoveChannelVip(ctx context.Context, params *RemoveChannelVipParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResolveUnbanRequests ¶
func (c *Client) ResolveUnbanRequests(ctx context.Context, params *ResolveUnbanRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SearchCategories ¶
func (c *Client) SearchCategories(ctx context.Context, params *SearchCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SearchChannels ¶
func (c *Client) SearchChannels(ctx context.Context, params *SearchChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendAShoutout ¶
func (c *Client) SendAShoutout(ctx context.Context, params *SendAShoutoutParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendChatAnnouncement ¶
func (c *Client) SendChatAnnouncement(ctx context.Context, params *SendChatAnnouncementParams, body SendChatAnnouncementJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendChatAnnouncementWithBody ¶
func (*Client) SendChatMessage ¶
func (c *Client) SendChatMessage(ctx context.Context, body SendChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendChatMessageWithBody ¶
func (*Client) SendExtensionChatMessage ¶
func (c *Client) SendExtensionChatMessage(ctx context.Context, params *SendExtensionChatMessageParams, body SendExtensionChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendExtensionChatMessageWithBody ¶
func (*Client) SendExtensionPubsubMessage ¶
func (c *Client) SendExtensionPubsubMessage(ctx context.Context, body SendExtensionPubsubMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendExtensionPubsubMessageWithBody ¶
func (*Client) SendGuestStarInvite ¶
func (c *Client) SendGuestStarInvite(ctx context.Context, params *SendGuestStarInviteParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendWhisper ¶
func (c *Client) SendWhisper(ctx context.Context, params *SendWhisperParams, body SendWhisperJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendWhisperWithBody ¶
func (*Client) SetExtensionConfigurationSegment ¶
func (c *Client) SetExtensionConfigurationSegment(ctx context.Context, body SetExtensionConfigurationSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetExtensionConfigurationSegmentWithBody ¶
func (*Client) SetExtensionRequiredConfiguration ¶
func (c *Client) SetExtensionRequiredConfiguration(ctx context.Context, params *SetExtensionRequiredConfigurationParams, body SetExtensionRequiredConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetExtensionRequiredConfigurationWithBody ¶
func (*Client) SnoozeNextAd ¶
func (c *Client) SnoozeNextAd(ctx context.Context, params *SnoozeNextAdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) StartARaid ¶
func (c *Client) StartARaid(ctx context.Context, params *StartARaidParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) StartCommercial ¶
func (c *Client) StartCommercial(ctx context.Context, body StartCommercialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) StartCommercialWithBody ¶
func (*Client) UnbanUser ¶
func (c *Client) UnbanUser(ctx context.Context, params *UnbanUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UnblockUser ¶
func (c *Client) UnblockUser(ctx context.Context, params *UnblockUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateAutomodSettings ¶
func (c *Client) UpdateAutomodSettings(ctx context.Context, params *UpdateAutomodSettingsParams, body UpdateAutomodSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateAutomodSettingsWithBody ¶
func (*Client) UpdateChannelGuestStarSettings ¶
func (c *Client) UpdateChannelGuestStarSettings(ctx context.Context, params *UpdateChannelGuestStarSettingsParams, body UpdateChannelGuestStarSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateChannelGuestStarSettingsWithBody ¶
func (*Client) UpdateChannelStreamSchedule ¶
func (c *Client) UpdateChannelStreamSchedule(ctx context.Context, params *UpdateChannelStreamScheduleParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateChannelStreamScheduleSegment ¶
func (c *Client) UpdateChannelStreamScheduleSegment(ctx context.Context, params *UpdateChannelStreamScheduleSegmentParams, body UpdateChannelStreamScheduleSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateChannelStreamScheduleSegmentWithBody ¶
func (*Client) UpdateChatSettings ¶
func (c *Client) UpdateChatSettings(ctx context.Context, params *UpdateChatSettingsParams, body UpdateChatSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateChatSettingsWithBody ¶
func (*Client) UpdateConduitShards ¶
func (c *Client) UpdateConduitShards(ctx context.Context, body UpdateConduitShardsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateConduitShardsWithBody ¶
func (*Client) UpdateConduits ¶
func (c *Client) UpdateConduits(ctx context.Context, body UpdateConduitsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateConduitsWithBody ¶
func (*Client) UpdateCustomReward ¶
func (c *Client) UpdateCustomReward(ctx context.Context, params *UpdateCustomRewardParams, body UpdateCustomRewardJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateCustomRewardWithBody ¶
func (*Client) UpdateDropsEntitlements ¶
func (c *Client) UpdateDropsEntitlements(ctx context.Context, body UpdateDropsEntitlementsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateDropsEntitlementsWithBody ¶
func (*Client) UpdateExtensionBitsProduct ¶
func (c *Client) UpdateExtensionBitsProduct(ctx context.Context, body UpdateExtensionBitsProductJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateExtensionBitsProductWithBody ¶
func (*Client) UpdateGuestStarSlot ¶
func (c *Client) UpdateGuestStarSlot(ctx context.Context, params *UpdateGuestStarSlotParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateGuestStarSlotSettings ¶
func (c *Client) UpdateGuestStarSlotSettings(ctx context.Context, params *UpdateGuestStarSlotSettingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateRedemptionStatus ¶
func (c *Client) UpdateRedemptionStatus(ctx context.Context, params *UpdateRedemptionStatusParams, body UpdateRedemptionStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateRedemptionStatusWithBody ¶
func (*Client) UpdateShieldModeStatus ¶
func (c *Client) UpdateShieldModeStatus(ctx context.Context, params *UpdateShieldModeStatusParams, body UpdateShieldModeStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateShieldModeStatusWithBody ¶
func (*Client) UpdateUser ¶
func (c *Client) UpdateUser(ctx context.Context, params *UpdateUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateUserChatColor ¶
func (c *Client) UpdateUserChatColor(ctx context.Context, params *UpdateUserChatColorParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateUserExtensions ¶
func (c *Client) UpdateUserExtensions(ctx context.Context, body UpdateUserExtensionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateUserExtensionsWithBody ¶
func (*Client) WarnChatUser ¶
func (c *Client) WarnChatUser(ctx context.Context, params *WarnChatUserParams, body WarnChatUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) WarnChatUserWithBody ¶
type ClientInterface ¶
type ClientInterface interface { /* Gets an analytics report for one or more extensions. The response contains the URLs used to download the reports (CSV files). [Learn More](https://dev.twitch.tv/docs/insights) __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **analytics:read:extensions** scope. */ GetExtensionAnalytics(ctx context.Context, params *GetExtensionAnalyticsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets an analytics report for one or more games. The response contains the URLs used to download the reports (CSV files). [Learn more](https://dev.twitch.tv/docs/insights) __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **analytics:read:games** scope. */ GetGameAnalytics(ctx context.Context, params *GetGameAnalyticsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets a list of Cheermotes that users can use to cheer Bits in any Bits-enabled channel’s chat room. Cheermotes are animated emotes that viewers can assign Bits to. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetCheermotes(ctx context.Context, params *GetCheermotesParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the list of Bits products that belongs to the extension. The client ID in the app access token identifies the extension. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). The client ID in the app access token must be the extension’s client ID. */ GetExtensionBitsProducts(ctx context.Context, params *GetExtensionBitsProductsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Adds or updates a Bits product that the extension created. If the SKU doesn’t exist, the product is added. You may update all fields except the `sku` field. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). The client ID in the app access token must match the extension’s client ID. */ UpdateExtensionBitsProductWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Adds or updates a Bits product that the extension created. If the SKU doesn’t exist, the product is added. You may update all fields except the `sku` field. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). The client ID in the app access token must match the extension’s client ID. */ UpdateExtensionBitsProduct(ctx context.Context, body UpdateExtensionBitsProductJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the Bits leaderboard for the authenticated broadcaster. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **bits:read** scope. */ GetBitsLeaderboard(ctx context.Context, params *GetBitsLeaderboardParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Deletes a custom reward that the broadcaster created. The app used to create the reward is the only app that may delete it. If the reward’s redemption status is UNFULFILLED at the time the reward is deleted, its redemption status is marked as FULFILLED. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope. */ DeleteCustomReward(ctx context.Context, params *DeleteCustomRewardParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets a list of custom rewards that the specified broadcaster created. **NOTE**: A channel may offer a maximum of 50 rewards, which includes both enabled and disabled rewards. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:redemptions** or **channel:manage:redemptions** scope. */ GetCustomReward(ctx context.Context, params *GetCustomRewardParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates a custom reward. The app used to create the reward is the only app that may update the reward. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/api/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope. __Request Body:__ The body of the request should contain only the fields you’re updating. */ UpdateCustomRewardWithBody(ctx context.Context, params *UpdateCustomRewardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates a custom reward. The app used to create the reward is the only app that may update the reward. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/api/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope. __Request Body:__ The body of the request should contain only the fields you’re updating. */ UpdateCustomReward(ctx context.Context, params *UpdateCustomRewardParams, body UpdateCustomRewardJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Creates a Custom Reward in the broadcaster’s channel. The maximum number of custom rewards per channel is 50, which includes both enabled and disabled rewards. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope. */ CreateCustomRewardsWithBody(ctx context.Context, params *CreateCustomRewardsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Creates a Custom Reward in the broadcaster’s channel. The maximum number of custom rewards per channel is 50, which includes both enabled and disabled rewards. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope. */ CreateCustomRewards(ctx context.Context, params *CreateCustomRewardsParams, body CreateCustomRewardsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets a list of redemptions for the specified custom reward. The app used to create the reward is the only app that may get the redemptions. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:redemptions** or **channel:manage:redemptions** scope. */ GetCustomRewardRedemption(ctx context.Context, params *GetCustomRewardRedemptionParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates a redemption’s status. You may update a redemption only if its status is UNFULFILLED. The app used to create the reward is the only app that may update the redemption. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope. */ UpdateRedemptionStatusWithBody(ctx context.Context, params *UpdateRedemptionStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates a redemption’s status. You may update a redemption only if its status is UNFULFILLED. The app used to create the reward is the only app that may update the redemption. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope. */ UpdateRedemptionStatus(ctx context.Context, params *UpdateRedemptionStatusParams, body UpdateRedemptionStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets information about one or more channels. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetChannelInformation(ctx context.Context, params *GetChannelInformationParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates a channel’s properties. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:broadcast** scope. __Request Body:__ All fields are optional, but you must specify at least one field. */ ModifyChannelInformationWithBody(ctx context.Context, params *ModifyChannelInformationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates a channel’s properties. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:broadcast** scope. __Request Body:__ All fields are optional, but you must specify at least one field. */ ModifyChannelInformation(ctx context.Context, params *ModifyChannelInformationParams, body ModifyChannelInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* This endpoint returns ad schedule related information, including snooze, when the last ad was run, when the next ad is scheduled, and if the channel is currently in pre-roll free time. Note that a new ad cannot be run until 8 minutes after running a previous ad. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:ads** scope. The `user_id` in the user access token must match the `broadcaster_id`. */ GetAdSchedule(ctx context.Context, params *GetAdScheduleParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* If available, pushes back the timestamp of the upcoming automatic mid-roll ad by 5 minutes. This endpoint duplicates the snooze functionality in the creator dashboard’s Ads Manager. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:ads** scope. The `user_id` in the user access token must match the `broadcaster_id`. */ SnoozeNextAd(ctx context.Context, params *SnoozeNextAdParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Starts a commercial on the specified channel. **NOTE**: Only partners and affiliates may run commercials and they must be streaming live at the time. **NOTE**: Only the broadcaster may start a commercial; the broadcaster’s editors and moderators may not start commercials on behalf of the broadcaster. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:edit:commercial** scope. */ StartCommercialWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Starts a commercial on the specified channel. **NOTE**: Only partners and affiliates may run commercials and they must be streaming live at the time. **NOTE**: Only the broadcaster may start a commercial; the broadcaster’s editors and moderators may not start commercials on behalf of the broadcaster. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:edit:commercial** scope. */ StartCommercial(ctx context.Context, body StartCommercialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the broadcaster’s list editors. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:editors** scope. */ GetChannelEditors(ctx context.Context, params *GetChannelEditorsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets a list of broadcasters that the specified user follows. You can also use this endpoint to see whether a user follows a specific broadcaster. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:follows** scope. */ GetFollowedChannels(ctx context.Context, params *GetFollowedChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets a list of users that follow the specified broadcaster. You can also use this endpoint to see whether a specific user follows the broadcaster. __Authorization:__ * Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:read:followers** scope. * The ID in the broadcaster\_id query parameter must match the user ID in the access token or the user ID in the access token must be a moderator for the specified broadcaster. This endpoint will return specific follower information only if both of the above are true. If a scope is not provided or the user isn’t the broadcaster or a moderator for the specified channel, only the total follower count will be included in the response. */ GetChannelFollowers(ctx context.Context, params *GetChannelFollowersParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Removes the specified user as a VIP in the broadcaster’s channel. If the broadcaster is removing the user’s VIP status, the ID in the _broadcaster\_id_ query parameter must match the user ID in the access token; otherwise, if the user is removing their VIP status themselves, the ID in the _user\_id_ query parameter must match the user ID in the access token. **Rate Limits**: The broadcaster may remove a maximum of 10 VIPs within a 10-second window. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:vips** scope. */ RemoveChannelVip(ctx context.Context, params *RemoveChannelVipParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets a list of the broadcaster’s VIPs. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:vips** scope. If your app also adds and removes VIP status, you can use the **channel:manage:vips** scope instead. */ GetVips(ctx context.Context, params *GetVipsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Adds the specified user as a VIP in the broadcaster’s channel. **Rate Limits**: The broadcaster may add a maximum of 10 VIPs within a 10-second window. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:vips** scope. */ AddChannelVip(ctx context.Context, params *AddChannelVipParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets information about the charity campaign that a broadcaster is running. For example, the campaign’s fundraising goal and the current amount of donations. To receive events when progress is made towards the campaign’s goal or the broadcaster changes the fundraising goal, subscribe to the [channel.charity\_campaign.progress](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelcharity%5Fcampaignprogress) subscription type. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:charity** scope. */ GetCharityCampaign(ctx context.Context, params *GetCharityCampaignParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the list of donations that users have made to the broadcaster’s active charity campaign. To receive events as donations occur, subscribe to the [channel.charity\_campaign.donate](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelcharity%5Fcampaigndonate) subscription type. __Authorization:__ Requires a user access token that includes the **channel:read:charity** scope. */ GetCharityCampaignDonations(ctx context.Context, params *GetCharityCampaignDonationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Sends an announcement to the broadcaster’s chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:announcements** scope. */ SendChatAnnouncementWithBody(ctx context.Context, params *SendChatAnnouncementParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Sends an announcement to the broadcaster’s chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:announcements** scope. */ SendChatAnnouncement(ctx context.Context, params *SendChatAnnouncementParams, body SendChatAnnouncementJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the broadcaster’s list of custom chat badges. The list is empty if the broadcaster hasn’t created custom chat badges. For information about custom badges, see [subscriber badges](https://help.twitch.tv/s/article/subscriber-badge-guide) and [Bits badges](https://help.twitch.tv/s/article/custom-bit-badges-guide). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetChannelChatBadges(ctx context.Context, params *GetChannelChatBadgesParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets Twitch’s list of chat badges, which users may use in any channel’s chat room. For information about chat badges, see [Twitch Chat Badges Guide](https://help.twitch.tv/s/article/twitch-chat-badges-guide). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). __Request Query Parameters:__ None */ GetGlobalChatBadges(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the list of users that are connected to the broadcaster’s chat session. **NOTE**: There is a delay between when users join and leave a chat and when the list is updated accordingly. To determine whether a user is a moderator or VIP, use the [Get Moderators](https://dev.twitch.tv/docs/api/reference#get-moderators) and [Get VIPs](https://dev.twitch.tv/docs/api/reference#get-vips) endpoints. You can check the roles of up to 100 users. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:read:chatters** scope. */ GetChatters(ctx context.Context, params *GetChattersParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the color used for the user’s name in chat. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetUserChatColor(ctx context.Context, params *GetUserChatColorParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates the color used for the user’s name in chat. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:manage:chat\_color** scope. */ UpdateUserChatColor(ctx context.Context, params *UpdateUserChatColorParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the broadcaster’s list of custom emotes. Broadcasters create these custom emotes for users who subscribe to or follow the channel or cheer Bits in the channel’s chat window. [Learn More](https://dev.twitch.tv/docs/irc/emotes) For information about the custom emotes, see [subscriber emotes](https://help.twitch.tv/s/article/subscriber-emote-guide), [Bits tier emotes](https://help.twitch.tv/s/article/custom-bit-badges-guide?language=bg#slots), and [follower emotes](https://blog.twitch.tv/en/2021/06/04/kicking-off-10-years-with-our-biggest-emote-update-ever/). **NOTE:** With the exception of custom follower emotes, users may use custom emotes in any Twitch chat. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetChannelEmotes(ctx context.Context, params *GetChannelEmotesParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the list of [global emotes](https://www.twitch.tv/creatorcamp/en/learn-the-basics/emotes/). Global emotes are Twitch-created emotes that users can use in any Twitch chat. [Learn More](https://dev.twitch.tv/docs/irc/emotes) __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). __Request Query Parameters:__ None */ GetGlobalEmotes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets emotes for one or more specified emote sets. An emote set groups emotes that have a similar context. For example, Twitch places all the subscriber emotes that a broadcaster uploads for their channel in the same emote set. [Learn More](https://dev.twitch.tv/docs/irc/emotes) __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetEmoteSets(ctx context.Context, params *GetEmoteSetsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* NEW Retrieves emotes available to the user across all channels. __Authorization:__ * Requires a user access token that includes the **user:read:emotes** scope. * Query parameter `user_id` must match the `user_id` in the user access token. */ GetUserEmotes(ctx context.Context, params *GetUserEmotesParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* NEW Sends a message to the broadcaster’s chat room. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the `user:write:chat` scope. If app access token used, then additionally requires `user:bot` scope from chatting user, and either `channel:bot` scope from broadcaster or moderator status. */ SendChatMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* NEW Sends a message to the broadcaster’s chat room. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the `user:write:chat` scope. If app access token used, then additionally requires `user:bot` scope from chatting user, and either `channel:bot` scope from broadcaster or moderator status. */ SendChatMessage(ctx context.Context, body SendChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the broadcaster’s chat settings. For an overview of chat settings, see [Chat Commands for Broadcasters and Moderators](https://help.twitch.tv/s/article/chat-commands#AllMods) and [Moderator Preferences](https://help.twitch.tv/s/article/setting-up-moderation-for-your-twitch-channel#modpreferences). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetChatSettings(ctx context.Context, params *GetChatSettingsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates the broadcaster’s chat settings. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:chat\_settings** scope. __Request Body:__ All fields are optional. Specify only those fields that you want to update. To set the `slow_mode_wait_time` or `follower_mode_duration` field to its default value, set the corresponding `slow_mode` or `follower_mode` field to **true** (and don’t include the `slow_mode_wait_time` or `follower_mode_duration` field). To set the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field’s value, you must set the corresponding `slow_mode`, `follower_mode`, or `non_moderator_chat_delay` field to **true**. To remove the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field’s value, set the corresponding `slow_mode`, `follower_mode`, or `non_moderator_chat_delay` field to **false** (and don’t include the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field). */ UpdateChatSettingsWithBody(ctx context.Context, params *UpdateChatSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates the broadcaster’s chat settings. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:chat\_settings** scope. __Request Body:__ All fields are optional. Specify only those fields that you want to update. To set the `slow_mode_wait_time` or `follower_mode_duration` field to its default value, set the corresponding `slow_mode` or `follower_mode` field to **true** (and don’t include the `slow_mode_wait_time` or `follower_mode_duration` field). To set the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field’s value, you must set the corresponding `slow_mode`, `follower_mode`, or `non_moderator_chat_delay` field to **true**. To remove the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field’s value, set the corresponding `slow_mode`, `follower_mode`, or `non_moderator_chat_delay` field to **false** (and don’t include the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field). */ UpdateChatSettings(ctx context.Context, params *UpdateChatSettingsParams, body UpdateChatSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Sends a Shoutout to the specified broadcaster. Typically, you send Shoutouts when you or one of your moderators notice another broadcaster in your chat, the other broadcaster is coming up in conversation, or after they raid your broadcast. Twitch’s Shoutout feature is a great way for you to show support for other broadcasters and help them grow. Viewers who do not follow the other broadcaster will see a pop-up Follow button in your chat that they can click to follow the other broadcaster. [Learn More](https://help.twitch.tv/s/article/shoutouts) **Rate Limits** The broadcaster may send a Shoutout once every 2 minutes. They may send the same broadcaster a Shoutout once every 60 minutes. To receive notifications when a Shoutout is sent or received, subscribe to the [channel.shoutout.create](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelshoutoutcreate) and [channel.shoutout.receive](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelshoutoutreceive) subscription types. The **channel.shoutout.create** event includes cooldown periods that indicate when the broadcaster may send another Shoutout without exceeding the endpoint’s rate limit. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:shoutouts** scope. */ SendAShoutout(ctx context.Context, params *SendAShoutoutParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets one or more video clips that were captured from streams. For information about clips, see [How to use clips](https://help.twitch.tv/s/article/how-to-use-clips). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). __Request Query Parameters:__ The _id_, _game\_id_, and _broadcaster\_id_ query parameters are mutually exclusive. */ GetClips(ctx context.Context, params *GetClipsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Creates a clip from the broadcaster’s stream. This API captures up to 90 seconds of the broadcaster’s stream. The 90 seconds spans the point in the stream from when you called the API. For example, if you call the API at the 4:00 minute mark, the API captures from approximately the 3:35 mark to approximately the 4:05 minute mark. Twitch tries its best to capture 90 seconds of the stream, but the actual length may be less. This may occur if you begin capturing the clip near the beginning or end of the stream. By default, Twitch publishes up to the last 30 seconds of the 90 seconds window and provides a default title for the clip. To specify the title and the portion of the 90 seconds window that’s used for the clip, use the URL in the response’s `edit_url` field. You can specify a clip that’s from 5 seconds to 60 seconds in length. The URL is valid for up to 24 hours or until the clip is published, whichever comes first. Creating a clip is an asynchronous process that can take a short amount of time to complete. To determine whether the clip was successfully created, call [Get Clips](https://dev.twitch.tv/docs/api/reference#get-clips) using the clip ID that this request returned. If Get Clips returns the clip, the clip was successfully created. If after 15 seconds Get Clips hasn’t returned the clip, assume it failed. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **clips:edit** scope. */ CreateClip(ctx context.Context, params *CreateClipParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets information about Twitch content classification labels. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetContentClassificationLabels(ctx context.Context, params *GetContentClassificationLabelsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets an organization’s list of entitlements that have been granted to a game, a user, or both. **NOTE:** Entitlements returned in the response body data are not guaranteed to be sorted by any field returned by the API. To retrieve **CLAIMED** or **FULFILLED** entitlements, use the `fulfillment_status` query parameter to filter results. To retrieve entitlements for a specific game, use the `game_id` query parameter to filter results. The following table identifies the request parameters that you may specify based on the type of access token used. | Access token type | Parameter | Description | | - | - | - | | App | None | If you don’t specify request parameters, the request returns all entitlements that your organization owns. | | App | user_id | The request returns all entitlements for any game that the organization granted to the specified user. | | App | user_id, game_id | The request returns all entitlements that the specified game granted to the specified user. | | App | game_id | The request returns all entitlements that the specified game granted to all entitled users. | | User | None | If you don’t specify request parameters, the request returns all entitlements for any game that the organization granted to the user identified in the access token. | | User | user_id | Invalid. | | User | user_id, game_id | Invalid. | | User | game_id | The request returns all entitlements that the specified game granted to the user identified in the access token. | __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). The client ID in the access token must own the game. */ GetDropsEntitlements(ctx context.Context, params *GetDropsEntitlementsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates the Drop entitlement’s fulfillment status. The following table identifies which entitlements are updated based on the type of access token used. | Access token type | Data that’s updated | | - | - | | App | Updates all entitlements with benefits owned by the organization in the access token. | | User | Updates all entitlements owned by the user in the access token and where the benefits are owned by the organization in the access token. | __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). The client ID in the access token must own the game. */ UpdateDropsEntitlementsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates the Drop entitlement’s fulfillment status. The following table identifies which entitlements are updated based on the type of access token used. | Access token type | Data that’s updated | | - | - | | App | Updates all entitlements with benefits owned by the organization in the access token. | | User | Updates all entitlements owned by the user in the access token and where the benefits are owned by the organization in the access token. | __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). The client ID in the access token must own the game. */ UpdateDropsEntitlements(ctx context.Context, body UpdateDropsEntitlementsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* NEW Deletes a specified [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/). Note that it may take some time for Eventsub subscriptions on a deleted [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) to show as disabled when calling [Get Eventsub Subscriptions](https://dev.twitch.tv/docs/api/reference/#get-eventsub-subscriptions). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ DeleteConduit(ctx context.Context, params *DeleteConduitParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* NEW Gets the [conduits](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) for a client ID. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ GetConduits(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) /* NEW Updates a [conduit’s](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) shard count. To delete shards, update the count to a lower number, and the shards above the count will be deleted. For example, if the existing shard count is 100, by resetting shard count to 50, shards 50-99 are disabled. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ UpdateConduitsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* NEW Updates a [conduit’s](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) shard count. To delete shards, update the count to a lower number, and the shards above the count will be deleted. For example, if the existing shard count is 100, by resetting shard count to 50, shards 50-99 are disabled. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ UpdateConduits(ctx context.Context, body UpdateConduitsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* NEW Creates a new [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ CreateConduitsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* NEW Creates a new [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ CreateConduits(ctx context.Context, body CreateConduitsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* NEW Gets a lists of all shards for a [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ GetConduitShards(ctx context.Context, params *GetConduitShardsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* NEW Updates shard(s) for a [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/). **NOTE:** Shard IDs are indexed starting at 0, so a conduit with a `shard_count` of 5 will have shards with IDs 0 through 4. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ UpdateConduitShardsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* NEW Updates shard(s) for a [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/). **NOTE:** Shard IDs are indexed starting at 0, so a conduit with a `shard_count` of 5 will have shards with IDs 0 through 4. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ UpdateConduitShards(ctx context.Context, body UpdateConduitShardsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Deletes an EventSub subscription. __Authorization:__ If you use [webhooks to receive events](https://dev.twitch.tv/docs/eventsub/handling-webhook-events), the request must specify an app access token. The request will fail if you use a user access token. If you use [WebSockets to receive events](https://dev.twitch.tv/docs/eventsub/handling-websocket-events), the request must specify a user access token. The request will fail if you use an app access token. The token may include any scopes. */ DeleteEventsubSubscription(ctx context.Context, params *DeleteEventsubSubscriptionParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets a list of EventSub subscriptions that the client in the access token created. __Authorization:__ If you use [Webhooks](https://dev.twitch.tv/docs/eventsub/handling-webhook-events) or [Conduits](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) to receive events, the request must specify an app access token. The request will fail if you use a user access token. If you use [WebSockets to receive events](https://dev.twitch.tv/docs/eventsub/handling-websocket-events), the request must specify a user access token. The request will fail if you use an app access token. The token may include any scopes. __Request Query Parameters:__ Use the _status_, _type_, and _user\_id_ query parameters to filter the list of subscriptions that are returned. The filters are mutually exclusive; the request fails if you specify more than one filter. */ GetEventsubSubscriptions(ctx context.Context, params *GetEventsubSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Creates an EventSub subscription. __Authorization:__ If you use [webhooks to receive events](https://dev.twitch.tv/docs/eventsub/handling-webhook-events), the request must specify an app access token. The request will fail if you use a user access token. If the subscription type requires user authorization, the user must have granted your app (client ID) permissions to receive those events before you subscribe to them. For example, to subscribe to [channel.subscribe](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types/#channelsubscribe) events, your app must get a user access token that includes the `channel:read:subscriptions` scope, which adds the required permission to your app access token’s client ID. If you use [WebSockets to receive events](https://dev.twitch.tv/docs/eventsub/handling-websocket-events), the request must specify a user access token. The request will fail if you use an app access token. If the subscription type requires user authorization, the token must include the required scope. However, if the subscription type doesn’t include user authorization, the token may include any scopes or no scopes. If you use [Conduits](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) to receive events, the request must specify an app access token. The request will fail if you use a user access token. */ CreateEventsubSubscriptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Creates an EventSub subscription. __Authorization:__ If you use [webhooks to receive events](https://dev.twitch.tv/docs/eventsub/handling-webhook-events), the request must specify an app access token. The request will fail if you use a user access token. If the subscription type requires user authorization, the user must have granted your app (client ID) permissions to receive those events before you subscribe to them. For example, to subscribe to [channel.subscribe](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types/#channelsubscribe) events, your app must get a user access token that includes the `channel:read:subscriptions` scope, which adds the required permission to your app access token’s client ID. If you use [WebSockets to receive events](https://dev.twitch.tv/docs/eventsub/handling-websocket-events), the request must specify a user access token. The request will fail if you use an app access token. If the subscription type requires user authorization, the token must include the required scope. However, if the subscription type doesn’t include user authorization, the token may include any scopes or no scopes. If you use [Conduits](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) to receive events, the request must specify an app access token. The request will fail if you use a user access token. */ CreateEventsubSubscription(ctx context.Context, body CreateEventsubSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets information about an extension. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role` field (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)), and the `role` field must be set to _external_. */ GetExtensions(ctx context.Context, params *GetExtensionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Sends a message to the specified broadcaster’s chat room. The extension’s name is used as the username for the message in the chat room. To send a chat message, your extension must enable **Chat Capabilities** (under your extension’s **Capabilities** tab). **Rate Limits**: You may send a maximum of 12 messages per minute per channel. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role` and `user_id` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_. */ SendExtensionChatMessageWithBody(ctx context.Context, params *SendExtensionChatMessageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Sends a message to the specified broadcaster’s chat room. The extension’s name is used as the username for the message in the chat room. To send a chat message, your extension must enable **Chat Capabilities** (under your extension’s **Capabilities** tab). **Rate Limits**: You may send a maximum of 12 messages per minute per channel. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role` and `user_id` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_. */ SendExtensionChatMessage(ctx context.Context, params *SendExtensionChatMessageParams, body SendExtensionChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the specified configuration segment from the specified extension. **Rate Limits**: You may retrieve each segment a maximum of 20 times per minute. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_. */ GetExtensionConfigurationSegment(ctx context.Context, params *GetExtensionConfigurationSegmentParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates a configuration segment. The segment is limited to 5 KB. Extensions that are active on a channel do not receive the updated configuration. **Rate Limits**: You may update the configuration a maximum of 20 times per minute. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_. */ SetExtensionConfigurationSegmentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates a configuration segment. The segment is limited to 5 KB. Extensions that are active on a channel do not receive the updated configuration. **Rate Limits**: You may update the configuration a maximum of 20 times per minute. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_. */ SetExtensionConfigurationSegment(ctx context.Context, body SetExtensionConfigurationSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets an extension’s list of shared secrets. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_. */ GetExtensionSecrets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) /* Creates a shared secret used to sign and verify JWT tokens. Creating a new secret removes the current secrets from service. Use this function only when you are ready to use the new secret it returns. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_. */ CreateExtensionSecret(ctx context.Context, params *CreateExtensionSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets a list of broadcasters that are streaming live and have installed or activated the extension. It may take a few minutes for the list to include or remove broadcasters that have recently gone live or stopped broadcasting. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetExtensionLiveChannels(ctx context.Context, params *GetExtensionLiveChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Sends a message to one or more viewers. You can send messages to a specific channel or to all channels where your extension is active. This endpoint uses the same mechanism as the [send](https://dev.twitch.tv/docs/extensions/reference#send) JavaScript helper function used to send messages. **Rate Limits**: You may send a maximum of 100 messages per minute per combination of extension client ID and broadcaster ID. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)) along with the `channel_id` and `pubsub_perms` fields. The `role` field must be set to _external_. To send the message to a specific channel, set the `channel_id` field in the JWT to the channel’s ID and set the `pubsub_perms.send` array to _broadcast_. “` { "exp": 1503343947, "user_id": "27419011", "role": "external", "channel_id": "27419011", "pubsub_perms": { "send":[ "broadcast" ] } } “` To send the message to all channels on which your extension is active, set the `channel_id` field to _all_ and set the `pubsub_perms.send` array to _global_. “` { "exp": 1503343947, "user_id": "27419011", "role": "external", "channel_id": "all", "pubsub_perms": { "send":[ "global" ] } } “` */ SendExtensionPubsubMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Sends a message to one or more viewers. You can send messages to a specific channel or to all channels where your extension is active. This endpoint uses the same mechanism as the [send](https://dev.twitch.tv/docs/extensions/reference#send) JavaScript helper function used to send messages. **Rate Limits**: You may send a maximum of 100 messages per minute per combination of extension client ID and broadcaster ID. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)) along with the `channel_id` and `pubsub_perms` fields. The `role` field must be set to _external_. To send the message to a specific channel, set the `channel_id` field in the JWT to the channel’s ID and set the `pubsub_perms.send` array to _broadcast_. “` { "exp": 1503343947, "user_id": "27419011", "role": "external", "channel_id": "27419011", "pubsub_perms": { "send":[ "broadcast" ] } } “` To send the message to all channels on which your extension is active, set the `channel_id` field to _all_ and set the `pubsub_perms.send` array to _global_. “` { "exp": 1503343947, "user_id": "27419011", "role": "external", "channel_id": "all", "pubsub_perms": { "send":[ "global" ] } } “` */ SendExtensionPubsubMessage(ctx context.Context, body SendExtensionPubsubMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets information about a released extension. Returns the extension if its `state` is Released. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetReleasedExtensions(ctx context.Context, params *GetReleasedExtensionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates the extension’s required\_configuration string. Use this endpoint if your extension requires the broadcaster to configure the extension before activating it (to require configuration, you must select **Custom/My Own Service** in Extension [Capabilities](https://dev.twitch.tv/docs/extensions/life-cycle/#capabilities)). For more information, see [Required Configurations](https://dev.twitch.tv/docs/extensions/building#required-configurations) and [Setting Required Configuration](https://dev.twitch.tv/docs/extensions/building#setting-required-configuration-with-the-configuration-service-optional). __Authorization:__ Requires a signed JSON Web Token (JWT) created by an EBS. For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). Set the `role` field to _external_ and the `user_id` field to the ID of the user that owns the extension. */ SetExtensionRequiredConfigurationWithBody(ctx context.Context, params *SetExtensionRequiredConfigurationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates the extension’s required\_configuration string. Use this endpoint if your extension requires the broadcaster to configure the extension before activating it (to require configuration, you must select **Custom/My Own Service** in Extension [Capabilities](https://dev.twitch.tv/docs/extensions/life-cycle/#capabilities)). For more information, see [Required Configurations](https://dev.twitch.tv/docs/extensions/building#required-configurations) and [Setting Required Configuration](https://dev.twitch.tv/docs/extensions/building#setting-required-configuration-with-the-configuration-service-optional). __Authorization:__ Requires a signed JSON Web Token (JWT) created by an EBS. For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). Set the `role` field to _external_ and the `user_id` field to the ID of the user that owns the extension. */ SetExtensionRequiredConfiguration(ctx context.Context, params *SetExtensionRequiredConfigurationParams, body SetExtensionRequiredConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets an extension’s list of transactions. A transaction records the exchange of a currency (for example, Bits) for a digital product. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ GetExtensionTransactions(ctx context.Context, params *GetExtensionTransactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets information about specified categories or games. You may get up to 100 categories or games by specifying their ID or name. You may specify all IDs, all names, or a combination of IDs and names. If you specify a combination of IDs and names, the total number of IDs and names must not exceed 100. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetGames(ctx context.Context, params *GetGamesParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets information about all broadcasts on Twitch. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetTopGames(ctx context.Context, params *GetTopGamesParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the broadcaster’s list of active goals. Use this endpoint to get the current progress of each goal. Instead of polling for the progress of a goal, consider [subscribing](https://dev.twitch.tv/docs/eventsub/manage-subscriptions) to receive notifications when a goal makes progress using the [channel.goal.progress](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelgoalprogress) subscription type. [Read More](https://dev.twitch.tv/docs/api/goals#requesting-event-notifications) __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:goals** scope. */ GetCreatorGoals(ctx context.Context, params *GetCreatorGoalsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* BETA Gets the channel settings for configuration of the Guest Star feature for a particular host. __Authorization:__ * Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:read:guest_star`, `channel:manage:guest_star`, `moderator:read:guest_star` or `moderator:manage:guest_star` */ GetChannelGuestStarSettings(ctx context.Context, params *GetChannelGuestStarSettingsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* BETA Mutates the channel settings for configuration of the Guest Star feature for a particular host. __Authorization:__ * Query parameter `broadcaster_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` */ UpdateChannelGuestStarSettingsWithBody(ctx context.Context, params *UpdateChannelGuestStarSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* BETA Mutates the channel settings for configuration of the Guest Star feature for a particular host. __Authorization:__ * Query parameter `broadcaster_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` */ UpdateChannelGuestStarSettings(ctx context.Context, params *UpdateChannelGuestStarSettingsParams, body UpdateChannelGuestStarSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* BETA Revokes a previously sent invite for a Guest Star session. __Authorization:__ * Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star` */ DeleteGuestStarInvite(ctx context.Context, params *DeleteGuestStarInviteParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* BETA Provides the caller with a list of pending invites to a Guest Star session, including the invitee’s ready status while joining the waiting room. __Authorization:__ * Query parameter `broadcaster_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:read:guest_star`, `channel:manage:guest_star`, `moderator:read:guest_star` or `moderator:manage:guest_star` */ GetGuestStarInvites(ctx context.Context, params *GetGuestStarInvitesParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* BETA Sends an invite to a specified guest on behalf of the broadcaster for a Guest Star session in progress. __Authorization:__ * Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star` */ SendGuestStarInvite(ctx context.Context, params *SendGuestStarInviteParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* BETA Programmatically ends a Guest Star session on behalf of the broadcaster. Performs the same action as if the host clicked the “End Call” button in the Guest Star UI. __Authorization:__ * Query parameter `broadcaster_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` */ EndGuestStarSession(ctx context.Context, params *EndGuestStarSessionParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* BETA Gets information about an ongoing Guest Star session for a particular channel. __Authorization:__ * Requires OAuth Scope: `channel:read:guest_star`, `channel:manage:guest_star`, `moderator:read:guest_star` or `moderator:manage:guest_star` * Guests must be either invited or assigned a slot within the session */ GetGuestStarSession(ctx context.Context, params *GetGuestStarSessionParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* BETA Programmatically creates a Guest Star session on behalf of the broadcaster. Requires the broadcaster to be present in the call interface, or the call will be ended automatically. __Authorization:__ * Query parameter `broadcaster_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` */ CreateGuestStarSession(ctx context.Context, params *CreateGuestStarSessionParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* BETA Allows a caller to remove a slot assignment from a user participating in an active Guest Star session. This revokes their access to the session immediately and disables their access to publish or subscribe to media within the session. __Authorization:__ * Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star` */ DeleteGuestStarSlot(ctx context.Context, params *DeleteGuestStarSlotParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* BETA Allows a user to update the assigned slot for a particular user within the active Guest Star session. __Authorization:__ * Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star` */ UpdateGuestStarSlot(ctx context.Context, params *UpdateGuestStarSlotParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* BETA Allows a previously invited user to be assigned a slot within the active Guest Star session, once that guest has indicated they are ready to join. __Authorization:__ * Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star` */ AssignGuestStarSlot(ctx context.Context, params *AssignGuestStarSlotParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* BETA Allows a user to update slot settings for a particular guest within a Guest Star session, such as allowing the user to share audio or video within the call as a host. These settings will be broadcasted to all subscribers which control their view of the guest in that slot. One or more of the optional parameters to this API can be specified at any time. __Authorization:__ * Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star` */ UpdateGuestStarSlotSettings(ctx context.Context, params *UpdateGuestStarSlotSettingsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets information about the broadcaster’s current or most recent Hype Train event. Instead of polling for events, consider [subscribing](https://dev.twitch.tv/docs/eventsub/manage-subscriptions) to Hype Train events ([Begin](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelhype%5Ftrainbegin), [Progress](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelhype%5Ftrainprogress), [End](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelhype%5Ftrainend)). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:hype\_train** scope. */ GetHypeTrainEvents(ctx context.Context, params *GetHypeTrainEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Allow or deny the message that AutoMod flagged for review. For information about AutoMod, see [How to Use AutoMod](https://help.twitch.tv/s/article/how-to-use-automod). To get messages that AutoMod is holding for review, subscribe to the **automod-queue.<moderator\_id>.<channel\_id>** [topic](https://dev.twitch.tv/docs/pubsub#topics) using [PubSub](https://dev.twitch.tv/docs/pubsub). PubSub sends a notification to your app when AutoMod holds a message for review. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:automod** scope. */ ManageHeldAutomodMessagesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Allow or deny the message that AutoMod flagged for review. For information about AutoMod, see [How to Use AutoMod](https://help.twitch.tv/s/article/how-to-use-automod). To get messages that AutoMod is holding for review, subscribe to the **automod-queue.<moderator\_id>.<channel\_id>** [topic](https://dev.twitch.tv/docs/pubsub#topics) using [PubSub](https://dev.twitch.tv/docs/pubsub). PubSub sends a notification to your app when AutoMod holds a message for review. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:automod** scope. */ ManageHeldAutomodMessages(ctx context.Context, body ManageHeldAutomodMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the broadcaster’s AutoMod settings. The settings are used to automatically block inappropriate or harassing messages from appearing in the broadcaster’s chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:read:automod\_settings** scope. */ GetAutomodSettings(ctx context.Context, params *GetAutomodSettingsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates the broadcaster’s AutoMod settings. The settings are used to automatically block inappropriate or harassing messages from appearing in the broadcaster’s chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:automod\_settings** scope. __Request Body:__ Because PUT is an overwrite operation, you must include all the fields that you want set after the operation completes. Typically, you’ll send a GET request, update the fields you want to change, and pass that object in the PUT request. You may set either `overall_level` or the individual settings like `aggression`, but not both. Setting `overall_level` applies default values to the individual settings. However, setting `overall_level` to 4 does not necessarily mean that it applies 4 to all the individual settings. Instead, it applies a set of recommended defaults to the rest of the settings. For example, if you set `overall_level` to 2, Twitch provides some filtering on discrimination and sexual content, but more filtering on hostility (see the first example response). If `overall_level` is currently set and you update `swearing` to 3, `overall_level` will be set to **null** and all settings other than `swearing` will be set to 0\. The same is true if individual settings are set and you update `overall_level` to 3 — all the individual settings are updated to reflect the default level. Note that if you set all the individual settings to values that match what `overall_level` would have set them to, Twitch changes AutoMod to use the default AutoMod level instead of using the individual settings. Valid values for all levels are from 0 (no filtering) through 4 (most aggressive filtering). These levels affect how aggressively AutoMod holds back messages for moderators to review before they appear in chat or are denied (not shown). */ UpdateAutomodSettingsWithBody(ctx context.Context, params *UpdateAutomodSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates the broadcaster’s AutoMod settings. The settings are used to automatically block inappropriate or harassing messages from appearing in the broadcaster’s chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:automod\_settings** scope. __Request Body:__ Because PUT is an overwrite operation, you must include all the fields that you want set after the operation completes. Typically, you’ll send a GET request, update the fields you want to change, and pass that object in the PUT request. You may set either `overall_level` or the individual settings like `aggression`, but not both. Setting `overall_level` applies default values to the individual settings. However, setting `overall_level` to 4 does not necessarily mean that it applies 4 to all the individual settings. Instead, it applies a set of recommended defaults to the rest of the settings. For example, if you set `overall_level` to 2, Twitch provides some filtering on discrimination and sexual content, but more filtering on hostility (see the first example response). If `overall_level` is currently set and you update `swearing` to 3, `overall_level` will be set to **null** and all settings other than `swearing` will be set to 0\. The same is true if individual settings are set and you update `overall_level` to 3 — all the individual settings are updated to reflect the default level. Note that if you set all the individual settings to values that match what `overall_level` would have set them to, Twitch changes AutoMod to use the default AutoMod level instead of using the individual settings. Valid values for all levels are from 0 (no filtering) through 4 (most aggressive filtering). These levels affect how aggressively AutoMod holds back messages for moderators to review before they appear in chat or are denied (not shown). */ UpdateAutomodSettings(ctx context.Context, params *UpdateAutomodSettingsParams, body UpdateAutomodSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets all users that the broadcaster banned or put in a timeout. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderation:read** or **moderator:manage:banned\_users** scope. */ GetBannedUsers(ctx context.Context, params *GetBannedUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Removes the ban or timeout that was placed on the specified user. To ban a user, see [Ban user](https://dev.twitch.tv/docs/api/reference#ban-user). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:banned\_users** scope. */ UnbanUser(ctx context.Context, params *UnbanUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Bans a user from participating in the specified broadcaster’s chat room or puts them in a timeout. For information about banning or putting users in a timeout, see [Ban a User](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat#TheBanFeature) and [Timeout a User](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat#TheTimeoutFeature). If the user is currently in a timeout, you can call this endpoint to change the duration of the timeout or ban them altogether. If the user is currently banned, you cannot call this method to put them in a timeout instead. To remove a ban or end a timeout, see [Unban user](https://dev.twitch.tv/docs/api/reference#unban-user). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:banned\_users** scope. */ BanUserWithBody(ctx context.Context, params *BanUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Bans a user from participating in the specified broadcaster’s chat room or puts them in a timeout. For information about banning or putting users in a timeout, see [Ban a User](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat#TheBanFeature) and [Timeout a User](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat#TheTimeoutFeature). If the user is currently in a timeout, you can call this endpoint to change the duration of the timeout or ban them altogether. If the user is currently banned, you cannot call this method to put them in a timeout instead. To remove a ban or end a timeout, see [Unban user](https://dev.twitch.tv/docs/api/reference#unban-user). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:banned\_users** scope. */ BanUser(ctx context.Context, params *BanUserParams, body BanUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Removes the word or phrase from the broadcaster’s list of blocked terms. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:blocked\_terms** scope. */ RemoveBlockedTerm(ctx context.Context, params *RemoveBlockedTermParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the broadcaster’s list of non-private, blocked words or phrases. These are the terms that the broadcaster or moderator added manually or that were denied by AutoMod. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:read:blocked\_terms** or **moderator:manage:blocked\_terms** scope. */ GetBlockedTerms(ctx context.Context, params *GetBlockedTermsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Adds a word or phrase to the broadcaster’s list of blocked terms. These are the terms that the broadcaster doesn’t want used in their chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:blocked\_terms** scope. */ AddBlockedTermWithBody(ctx context.Context, params *AddBlockedTermParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Adds a word or phrase to the broadcaster’s list of blocked terms. These are the terms that the broadcaster doesn’t want used in their chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:blocked\_terms** scope. */ AddBlockedTerm(ctx context.Context, params *AddBlockedTermParams, body AddBlockedTermJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets a list of channels that the specified user has moderator privileges in. __Authorization:__ * Query parameter `user_id` must match the user ID in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `user:read:moderated_channels` */ GetModeratedChannels(ctx context.Context, params *GetModeratedChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Removes a single chat message or all chat messages from the broadcaster’s chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:chat\_messages** scope. */ DeleteChatMessages(ctx context.Context, params *DeleteChatMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Checks whether AutoMod would flag the specified message for review. AutoMod is a moderation tool that holds inappropriate or harassing chat messages for moderators to review. Moderators approve or deny the messages that AutoMod flags; only approved messages are released to chat. AutoMod detects misspellings and evasive language automatically. For information about AutoMod, see [How to Use AutoMod](https://help.twitch.tv/s/article/how-to-use-automod). **Rate Limits**: Rates are limited per channel based on the account type rather than per access token. | Account type | Limit per minute | Limit per hour | | - | - | - | | Normal | 5 | 50 | | Affiliate | 10 | 100 | | Partner | 30 | 300 | The above limits are in addition to the standard [Twitch API rate limits](https://dev.twitch.tv/docs/api/guide#twitch-rate-limits). The rate limit headers in the response represent the Twitch rate limits and not the above limits. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderation:read** scope. */ CheckAutomodStatusWithBody(ctx context.Context, params *CheckAutomodStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Checks whether AutoMod would flag the specified message for review. AutoMod is a moderation tool that holds inappropriate or harassing chat messages for moderators to review. Moderators approve or deny the messages that AutoMod flags; only approved messages are released to chat. AutoMod detects misspellings and evasive language automatically. For information about AutoMod, see [How to Use AutoMod](https://help.twitch.tv/s/article/how-to-use-automod). **Rate Limits**: Rates are limited per channel based on the account type rather than per access token. | Account type | Limit per minute | Limit per hour | | - | - | - | | Normal | 5 | 50 | | Affiliate | 10 | 100 | | Partner | 30 | 300 | The above limits are in addition to the standard [Twitch API rate limits](https://dev.twitch.tv/docs/api/guide#twitch-rate-limits). The rate limit headers in the response represent the Twitch rate limits and not the above limits. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderation:read** scope. */ CheckAutomodStatus(ctx context.Context, params *CheckAutomodStatusParams, body CheckAutomodStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Removes a moderator from the broadcaster’s chat room. **Rate Limits**: The broadcaster may remove a maximum of 10 moderators within a 10-second window. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:moderators** scope. */ RemoveChannelModerator(ctx context.Context, params *RemoveChannelModeratorParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets all users allowed to moderate the broadcaster’s chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderation:read** scope. If your app also adds and removes moderators, you can use the **channel:manage:moderators** scope instead. */ GetModerators(ctx context.Context, params *GetModeratorsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Adds a moderator to the broadcaster’s chat room. **Rate Limits**: The broadcaster may add a maximum of 10 moderators within a 10-second window. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:moderators** scope. */ AddChannelModerator(ctx context.Context, params *AddChannelModeratorParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the broadcaster’s Shield Mode activation status. To receive notification when the broadcaster activates and deactivates Shield Mode, subscribe to the [channel.shield\_mode.begin](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelshield%5Fmodebegin) and [channel.shield\_mode.end](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelshield%5Fmodeend) subscription types. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:read:shield\_mode** or **moderator:manage:shield\_mode** scope. */ GetShieldModeStatus(ctx context.Context, params *GetShieldModeStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Activates or deactivates the broadcaster’s Shield Mode. Twitch’s Shield Mode feature is like a panic button that broadcasters can push to protect themselves from chat abuse coming from one or more accounts. When activated, Shield Mode applies the overrides that the broadcaster configured in the Twitch UX. If the broadcaster hasn’t configured Shield Mode, it applies default overrides. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:shield\_mode** scope. */ UpdateShieldModeStatusWithBody(ctx context.Context, params *UpdateShieldModeStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Activates or deactivates the broadcaster’s Shield Mode. Twitch’s Shield Mode feature is like a panic button that broadcasters can push to protect themselves from chat abuse coming from one or more accounts. When activated, Shield Mode applies the overrides that the broadcaster configured in the Twitch UX. If the broadcaster hasn’t configured Shield Mode, it applies default overrides. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:shield\_mode** scope. */ UpdateShieldModeStatus(ctx context.Context, params *UpdateShieldModeStatusParams, body UpdateShieldModeStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* NEW Gets a list of unban requests for a broadcaster’s channel. __Authorization:__ * Requires a user access token that includes the **moderator:read:unban\_requests** or **moderator:manage:unban\_requests** scope. * Query parameter `moderator_id` must match the `user_id` in the [user access token](https://dev.twitch.tv/docs/authentication/#user-access-tokens). */ GetUnbanRequests(ctx context.Context, params *GetUnbanRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* NEW Resolves an unban request by approving or denying it. __Authorization:__ * Requires a user access token that includes the **moderator:manage:unban\_requests** scope. * Query parameter `moderator_id` must match the `user_id` in the[user access token](https://dev.twitch.tv/docs/authentication/#user-access-tokens). */ ResolveUnbanRequests(ctx context.Context, params *ResolveUnbanRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* NEW Warns a user in the specified broadcaster’s chat room, preventing them from chat interaction until the warning is acknowledged. New warnings can be issued to a user when they already have a warning in the channel (new warning will replace old warning). __Authorization:__ Requires a user access token that includes the **moderator:manage:warnings** scope. Query parameter `moderator_id` must match the `user_id` in the [user access token](https://dev.twitch.tv/docs/authentication/#user-access-tokens). */ WarnChatUserWithBody(ctx context.Context, params *WarnChatUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* NEW Warns a user in the specified broadcaster’s chat room, preventing them from chat interaction until the warning is acknowledged. New warnings can be issued to a user when they already have a warning in the channel (new warning will replace old warning). __Authorization:__ Requires a user access token that includes the **moderator:manage:warnings** scope. Query parameter `moderator_id` must match the `user_id` in the [user access token](https://dev.twitch.tv/docs/authentication/#user-access-tokens). */ WarnChatUser(ctx context.Context, params *WarnChatUserParams, body WarnChatUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets a list of polls that the broadcaster created. Polls are available for 90 days after they’re created. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:polls** or **channel:manage:polls** scope. */ GetPolls(ctx context.Context, params *GetPollsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Ends an active poll. You have the option to end it or end it and archive it. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:polls** scope. */ EndPollWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Ends an active poll. You have the option to end it or end it and archive it. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:polls** scope. */ EndPoll(ctx context.Context, body EndPollJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Creates a poll that viewers in the broadcaster’s channel can vote on. The poll begins as soon as it’s created. You may run only one poll at a time. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:polls** scope. */ CreatePollWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Creates a poll that viewers in the broadcaster’s channel can vote on. The poll begins as soon as it’s created. You may run only one poll at a time. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:polls** scope. */ CreatePoll(ctx context.Context, body CreatePollJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets a list of Channel Points Predictions that the broadcaster created. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:predictions** or **channel:manage:predictions** scope. */ GetPredictions(ctx context.Context, params *GetPredictionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Locks, resolves, or cancels a Channel Points Prediction. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:predictions** scope. */ EndPredictionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Locks, resolves, or cancels a Channel Points Prediction. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:predictions** scope. */ EndPrediction(ctx context.Context, body EndPredictionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Creates a Channel Points Prediction. With a Channel Points Prediction, the broadcaster poses a question and viewers try to predict the outcome. The prediction runs as soon as it’s created. The broadcaster may run only one prediction at a time. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:predictions** scope. */ CreatePredictionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Creates a Channel Points Prediction. With a Channel Points Prediction, the broadcaster poses a question and viewers try to predict the outcome. The prediction runs as soon as it’s created. The broadcaster may run only one prediction at a time. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:predictions** scope. */ CreatePrediction(ctx context.Context, body CreatePredictionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Cancel a pending raid. You can cancel a raid at any point up until the broadcaster clicks **Raid Now** in the Twitch UX or the 90-second countdown expires. **Rate Limit**: The limit is 10 requests within a 10-minute window. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:raids** scope. */ CancelARaid(ctx context.Context, params *CancelARaidParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Raid another channel by sending the broadcaster’s viewers to the targeted channel. When you call the API from a chat bot or extension, the Twitch UX pops up a window at the top of the chat room that identifies the number of viewers in the raid. The raid occurs when the broadcaster clicks **Raid Now** or after the 90-second countdown expires. To determine whether the raid successfully occurred, you must subscribe to the [Channel Raid](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelraid) event. For more information, see [Get notified when a raid begins](https://dev.twitch.tv/docs/api/raids#get-notified-when-a-raid-begins). To cancel a pending raid, use the [Cancel a raid](https://dev.twitch.tv/docs/api/reference#cancel-a-raid) endpoint. **Rate Limit**: The limit is 10 requests within a 10-minute window. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:raids** scope. */ StartARaid(ctx context.Context, params *StartARaidParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the broadcaster’s streaming schedule. You can get the entire schedule or specific segments of the schedule. [Learn More](https://help.twitch.tv/s/article/channel-page-setup#Schedule) __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetChannelStreamSchedule(ctx context.Context, params *GetChannelStreamScheduleParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the broadcaster’s streaming schedule as an [iCalendar](https://datatracker.ietf.org/doc/html/rfc5545). __Authorization:__ The Client-Id and Authorization headers are not required. __Response Body:__ The response body contains the iCalendar data (see [RFC5545](https://datatracker.ietf.org/doc/html/rfc5545)). The Content-Type response header is set to `text/calendar`. */ GetChannelIcalendar(ctx context.Context, params *GetChannelIcalendarParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Removes a broadcast segment from the broadcaster’s streaming schedule. **NOTE**: For recurring segments, removing a segment removes all segments in the recurring schedule. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope. */ DeleteChannelStreamScheduleSegment(ctx context.Context, params *DeleteChannelStreamScheduleSegmentParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates a scheduled broadcast segment. For recurring segments, updating a segment’s title, category, duration, and timezone, changes all segments in the recurring schedule, not just the specified segment. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope. */ UpdateChannelStreamScheduleSegmentWithBody(ctx context.Context, params *UpdateChannelStreamScheduleSegmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates a scheduled broadcast segment. For recurring segments, updating a segment’s title, category, duration, and timezone, changes all segments in the recurring schedule, not just the specified segment. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope. */ UpdateChannelStreamScheduleSegment(ctx context.Context, params *UpdateChannelStreamScheduleSegmentParams, body UpdateChannelStreamScheduleSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Adds a single or recurring broadcast to the broadcaster’s streaming schedule. For information about scheduling broadcasts, see [Stream Schedule](https://help.twitch.tv/s/article/channel-page-setup#Schedule). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope. */ CreateChannelStreamScheduleSegmentWithBody(ctx context.Context, params *CreateChannelStreamScheduleSegmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Adds a single or recurring broadcast to the broadcaster’s streaming schedule. For information about scheduling broadcasts, see [Stream Schedule](https://help.twitch.tv/s/article/channel-page-setup#Schedule). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope. */ CreateChannelStreamScheduleSegment(ctx context.Context, params *CreateChannelStreamScheduleSegmentParams, body CreateChannelStreamScheduleSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates the broadcaster’s schedule settings, such as scheduling a vacation. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope. */ UpdateChannelStreamSchedule(ctx context.Context, params *UpdateChannelStreamScheduleParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the games or categories that match the specified query. To match, the category’s name must contain all parts of the query string. For example, if the query string is 42, the response includes any category name that contains 42 in the title. If the query string is a phrase like _love computer_, the response includes any category name that contains the words love and computer anywhere in the name. The comparison is case insensitive. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ SearchCategories(ctx context.Context, params *SearchCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the channels that match the specified query and have streamed content within the past 6 months. The fields that the API uses for comparison depends on the value that the _live\_only_ query parameter is set to. If _live\_only_ is **false**, the API matches on the broadcaster’s login name. However, if _live\_only_ is **true**, the API matches on the broadcaster’s name and category name. To match, the beginning of the broadcaster’s name or category must match the query string. The comparison is case insensitive. If the query string is angel\_of\_death, it matches all names that begin with angel\_of\_death. However, if the query string is a phrase like _angel of death_, it matches to names starting with angelofdeath or names starting with angel\_of\_death. By default, the results include both live and offline channels. To get only live channels set the _live\_only_ query parameter to **true**. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ SearchChannels(ctx context.Context, params *SearchChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error) GetSharedChatSession(ctx context.Context, params *GetSharedChatSessionParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets a list of all streams. The list is in descending order by the number of viewers watching the stream. Because viewers come and go during a stream, it’s possible to find duplicate or missing streams in the list as you page through the results. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetStreams(ctx context.Context, params *GetStreamsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the list of broadcasters that the user follows and that are streaming live. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:follows** scope. */ GetFollowedStreams(ctx context.Context, params *GetFollowedStreamsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the channel’s stream key. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:stream\_key** scope. */ GetStreamKey(ctx context.Context, params *GetStreamKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets a list of markers from the user’s most recent stream or from the specified VOD/video. A marker is an arbitrary point in a live stream that the broadcaster or editor marked, so they can return to that spot later to create video highlights (see Video Producer, Highlights in the Twitch UX). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:broadcast** or **channel:manage:broadcast** scope. */ GetStreamMarkers(ctx context.Context, params *GetStreamMarkersParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Adds a marker to a live stream. A marker is an arbitrary point in a live stream that the broadcaster or editor wants to mark, so they can return to that spot later to create video highlights (see Video Producer, Highlights in the Twitch UX). You may not add markers: * If the stream is not live * If the stream has not enabled video on demand (VOD) * If the stream is a premiere (a live, first-viewing event that combines uploaded videos with live chat) * If the stream is a rerun of a past broadcast, including past premieres. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:broadcast** scope. */ CreateStreamMarkerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Adds a marker to a live stream. A marker is an arbitrary point in a live stream that the broadcaster or editor wants to mark, so they can return to that spot later to create video highlights (see Video Producer, Highlights in the Twitch UX). You may not add markers: * If the stream is not live * If the stream has not enabled video on demand (VOD) * If the stream is a premiere (a live, first-viewing event that combines uploaded videos with live chat) * If the stream is a rerun of a past broadcast, including past premieres. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:broadcast** scope. */ CreateStreamMarker(ctx context.Context, body CreateStreamMarkerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* **IMPORTANT** Twitch is moving from Twitch-defined tags to channel-defined tags. **IMPORTANT** As of February 28, 2023, this endpoint returns an empty array. On July 13, 2023, it will return a 410 response. If you use this endpoint, please update your code to use [Get Channel Information](https://dev.twitch.tv/docs/api/reference#get-channel-information). Gets the list of stream tags that the broadcaster or Twitch added to their channel. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetStreamTags(ctx context.Context, params *GetStreamTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets a list of users that subscribe to the specified broadcaster. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:subscriptions** scope. A Twitch extensions may use an app access token if the broadcaster has granted the **channel:read:subscriptions** scope from within the Twitch Extensions manager. */ GetBroadcasterSubscriptions(ctx context.Context, params *GetBroadcasterSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Checks whether the user subscribes to the broadcaster’s channel. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:subscriptions** scope. A Twitch extensions may use an app access token if the broadcaster has granted the **user:read:subscriptions** scope from within the Twitch Extensions manager. */ CheckUserSubscription(ctx context.Context, params *CheckUserSubscriptionParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* **IMPORTANT** Twitch is moving from Twitch-defined tags to channel-defined tags. **IMPORTANT** As of February 28, 2023, this endpoint returns an empty array. On July 13, 2023, it will return a 410 response. Gets a list of all stream tags that Twitch defines. The broadcaster may apply any of these to their channel except automatic tags. For an online list of the possible tags, see [List of All Tags](https://www.twitch.tv/directory/all/tags). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetAllStreamTags(ctx context.Context, params *GetAllStreamTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets information about the specified Twitch team. [Read More](https://help.twitch.tv/s/article/twitch-teams) __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetTeams(ctx context.Context, params *GetTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the list of Twitch teams that the broadcaster is a member of. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetChannelTeams(ctx context.Context, params *GetChannelTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets information about one or more users. You may look up users using their user ID, login name, or both but the sum total of the number of users you may look up is 100\. For example, you may specify 50 IDs and 50 names or 100 IDs or names, but you cannot specify 100 IDs and 100 names. If you don’t specify IDs or login names, the request returns information about the user in the access token if you specify a user access token. To include the user’s verified email address in the response, you must use a user access token that includes the **user:read:email** scope. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetUsers(ctx context.Context, params *GetUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates the specified user’s information. The user ID in the OAuth token identifies the user whose information you want to update. To include the user’s verified email address in the response, the user access token must also include the **user:read:email** scope. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:edit** scope. */ UpdateUser(ctx context.Context, params *UpdateUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Removes the user from the broadcaster’s list of blocked users. The user ID in the OAuth token identifies the broadcaster who’s removing the block. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:manage:blocked\_users** scope. */ UnblockUser(ctx context.Context, params *UnblockUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the list of users that the broadcaster has blocked. [Read More](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat?language=en%5FUS#BlockWhispersandMessagesfromStrangers) __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:blocked\_users** scope. */ GetUserBlockList(ctx context.Context, params *GetUserBlockListParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Blocks the specified user from interacting with or having contact with the broadcaster. The user ID in the OAuth token identifies the broadcaster who is blocking the user. To learn more about blocking users, see [Block Other Users on Twitch](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat?language=en%5FUS#BlockWhispersandMessagesfromStrangers). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:manage:blocked\_users** scope. */ BlockUser(ctx context.Context, params *BlockUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets the active extensions that the broadcaster has installed for each configuration. NOTE: To include extensions that you have under development, you must specify a user access token that includes the **user:read:broadcast** or **user:edit:broadcast** scope. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetUserActiveExtensions(ctx context.Context, params *GetUserActiveExtensionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates an installed extension’s information. You can update the extension’s activation state, ID, and version number. The user ID in the access token identifies the broadcaster whose extensions you’re updating. NOTE: If you try to activate an extension under multiple extension types, the last write wins (and there is no guarantee of write order). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:edit:broadcast** scope. */ UpdateUserExtensionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Updates an installed extension’s information. You can update the extension’s activation state, ID, and version number. The user ID in the access token identifies the broadcaster whose extensions you’re updating. NOTE: If you try to activate an extension under multiple extension types, the last write wins (and there is no guarantee of write order). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:edit:broadcast** scope. */ UpdateUserExtensions(ctx context.Context, body UpdateUserExtensionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets a list of all extensions (both active and inactive) that the broadcaster has installed. The user ID in the access token identifies the broadcaster. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:broadcast** or **user:edit:broadcast** scope. To include inactive extensions, you must include the **user:edit:broadcast** scope. */ GetUserExtensions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) /* Deletes one or more videos. You may delete past broadcasts, highlights, or uploads. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:videos** scope. */ DeleteVideos(ctx context.Context, params *DeleteVideosParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Gets information about one or more published videos. You may get videos by ID, by user, or by game/category. You may apply several filters to get a subset of the videos. The filters are applied as an AND operation to each video. For example, if _language_ is set to ‘de’ and _game\_id_ is set to 21779, the response includes only videos that show playing League of Legends by users that stream in German. The filters apply only if you get videos by user ID or game ID. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetVideos(ctx context.Context, params *GetVideosParams, reqEditors ...RequestEditorFn) (*http.Response, error) /* Sends a whisper message to the specified user. NOTE: The user sending the whisper must have a verified phone number (see the **Phone Number** setting in your [Security and Privacy](https://www.twitch.tv/settings/security) settings). NOTE: The API may silently drop whispers that it suspects of violating Twitch policies. (The API does not indicate that it dropped the whisper; it returns a 204 status code as if it succeeded.) **Rate Limits**: You may whisper to a maximum of 40 unique recipients per day. Within the per day limit, you may whisper a maximum of 3 whispers per second and a maximum of 100 whispers per minute. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:manage:whispers** scope. */ SendWhisperWithBody(ctx context.Context, params *SendWhisperParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) /* Sends a whisper message to the specified user. NOTE: The user sending the whisper must have a verified phone number (see the **Phone Number** setting in your [Security and Privacy](https://www.twitch.tv/settings/security) settings). NOTE: The API may silently drop whispers that it suspects of violating Twitch policies. (The API does not indicate that it dropped the whisper; it returns a 204 status code as if it succeeded.) **Rate Limits**: You may whisper to a maximum of 40 unique recipients per day. Within the per day limit, you may whisper a maximum of 3 whispers per second and a maximum of 100 whispers per minute. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:manage:whispers** scope. */ SendWhisper(ctx context.Context, params *SendWhisperParams, body SendWhisperJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct { ClientInterface OkOnNon200 bool Tracer trace.Tracer }
Generated with client-with-responses.tmpl ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, OkOnNon200 bool, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling. When OkOnNon200 is false, all requests that return a non 200 status code will generate and return a StatusFailureError wrapping the response. This is useful when treating the library as a RPC client and no errors are acceptable. If the error states are important however, setting OKOnNon200 to true will result in all requests that do not trigger a standard HTTP request error (such as an encoding error) to return with no error. This means that the error must be parsed from the response state.
func (*ClientWithResponses) AddBlockedTermWithBodyWithResponse ¶
func (c *ClientWithResponses) AddBlockedTermWithBodyWithResponse(ctx context.Context, params *AddBlockedTermParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *AddBlockedTermHTTPResponse, err error)
Adds a word or phrase to the broadcaster’s list of blocked terms. These are the terms that the broadcaster doesn’t want used in their chat room.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:blocked\_terms** scope.
func (*ClientWithResponses) AddBlockedTermWithResponse ¶
func (c *ClientWithResponses) AddBlockedTermWithResponse(ctx context.Context, params *AddBlockedTermParams, body AddBlockedTermJSONRequestBody, reqEditors ...RequestEditorFn) (r *AddBlockedTermHTTPResponse, err error)
Adds a word or phrase to the broadcaster’s list of blocked terms. These are the terms that the broadcaster doesn’t want used in their chat room.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:blocked\_terms** scope.
func (*ClientWithResponses) AddChannelModeratorWithResponse ¶
func (c *ClientWithResponses) AddChannelModeratorWithResponse(ctx context.Context, params *AddChannelModeratorParams, reqEditors ...RequestEditorFn) (r *AddChannelModeratorHTTPResponse, err error)
Adds a moderator to the broadcaster’s chat room.
**Rate Limits**: The broadcaster may add a maximum of 10 moderators within a 10-second window.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:moderators** scope.
func (*ClientWithResponses) AddChannelVipWithResponse ¶
func (c *ClientWithResponses) AddChannelVipWithResponse(ctx context.Context, params *AddChannelVipParams, reqEditors ...RequestEditorFn) (r *AddChannelVipHTTPResponse, err error)
Adds the specified user as a VIP in the broadcaster’s channel.
**Rate Limits**: The broadcaster may add a maximum of 10 VIPs within a 10-second window.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:vips** scope.
func (*ClientWithResponses) AssignGuestStarSlotWithResponse ¶
func (c *ClientWithResponses) AssignGuestStarSlotWithResponse(ctx context.Context, params *AssignGuestStarSlotParams, reqEditors ...RequestEditorFn) (r *AssignGuestStarSlotHTTPResponse, err error)
BETA Allows a previously invited user to be assigned a slot within the active Guest Star session, once that guest has indicated they are ready to join.
__Authorization:__
* Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star`
func (*ClientWithResponses) BanUserWithBodyWithResponse ¶
func (c *ClientWithResponses) BanUserWithBodyWithResponse(ctx context.Context, params *BanUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *BanUserHTTPResponse, err error)
Bans a user from participating in the specified broadcaster’s chat room or puts them in a timeout.
For information about banning or putting users in a timeout, see [Ban a User](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat#TheBanFeature) and [Timeout a User](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat#TheTimeoutFeature).
If the user is currently in a timeout, you can call this endpoint to change the duration of the timeout or ban them altogether. If the user is currently banned, you cannot call this method to put them in a timeout instead.
To remove a ban or end a timeout, see [Unban user](https://dev.twitch.tv/docs/api/reference#unban-user).
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:banned\_users** scope.
func (*ClientWithResponses) BanUserWithResponse ¶
func (c *ClientWithResponses) BanUserWithResponse(ctx context.Context, params *BanUserParams, body BanUserJSONRequestBody, reqEditors ...RequestEditorFn) (r *BanUserHTTPResponse, err error)
Bans a user from participating in the specified broadcaster’s chat room or puts them in a timeout.
For information about banning or putting users in a timeout, see [Ban a User](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat#TheBanFeature) and [Timeout a User](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat#TheTimeoutFeature).
If the user is currently in a timeout, you can call this endpoint to change the duration of the timeout or ban them altogether. If the user is currently banned, you cannot call this method to put them in a timeout instead.
To remove a ban or end a timeout, see [Unban user](https://dev.twitch.tv/docs/api/reference#unban-user).
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:banned\_users** scope.
func (*ClientWithResponses) BlockUserWithResponse ¶
func (c *ClientWithResponses) BlockUserWithResponse(ctx context.Context, params *BlockUserParams, reqEditors ...RequestEditorFn) (r *BlockUserHTTPResponse, err error)
Blocks the specified user from interacting with or having contact with the broadcaster. The user ID in the OAuth token identifies the broadcaster who is blocking the user.
To learn more about blocking users, see [Block Other Users on Twitch](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat?language=en%5FUS#BlockWhispersandMessagesfromStrangers).
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:manage:blocked\_users** scope.
func (*ClientWithResponses) CancelARaidWithResponse ¶
func (c *ClientWithResponses) CancelARaidWithResponse(ctx context.Context, params *CancelARaidParams, reqEditors ...RequestEditorFn) (r *CancelARaidHTTPResponse, err error)
Cancel a pending raid.
You can cancel a raid at any point up until the broadcaster clicks **Raid Now** in the Twitch UX or the 90-second countdown expires.
**Rate Limit**: The limit is 10 requests within a 10-minute window.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:raids** scope.
func (*ClientWithResponses) CheckAutomodStatusWithBodyWithResponse ¶
func (c *ClientWithResponses) CheckAutomodStatusWithBodyWithResponse(ctx context.Context, params *CheckAutomodStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *CheckAutomodStatusHTTPResponse, err error)
Checks whether AutoMod would flag the specified message for review.
AutoMod is a moderation tool that holds inappropriate or harassing chat messages for moderators to review. Moderators approve or deny the messages that AutoMod flags; only approved messages are released to chat. AutoMod detects misspellings and evasive language automatically. For information about AutoMod, see [How to Use AutoMod](https://help.twitch.tv/s/article/how-to-use-automod).
**Rate Limits**: Rates are limited per channel based on the account type rather than per access token.
| Account type | Limit per minute | Limit per hour | | - | - | - | | Normal | 5 | 50 | | Affiliate | 10 | 100 | | Partner | 30 | 300 |
The above limits are in addition to the standard [Twitch API rate limits](https://dev.twitch.tv/docs/api/guide#twitch-rate-limits). The rate limit headers in the response represent the Twitch rate limits and not the above limits.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderation:read** scope.
func (*ClientWithResponses) CheckAutomodStatusWithResponse ¶
func (c *ClientWithResponses) CheckAutomodStatusWithResponse(ctx context.Context, params *CheckAutomodStatusParams, body CheckAutomodStatusJSONRequestBody, reqEditors ...RequestEditorFn) (r *CheckAutomodStatusHTTPResponse, err error)
Checks whether AutoMod would flag the specified message for review.
AutoMod is a moderation tool that holds inappropriate or harassing chat messages for moderators to review. Moderators approve or deny the messages that AutoMod flags; only approved messages are released to chat. AutoMod detects misspellings and evasive language automatically. For information about AutoMod, see [How to Use AutoMod](https://help.twitch.tv/s/article/how-to-use-automod).
**Rate Limits**: Rates are limited per channel based on the account type rather than per access token.
| Account type | Limit per minute | Limit per hour | | - | - | - | | Normal | 5 | 50 | | Affiliate | 10 | 100 | | Partner | 30 | 300 |
The above limits are in addition to the standard [Twitch API rate limits](https://dev.twitch.tv/docs/api/guide#twitch-rate-limits). The rate limit headers in the response represent the Twitch rate limits and not the above limits.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderation:read** scope.
func (*ClientWithResponses) CheckUserSubscriptionWithResponse ¶
func (c *ClientWithResponses) CheckUserSubscriptionWithResponse(ctx context.Context, params *CheckUserSubscriptionParams, reqEditors ...RequestEditorFn) (r *CheckUserSubscriptionHTTPResponse, err error)
Checks whether the user subscribes to the broadcaster’s channel.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:subscriptions** scope.
A Twitch extensions may use an app access token if the broadcaster has granted the **user:read:subscriptions** scope from within the Twitch Extensions manager.
func (*ClientWithResponses) CreateChannelStreamScheduleSegmentWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateChannelStreamScheduleSegmentWithBodyWithResponse(ctx context.Context, params *CreateChannelStreamScheduleSegmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *CreateChannelStreamScheduleSegmentHTTPResponse, err error)
Adds a single or recurring broadcast to the broadcaster’s streaming schedule. For information about scheduling broadcasts, see [Stream Schedule](https://help.twitch.tv/s/article/channel-page-setup#Schedule).
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope.
func (*ClientWithResponses) CreateChannelStreamScheduleSegmentWithResponse ¶
func (c *ClientWithResponses) CreateChannelStreamScheduleSegmentWithResponse(ctx context.Context, params *CreateChannelStreamScheduleSegmentParams, body CreateChannelStreamScheduleSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (r *CreateChannelStreamScheduleSegmentHTTPResponse, err error)
Adds a single or recurring broadcast to the broadcaster’s streaming schedule. For information about scheduling broadcasts, see [Stream Schedule](https://help.twitch.tv/s/article/channel-page-setup#Schedule).
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope.
func (*ClientWithResponses) CreateClipWithResponse ¶
func (c *ClientWithResponses) CreateClipWithResponse(ctx context.Context, params *CreateClipParams, reqEditors ...RequestEditorFn) (r *CreateClipHTTPResponse, err error)
Creates a clip from the broadcaster’s stream.
This API captures up to 90 seconds of the broadcaster’s stream. The 90 seconds spans the point in the stream from when you called the API. For example, if you call the API at the 4:00 minute mark, the API captures from approximately the 3:35 mark to approximately the 4:05 minute mark. Twitch tries its best to capture 90 seconds of the stream, but the actual length may be less. This may occur if you begin capturing the clip near the beginning or end of the stream.
By default, Twitch publishes up to the last 30 seconds of the 90 seconds window and provides a default title for the clip. To specify the title and the portion of the 90 seconds window that’s used for the clip, use the URL in the response’s `edit_url` field. You can specify a clip that’s from 5 seconds to 60 seconds in length. The URL is valid for up to 24 hours or until the clip is published, whichever comes first.
Creating a clip is an asynchronous process that can take a short amount of time to complete. To determine whether the clip was successfully created, call [Get Clips](https://dev.twitch.tv/docs/api/reference#get-clips) using the clip ID that this request returned. If Get Clips returns the clip, the clip was successfully created. If after 15 seconds Get Clips hasn’t returned the clip, assume it failed.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **clips:edit** scope.
func (*ClientWithResponses) CreateConduitsWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateConduitsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *CreateConduitsHTTPResponse, err error)
NEW Creates a new [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/).
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens).
func (*ClientWithResponses) CreateConduitsWithResponse ¶
func (c *ClientWithResponses) CreateConduitsWithResponse(ctx context.Context, body CreateConduitsJSONRequestBody, reqEditors ...RequestEditorFn) (r *CreateConduitsHTTPResponse, err error)
NEW Creates a new [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/).
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens).
func (*ClientWithResponses) CreateCustomRewardsWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateCustomRewardsWithBodyWithResponse(ctx context.Context, params *CreateCustomRewardsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *CreateCustomRewardsHTTPResponse, err error)
Creates a Custom Reward in the broadcaster’s channel. The maximum number of custom rewards per channel is 50, which includes both enabled and disabled rewards.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope.
func (*ClientWithResponses) CreateCustomRewardsWithResponse ¶
func (c *ClientWithResponses) CreateCustomRewardsWithResponse(ctx context.Context, params *CreateCustomRewardsParams, body CreateCustomRewardsJSONRequestBody, reqEditors ...RequestEditorFn) (r *CreateCustomRewardsHTTPResponse, err error)
Creates a Custom Reward in the broadcaster’s channel. The maximum number of custom rewards per channel is 50, which includes both enabled and disabled rewards.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope.
func (*ClientWithResponses) CreateEventsubSubscriptionWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateEventsubSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *CreateEventsubSubscriptionHTTPResponse, err error)
Creates an EventSub subscription.
__Authorization:__
If you use [webhooks to receive events](https://dev.twitch.tv/docs/eventsub/handling-webhook-events), the request must specify an app access token. The request will fail if you use a user access token. If the subscription type requires user authorization, the user must have granted your app (client ID) permissions to receive those events before you subscribe to them. For example, to subscribe to [channel.subscribe](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types/#channelsubscribe) events, your app must get a user access token that includes the `channel:read:subscriptions` scope, which adds the required permission to your app access token’s client ID.
If you use [WebSockets to receive events](https://dev.twitch.tv/docs/eventsub/handling-websocket-events), the request must specify a user access token. The request will fail if you use an app access token. If the subscription type requires user authorization, the token must include the required scope. However, if the subscription type doesn’t include user authorization, the token may include any scopes or no scopes.
If you use [Conduits](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) to receive events, the request must specify an app access token. The request will fail if you use a user access token.
func (*ClientWithResponses) CreateEventsubSubscriptionWithResponse ¶
func (c *ClientWithResponses) CreateEventsubSubscriptionWithResponse(ctx context.Context, body CreateEventsubSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (r *CreateEventsubSubscriptionHTTPResponse, err error)
Creates an EventSub subscription.
__Authorization:__
If you use [webhooks to receive events](https://dev.twitch.tv/docs/eventsub/handling-webhook-events), the request must specify an app access token. The request will fail if you use a user access token. If the subscription type requires user authorization, the user must have granted your app (client ID) permissions to receive those events before you subscribe to them. For example, to subscribe to [channel.subscribe](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types/#channelsubscribe) events, your app must get a user access token that includes the `channel:read:subscriptions` scope, which adds the required permission to your app access token’s client ID.
If you use [WebSockets to receive events](https://dev.twitch.tv/docs/eventsub/handling-websocket-events), the request must specify a user access token. The request will fail if you use an app access token. If the subscription type requires user authorization, the token must include the required scope. However, if the subscription type doesn’t include user authorization, the token may include any scopes or no scopes.
If you use [Conduits](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) to receive events, the request must specify an app access token. The request will fail if you use a user access token.
func (*ClientWithResponses) CreateExtensionSecretWithResponse ¶
func (c *ClientWithResponses) CreateExtensionSecretWithResponse(ctx context.Context, params *CreateExtensionSecretParams, reqEditors ...RequestEditorFn) (r *CreateExtensionSecretHTTPResponse, err error)
Creates a shared secret used to sign and verify JWT tokens. Creating a new secret removes the current secrets from service. Use this function only when you are ready to use the new secret it returns.
__Authorization:__
Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_.
func (*ClientWithResponses) CreateGuestStarSessionWithResponse ¶
func (c *ClientWithResponses) CreateGuestStarSessionWithResponse(ctx context.Context, params *CreateGuestStarSessionParams, reqEditors ...RequestEditorFn) (r *CreateGuestStarSessionHTTPResponse, err error)
BETA Programmatically creates a Guest Star session on behalf of the broadcaster. Requires the broadcaster to be present in the call interface, or the call will be ended automatically.
__Authorization:__
* Query parameter `broadcaster_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star`
func (*ClientWithResponses) CreatePollWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePollWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *CreatePollHTTPResponse, err error)
Creates a poll that viewers in the broadcaster’s channel can vote on.
The poll begins as soon as it’s created. You may run only one poll at a time.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:polls** scope.
func (*ClientWithResponses) CreatePollWithResponse ¶
func (c *ClientWithResponses) CreatePollWithResponse(ctx context.Context, body CreatePollJSONRequestBody, reqEditors ...RequestEditorFn) (r *CreatePollHTTPResponse, err error)
Creates a poll that viewers in the broadcaster’s channel can vote on.
The poll begins as soon as it’s created. You may run only one poll at a time.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:polls** scope.
func (*ClientWithResponses) CreatePredictionWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePredictionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *CreatePredictionHTTPResponse, err error)
Creates a Channel Points Prediction.
With a Channel Points Prediction, the broadcaster poses a question and viewers try to predict the outcome. The prediction runs as soon as it’s created. The broadcaster may run only one prediction at a time.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:predictions** scope.
func (*ClientWithResponses) CreatePredictionWithResponse ¶
func (c *ClientWithResponses) CreatePredictionWithResponse(ctx context.Context, body CreatePredictionJSONRequestBody, reqEditors ...RequestEditorFn) (r *CreatePredictionHTTPResponse, err error)
Creates a Channel Points Prediction.
With a Channel Points Prediction, the broadcaster poses a question and viewers try to predict the outcome. The prediction runs as soon as it’s created. The broadcaster may run only one prediction at a time.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:predictions** scope.
func (*ClientWithResponses) CreateStreamMarkerWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateStreamMarkerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *CreateStreamMarkerHTTPResponse, err error)
Adds a marker to a live stream. A marker is an arbitrary point in a live stream that the broadcaster or editor wants to mark, so they can return to that spot later to create video highlights (see Video Producer, Highlights in the Twitch UX).
You may not add markers:
* If the stream is not live * If the stream has not enabled video on demand (VOD) * If the stream is a premiere (a live, first-viewing event that combines uploaded videos with live chat) * If the stream is a rerun of a past broadcast, including past premieres.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:broadcast** scope.
func (*ClientWithResponses) CreateStreamMarkerWithResponse ¶
func (c *ClientWithResponses) CreateStreamMarkerWithResponse(ctx context.Context, body CreateStreamMarkerJSONRequestBody, reqEditors ...RequestEditorFn) (r *CreateStreamMarkerHTTPResponse, err error)
Adds a marker to a live stream. A marker is an arbitrary point in a live stream that the broadcaster or editor wants to mark, so they can return to that spot later to create video highlights (see Video Producer, Highlights in the Twitch UX).
You may not add markers:
* If the stream is not live * If the stream has not enabled video on demand (VOD) * If the stream is a premiere (a live, first-viewing event that combines uploaded videos with live chat) * If the stream is a rerun of a past broadcast, including past premieres.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:broadcast** scope.
func (*ClientWithResponses) DeleteChannelStreamScheduleSegmentWithResponse ¶
func (c *ClientWithResponses) DeleteChannelStreamScheduleSegmentWithResponse(ctx context.Context, params *DeleteChannelStreamScheduleSegmentParams, reqEditors ...RequestEditorFn) (r *DeleteChannelStreamScheduleSegmentHTTPResponse, err error)
Removes a broadcast segment from the broadcaster’s streaming schedule.
**NOTE**: For recurring segments, removing a segment removes all segments in the recurring schedule.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope.
func (*ClientWithResponses) DeleteChatMessagesWithResponse ¶
func (c *ClientWithResponses) DeleteChatMessagesWithResponse(ctx context.Context, params *DeleteChatMessagesParams, reqEditors ...RequestEditorFn) (r *DeleteChatMessagesHTTPResponse, err error)
Removes a single chat message or all chat messages from the broadcaster’s chat room.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:chat\_messages** scope.
func (*ClientWithResponses) DeleteConduitWithResponse ¶
func (c *ClientWithResponses) DeleteConduitWithResponse(ctx context.Context, params *DeleteConduitParams, reqEditors ...RequestEditorFn) (r *DeleteConduitHTTPResponse, err error)
NEW Deletes a specified [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/). Note that it may take some time for Eventsub subscriptions on a deleted [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) to show as disabled when calling [Get Eventsub Subscriptions](https://dev.twitch.tv/docs/api/reference/#get-eventsub-subscriptions).
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens).
func (*ClientWithResponses) DeleteCustomRewardWithResponse ¶
func (c *ClientWithResponses) DeleteCustomRewardWithResponse(ctx context.Context, params *DeleteCustomRewardParams, reqEditors ...RequestEditorFn) (r *DeleteCustomRewardHTTPResponse, err error)
Deletes a custom reward that the broadcaster created.
The app used to create the reward is the only app that may delete it. If the reward’s redemption status is UNFULFILLED at the time the reward is deleted, its redemption status is marked as FULFILLED.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope.
func (*ClientWithResponses) DeleteEventsubSubscriptionWithResponse ¶
func (c *ClientWithResponses) DeleteEventsubSubscriptionWithResponse(ctx context.Context, params *DeleteEventsubSubscriptionParams, reqEditors ...RequestEditorFn) (r *DeleteEventsubSubscriptionHTTPResponse, err error)
Deletes an EventSub subscription.
__Authorization:__
If you use [webhooks to receive events](https://dev.twitch.tv/docs/eventsub/handling-webhook-events), the request must specify an app access token. The request will fail if you use a user access token.
If you use [WebSockets to receive events](https://dev.twitch.tv/docs/eventsub/handling-websocket-events), the request must specify a user access token. The request will fail if you use an app access token. The token may include any scopes.
func (*ClientWithResponses) DeleteGuestStarInviteWithResponse ¶
func (c *ClientWithResponses) DeleteGuestStarInviteWithResponse(ctx context.Context, params *DeleteGuestStarInviteParams, reqEditors ...RequestEditorFn) (r *DeleteGuestStarInviteHTTPResponse, err error)
BETA Revokes a previously sent invite for a Guest Star session.
__Authorization:__
* Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star`
func (*ClientWithResponses) DeleteGuestStarSlotWithResponse ¶
func (c *ClientWithResponses) DeleteGuestStarSlotWithResponse(ctx context.Context, params *DeleteGuestStarSlotParams, reqEditors ...RequestEditorFn) (r *DeleteGuestStarSlotHTTPResponse, err error)
BETA Allows a caller to remove a slot assignment from a user participating in an active Guest Star session. This revokes their access to the session immediately and disables their access to publish or subscribe to media within the session.
__Authorization:__
* Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star`
func (*ClientWithResponses) DeleteVideosWithResponse ¶
func (c *ClientWithResponses) DeleteVideosWithResponse(ctx context.Context, params *DeleteVideosParams, reqEditors ...RequestEditorFn) (r *DeleteVideosHTTPResponse, err error)
Deletes one or more videos. You may delete past broadcasts, highlights, or uploads.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:videos** scope.
func (*ClientWithResponses) EndGuestStarSessionWithResponse ¶
func (c *ClientWithResponses) EndGuestStarSessionWithResponse(ctx context.Context, params *EndGuestStarSessionParams, reqEditors ...RequestEditorFn) (r *EndGuestStarSessionHTTPResponse, err error)
BETA Programmatically ends a Guest Star session on behalf of the broadcaster. Performs the same action as if the host clicked the “End Call” button in the Guest Star UI.
__Authorization:__
* Query parameter `broadcaster_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star`
func (*ClientWithResponses) EndPollWithBodyWithResponse ¶
func (c *ClientWithResponses) EndPollWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *EndPollHTTPResponse, err error)
Ends an active poll. You have the option to end it or end it and archive it.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:polls** scope.
func (*ClientWithResponses) EndPollWithResponse ¶
func (c *ClientWithResponses) EndPollWithResponse(ctx context.Context, body EndPollJSONRequestBody, reqEditors ...RequestEditorFn) (r *EndPollHTTPResponse, err error)
Ends an active poll. You have the option to end it or end it and archive it.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:polls** scope.
func (*ClientWithResponses) EndPredictionWithBodyWithResponse ¶
func (c *ClientWithResponses) EndPredictionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *EndPredictionHTTPResponse, err error)
Locks, resolves, or cancels a Channel Points Prediction.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:predictions** scope.
func (*ClientWithResponses) EndPredictionWithResponse ¶
func (c *ClientWithResponses) EndPredictionWithResponse(ctx context.Context, body EndPredictionJSONRequestBody, reqEditors ...RequestEditorFn) (r *EndPredictionHTTPResponse, err error)
Locks, resolves, or cancels a Channel Points Prediction.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:predictions** scope.
func (*ClientWithResponses) GetAdScheduleWithResponse ¶
func (c *ClientWithResponses) GetAdScheduleWithResponse(ctx context.Context, params *GetAdScheduleParams, reqEditors ...RequestEditorFn) (r *GetAdScheduleHTTPResponse, err error)
This endpoint returns ad schedule related information, including snooze, when the last ad was run, when the next ad is scheduled, and if the channel is currently in pre-roll free time. Note that a new ad cannot be run until 8 minutes after running a previous ad.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:ads** scope. The `user_id` in the user access token must match the `broadcaster_id`.
func (*ClientWithResponses) GetAllStreamTagsWithResponse ¶
func (c *ClientWithResponses) GetAllStreamTagsWithResponse(ctx context.Context, params *GetAllStreamTagsParams, reqEditors ...RequestEditorFn) (r *GetAllStreamTagsHTTPResponse, err error)
**IMPORTANT** Twitch is moving from Twitch-defined tags to channel-defined tags. **IMPORTANT** As of February 28, 2023, this endpoint returns an empty array. On July 13, 2023, it will return a 410 response.
Gets a list of all stream tags that Twitch defines. The broadcaster may apply any of these to their channel except automatic tags. For an online list of the possible tags, see [List of All Tags](https://www.twitch.tv/directory/all/tags).
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetAutomodSettingsWithResponse ¶
func (c *ClientWithResponses) GetAutomodSettingsWithResponse(ctx context.Context, params *GetAutomodSettingsParams, reqEditors ...RequestEditorFn) (r *GetAutomodSettingsHTTPResponse, err error)
Gets the broadcaster’s AutoMod settings. The settings are used to automatically block inappropriate or harassing messages from appearing in the broadcaster’s chat room.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:read:automod\_settings** scope.
func (*ClientWithResponses) GetBannedUsersWithResponse ¶
func (c *ClientWithResponses) GetBannedUsersWithResponse(ctx context.Context, params *GetBannedUsersParams, reqEditors ...RequestEditorFn) (r *GetBannedUsersHTTPResponse, err error)
Gets all users that the broadcaster banned or put in a timeout.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderation:read** or **moderator:manage:banned\_users** scope.
func (*ClientWithResponses) GetBitsLeaderboardWithResponse ¶
func (c *ClientWithResponses) GetBitsLeaderboardWithResponse(ctx context.Context, params *GetBitsLeaderboardParams, reqEditors ...RequestEditorFn) (r *GetBitsLeaderboardHTTPResponse, err error)
Gets the Bits leaderboard for the authenticated broadcaster.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **bits:read** scope.
func (*ClientWithResponses) GetBlockedTermsWithResponse ¶
func (c *ClientWithResponses) GetBlockedTermsWithResponse(ctx context.Context, params *GetBlockedTermsParams, reqEditors ...RequestEditorFn) (r *GetBlockedTermsHTTPResponse, err error)
Gets the broadcaster’s list of non-private, blocked words or phrases. These are the terms that the broadcaster or moderator added manually or that were denied by AutoMod.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:read:blocked\_terms** or **moderator:manage:blocked\_terms** scope.
func (*ClientWithResponses) GetBroadcasterSubscriptionsWithResponse ¶
func (c *ClientWithResponses) GetBroadcasterSubscriptionsWithResponse(ctx context.Context, params *GetBroadcasterSubscriptionsParams, reqEditors ...RequestEditorFn) (r *GetBroadcasterSubscriptionsHTTPResponse, err error)
Gets a list of users that subscribe to the specified broadcaster.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:subscriptions** scope.
A Twitch extensions may use an app access token if the broadcaster has granted the **channel:read:subscriptions** scope from within the Twitch Extensions manager.
func (*ClientWithResponses) GetChannelChatBadgesWithResponse ¶
func (c *ClientWithResponses) GetChannelChatBadgesWithResponse(ctx context.Context, params *GetChannelChatBadgesParams, reqEditors ...RequestEditorFn) (r *GetChannelChatBadgesHTTPResponse, err error)
Gets the broadcaster’s list of custom chat badges. The list is empty if the broadcaster hasn’t created custom chat badges. For information about custom badges, see [subscriber badges](https://help.twitch.tv/s/article/subscriber-badge-guide) and [Bits badges](https://help.twitch.tv/s/article/custom-bit-badges-guide).
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetChannelEditorsWithResponse ¶
func (c *ClientWithResponses) GetChannelEditorsWithResponse(ctx context.Context, params *GetChannelEditorsParams, reqEditors ...RequestEditorFn) (r *GetChannelEditorsHTTPResponse, err error)
Gets the broadcaster’s list editors.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:editors** scope.
func (*ClientWithResponses) GetChannelEmotesWithResponse ¶
func (c *ClientWithResponses) GetChannelEmotesWithResponse(ctx context.Context, params *GetChannelEmotesParams, reqEditors ...RequestEditorFn) (r *GetChannelEmotesHTTPResponse, err error)
Gets the broadcaster’s list of custom emotes. Broadcasters create these custom emotes for users who subscribe to or follow the channel or cheer Bits in the channel’s chat window. [Learn More](https://dev.twitch.tv/docs/irc/emotes)
For information about the custom emotes, see [subscriber emotes](https://help.twitch.tv/s/article/subscriber-emote-guide), [Bits tier emotes](https://help.twitch.tv/s/article/custom-bit-badges-guide?language=bg#slots), and [follower emotes](https://blog.twitch.tv/en/2021/06/04/kicking-off-10-years-with-our-biggest-emote-update-ever/).
**NOTE:** With the exception of custom follower emotes, users may use custom emotes in any Twitch chat.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetChannelFollowersWithResponse ¶
func (c *ClientWithResponses) GetChannelFollowersWithResponse(ctx context.Context, params *GetChannelFollowersParams, reqEditors ...RequestEditorFn) (r *GetChannelFollowersHTTPResponse, err error)
Gets a list of users that follow the specified broadcaster. You can also use this endpoint to see whether a specific user follows the broadcaster.
__Authorization:__
* Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:read:followers** scope. * The ID in the broadcaster\_id query parameter must match the user ID in the access token or the user ID in the access token must be a moderator for the specified broadcaster.
This endpoint will return specific follower information only if both of the above are true. If a scope is not provided or the user isn’t the broadcaster or a moderator for the specified channel, only the total follower count will be included in the response.
func (*ClientWithResponses) GetChannelGuestStarSettingsWithResponse ¶
func (c *ClientWithResponses) GetChannelGuestStarSettingsWithResponse(ctx context.Context, params *GetChannelGuestStarSettingsParams, reqEditors ...RequestEditorFn) (r *GetChannelGuestStarSettingsHTTPResponse, err error)
BETA Gets the channel settings for configuration of the Guest Star feature for a particular host.
__Authorization:__
* Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:read:guest_star`, `channel:manage:guest_star`, `moderator:read:guest_star` or `moderator:manage:guest_star`
func (*ClientWithResponses) GetChannelIcalendarWithResponse ¶
func (c *ClientWithResponses) GetChannelIcalendarWithResponse(ctx context.Context, params *GetChannelIcalendarParams, reqEditors ...RequestEditorFn) (r *GetChannelIcalendarHTTPResponse, err error)
Gets the broadcaster’s streaming schedule as an [iCalendar](https://datatracker.ietf.org/doc/html/rfc5545).
__Authorization:__
The Client-Id and Authorization headers are not required.
__Response Body:__
The response body contains the iCalendar data (see [RFC5545](https://datatracker.ietf.org/doc/html/rfc5545)).
The Content-Type response header is set to `text/calendar`.
func (*ClientWithResponses) GetChannelInformationWithResponse ¶
func (c *ClientWithResponses) GetChannelInformationWithResponse(ctx context.Context, params *GetChannelInformationParams, reqEditors ...RequestEditorFn) (r *GetChannelInformationHTTPResponse, err error)
Gets information about one or more channels.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetChannelStreamScheduleWithResponse ¶
func (c *ClientWithResponses) GetChannelStreamScheduleWithResponse(ctx context.Context, params *GetChannelStreamScheduleParams, reqEditors ...RequestEditorFn) (r *GetChannelStreamScheduleHTTPResponse, err error)
Gets the broadcaster’s streaming schedule. You can get the entire schedule or specific segments of the schedule. [Learn More](https://help.twitch.tv/s/article/channel-page-setup#Schedule)
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetChannelTeamsWithResponse ¶
func (c *ClientWithResponses) GetChannelTeamsWithResponse(ctx context.Context, params *GetChannelTeamsParams, reqEditors ...RequestEditorFn) (r *GetChannelTeamsHTTPResponse, err error)
Gets the list of Twitch teams that the broadcaster is a member of.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetCharityCampaignDonationsWithResponse ¶
func (c *ClientWithResponses) GetCharityCampaignDonationsWithResponse(ctx context.Context, params *GetCharityCampaignDonationsParams, reqEditors ...RequestEditorFn) (r *GetCharityCampaignDonationsHTTPResponse, err error)
Gets the list of donations that users have made to the broadcaster’s active charity campaign.
To receive events as donations occur, subscribe to the [channel.charity\_campaign.donate](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelcharity%5Fcampaigndonate) subscription type.
__Authorization:__
Requires a user access token that includes the **channel:read:charity** scope.
func (*ClientWithResponses) GetCharityCampaignWithResponse ¶
func (c *ClientWithResponses) GetCharityCampaignWithResponse(ctx context.Context, params *GetCharityCampaignParams, reqEditors ...RequestEditorFn) (r *GetCharityCampaignHTTPResponse, err error)
Gets information about the charity campaign that a broadcaster is running. For example, the campaign’s fundraising goal and the current amount of donations.
To receive events when progress is made towards the campaign’s goal or the broadcaster changes the fundraising goal, subscribe to the [channel.charity\_campaign.progress](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelcharity%5Fcampaignprogress) subscription type.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:charity** scope.
func (*ClientWithResponses) GetChatSettingsWithResponse ¶
func (c *ClientWithResponses) GetChatSettingsWithResponse(ctx context.Context, params *GetChatSettingsParams, reqEditors ...RequestEditorFn) (r *GetChatSettingsHTTPResponse, err error)
Gets the broadcaster’s chat settings.
For an overview of chat settings, see [Chat Commands for Broadcasters and Moderators](https://help.twitch.tv/s/article/chat-commands#AllMods) and [Moderator Preferences](https://help.twitch.tv/s/article/setting-up-moderation-for-your-twitch-channel#modpreferences).
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetChattersWithResponse ¶
func (c *ClientWithResponses) GetChattersWithResponse(ctx context.Context, params *GetChattersParams, reqEditors ...RequestEditorFn) (r *GetChattersHTTPResponse, err error)
Gets the list of users that are connected to the broadcaster’s chat session.
**NOTE**: There is a delay between when users join and leave a chat and when the list is updated accordingly.
To determine whether a user is a moderator or VIP, use the [Get Moderators](https://dev.twitch.tv/docs/api/reference#get-moderators) and [Get VIPs](https://dev.twitch.tv/docs/api/reference#get-vips) endpoints. You can check the roles of up to 100 users.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:read:chatters** scope.
func (*ClientWithResponses) GetCheermotesWithResponse ¶
func (c *ClientWithResponses) GetCheermotesWithResponse(ctx context.Context, params *GetCheermotesParams, reqEditors ...RequestEditorFn) (r *GetCheermotesHTTPResponse, err error)
Gets a list of Cheermotes that users can use to cheer Bits in any Bits-enabled channel’s chat room. Cheermotes are animated emotes that viewers can assign Bits to.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetClipsWithResponse ¶
func (c *ClientWithResponses) GetClipsWithResponse(ctx context.Context, params *GetClipsParams, reqEditors ...RequestEditorFn) (r *GetClipsHTTPResponse, err error)
Gets one or more video clips that were captured from streams. For information about clips, see [How to use clips](https://help.twitch.tv/s/article/how-to-use-clips).
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
__Request Query Parameters:__
The _id_, _game\_id_, and _broadcaster\_id_ query parameters are mutually exclusive.
func (*ClientWithResponses) GetConduitShardsWithResponse ¶
func (c *ClientWithResponses) GetConduitShardsWithResponse(ctx context.Context, params *GetConduitShardsParams, reqEditors ...RequestEditorFn) (r *GetConduitShardsHTTPResponse, err error)
NEW Gets a lists of all shards for a [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/).
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens).
func (*ClientWithResponses) GetConduitsWithResponse ¶
func (c *ClientWithResponses) GetConduitsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (r *GetConduitsHTTPResponse, err error)
NEW Gets the [conduits](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) for a client ID.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens).
func (*ClientWithResponses) GetContentClassificationLabelsWithResponse ¶
func (c *ClientWithResponses) GetContentClassificationLabelsWithResponse(ctx context.Context, params *GetContentClassificationLabelsParams, reqEditors ...RequestEditorFn) (r *GetContentClassificationLabelsHTTPResponse, err error)
Gets information about Twitch content classification labels.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetCreatorGoalsWithResponse ¶
func (c *ClientWithResponses) GetCreatorGoalsWithResponse(ctx context.Context, params *GetCreatorGoalsParams, reqEditors ...RequestEditorFn) (r *GetCreatorGoalsHTTPResponse, err error)
Gets the broadcaster’s list of active goals. Use this endpoint to get the current progress of each goal.
Instead of polling for the progress of a goal, consider [subscribing](https://dev.twitch.tv/docs/eventsub/manage-subscriptions) to receive notifications when a goal makes progress using the [channel.goal.progress](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelgoalprogress) subscription type. [Read More](https://dev.twitch.tv/docs/api/goals#requesting-event-notifications)
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:goals** scope.
func (*ClientWithResponses) GetCustomRewardRedemptionWithResponse ¶
func (c *ClientWithResponses) GetCustomRewardRedemptionWithResponse(ctx context.Context, params *GetCustomRewardRedemptionParams, reqEditors ...RequestEditorFn) (r *GetCustomRewardRedemptionHTTPResponse, err error)
Gets a list of redemptions for the specified custom reward. The app used to create the reward is the only app that may get the redemptions.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:redemptions** or **channel:manage:redemptions** scope.
func (*ClientWithResponses) GetCustomRewardWithResponse ¶
func (c *ClientWithResponses) GetCustomRewardWithResponse(ctx context.Context, params *GetCustomRewardParams, reqEditors ...RequestEditorFn) (r *GetCustomRewardHTTPResponse, err error)
Gets a list of custom rewards that the specified broadcaster created.
**NOTE**: A channel may offer a maximum of 50 rewards, which includes both enabled and disabled rewards.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:redemptions** or **channel:manage:redemptions** scope.
func (*ClientWithResponses) GetDropsEntitlementsWithResponse ¶
func (c *ClientWithResponses) GetDropsEntitlementsWithResponse(ctx context.Context, params *GetDropsEntitlementsParams, reqEditors ...RequestEditorFn) (r *GetDropsEntitlementsHTTPResponse, err error)
Gets an organization’s list of entitlements that have been granted to a game, a user, or both.
**NOTE:** Entitlements returned in the response body data are not guaranteed to be sorted by any field returned by the API. To retrieve **CLAIMED** or **FULFILLED** entitlements, use the `fulfillment_status` query parameter to filter results. To retrieve entitlements for a specific game, use the `game_id` query parameter to filter results.
The following table identifies the request parameters that you may specify based on the type of access token used.
| Access token type | Parameter | Description | | - | - | - | | App | None | If you don’t specify request parameters, the request returns all entitlements that your organization owns. | | App | user_id | The request returns all entitlements for any game that the organization granted to the specified user. | | App | user_id, game_id | The request returns all entitlements that the specified game granted to the specified user. | | App | game_id | The request returns all entitlements that the specified game granted to all entitled users. | | User | None | If you don’t specify request parameters, the request returns all entitlements for any game that the organization granted to the user identified in the access token. | | User | user_id | Invalid. | | User | user_id, game_id | Invalid. | | User | game_id | The request returns all entitlements that the specified game granted to the user identified in the access token. |
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). The client ID in the access token must own the game.
func (*ClientWithResponses) GetEmoteSetsWithResponse ¶
func (c *ClientWithResponses) GetEmoteSetsWithResponse(ctx context.Context, params *GetEmoteSetsParams, reqEditors ...RequestEditorFn) (r *GetEmoteSetsHTTPResponse, err error)
Gets emotes for one or more specified emote sets.
An emote set groups emotes that have a similar context. For example, Twitch places all the subscriber emotes that a broadcaster uploads for their channel in the same emote set.
[Learn More](https://dev.twitch.tv/docs/irc/emotes)
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetEventsubSubscriptionsWithResponse ¶
func (c *ClientWithResponses) GetEventsubSubscriptionsWithResponse(ctx context.Context, params *GetEventsubSubscriptionsParams, reqEditors ...RequestEditorFn) (r *GetEventsubSubscriptionsHTTPResponse, err error)
Gets a list of EventSub subscriptions that the client in the access token created.
__Authorization:__
If you use [Webhooks](https://dev.twitch.tv/docs/eventsub/handling-webhook-events) or [Conduits](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) to receive events, the request must specify an app access token. The request will fail if you use a user access token.
If you use [WebSockets to receive events](https://dev.twitch.tv/docs/eventsub/handling-websocket-events), the request must specify a user access token. The request will fail if you use an app access token. The token may include any scopes.
__Request Query Parameters:__
Use the _status_, _type_, and _user\_id_ query parameters to filter the list of subscriptions that are returned. The filters are mutually exclusive; the request fails if you specify more than one filter.
func (*ClientWithResponses) GetExtensionAnalyticsWithResponse ¶
func (c *ClientWithResponses) GetExtensionAnalyticsWithResponse(ctx context.Context, params *GetExtensionAnalyticsParams, reqEditors ...RequestEditorFn) (r *GetExtensionAnalyticsHTTPResponse, err error)
Gets an analytics report for one or more extensions. The response contains the URLs used to download the reports (CSV files). [Learn More](https://dev.twitch.tv/docs/insights)
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **analytics:read:extensions** scope.
func (*ClientWithResponses) GetExtensionBitsProductsWithResponse ¶
func (c *ClientWithResponses) GetExtensionBitsProductsWithResponse(ctx context.Context, params *GetExtensionBitsProductsParams, reqEditors ...RequestEditorFn) (r *GetExtensionBitsProductsHTTPResponse, err error)
Gets the list of Bits products that belongs to the extension. The client ID in the app access token identifies the extension.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). The client ID in the app access token must be the extension’s client ID.
func (*ClientWithResponses) GetExtensionConfigurationSegmentWithResponse ¶
func (c *ClientWithResponses) GetExtensionConfigurationSegmentWithResponse(ctx context.Context, params *GetExtensionConfigurationSegmentParams, reqEditors ...RequestEditorFn) (r *GetExtensionConfigurationSegmentHTTPResponse, err error)
Gets the specified configuration segment from the specified extension.
**Rate Limits**: You may retrieve each segment a maximum of 20 times per minute.
__Authorization:__
Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_.
func (*ClientWithResponses) GetExtensionLiveChannelsWithResponse ¶
func (c *ClientWithResponses) GetExtensionLiveChannelsWithResponse(ctx context.Context, params *GetExtensionLiveChannelsParams, reqEditors ...RequestEditorFn) (r *GetExtensionLiveChannelsHTTPResponse, err error)
Gets a list of broadcasters that are streaming live and have installed or activated the extension.
It may take a few minutes for the list to include or remove broadcasters that have recently gone live or stopped broadcasting.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetExtensionSecretsWithResponse ¶
func (c *ClientWithResponses) GetExtensionSecretsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (r *GetExtensionSecretsHTTPResponse, err error)
Gets an extension’s list of shared secrets.
__Authorization:__
Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_.
func (*ClientWithResponses) GetExtensionTransactionsWithResponse ¶
func (c *ClientWithResponses) GetExtensionTransactionsWithResponse(ctx context.Context, params *GetExtensionTransactionsParams, reqEditors ...RequestEditorFn) (r *GetExtensionTransactionsHTTPResponse, err error)
Gets an extension’s list of transactions. A transaction records the exchange of a currency (for example, Bits) for a digital product.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens).
func (*ClientWithResponses) GetExtensionsWithResponse ¶
func (c *ClientWithResponses) GetExtensionsWithResponse(ctx context.Context, params *GetExtensionsParams, reqEditors ...RequestEditorFn) (r *GetExtensionsHTTPResponse, err error)
Gets information about an extension.
__Authorization:__
Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role` field (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)), and the `role` field must be set to _external_.
func (*ClientWithResponses) GetFollowedChannelsWithResponse ¶
func (c *ClientWithResponses) GetFollowedChannelsWithResponse(ctx context.Context, params *GetFollowedChannelsParams, reqEditors ...RequestEditorFn) (r *GetFollowedChannelsHTTPResponse, err error)
Gets a list of broadcasters that the specified user follows. You can also use this endpoint to see whether a user follows a specific broadcaster.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:follows** scope.
func (*ClientWithResponses) GetFollowedStreamsWithResponse ¶
func (c *ClientWithResponses) GetFollowedStreamsWithResponse(ctx context.Context, params *GetFollowedStreamsParams, reqEditors ...RequestEditorFn) (r *GetFollowedStreamsHTTPResponse, err error)
Gets the list of broadcasters that the user follows and that are streaming live.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:follows** scope.
func (*ClientWithResponses) GetGameAnalyticsWithResponse ¶
func (c *ClientWithResponses) GetGameAnalyticsWithResponse(ctx context.Context, params *GetGameAnalyticsParams, reqEditors ...RequestEditorFn) (r *GetGameAnalyticsHTTPResponse, err error)
Gets an analytics report for one or more games. The response contains the URLs used to download the reports (CSV files). [Learn more](https://dev.twitch.tv/docs/insights)
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **analytics:read:games** scope.
func (*ClientWithResponses) GetGamesWithResponse ¶
func (c *ClientWithResponses) GetGamesWithResponse(ctx context.Context, params *GetGamesParams, reqEditors ...RequestEditorFn) (r *GetGamesHTTPResponse, err error)
Gets information about specified categories or games.
You may get up to 100 categories or games by specifying their ID or name. You may specify all IDs, all names, or a combination of IDs and names. If you specify a combination of IDs and names, the total number of IDs and names must not exceed 100.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetGlobalChatBadgesWithResponse ¶
func (c *ClientWithResponses) GetGlobalChatBadgesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (r *GetGlobalChatBadgesHTTPResponse, err error)
Gets Twitch’s list of chat badges, which users may use in any channel’s chat room. For information about chat badges, see [Twitch Chat Badges Guide](https://help.twitch.tv/s/article/twitch-chat-badges-guide).
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
__Request Query Parameters:__
None
func (*ClientWithResponses) GetGlobalEmotesWithResponse ¶
func (c *ClientWithResponses) GetGlobalEmotesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (r *GetGlobalEmotesHTTPResponse, err error)
Gets the list of [global emotes](https://www.twitch.tv/creatorcamp/en/learn-the-basics/emotes/). Global emotes are Twitch-created emotes that users can use in any Twitch chat.
[Learn More](https://dev.twitch.tv/docs/irc/emotes)
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
__Request Query Parameters:__
None
func (*ClientWithResponses) GetGuestStarInvitesWithResponse ¶
func (c *ClientWithResponses) GetGuestStarInvitesWithResponse(ctx context.Context, params *GetGuestStarInvitesParams, reqEditors ...RequestEditorFn) (r *GetGuestStarInvitesHTTPResponse, err error)
BETA Provides the caller with a list of pending invites to a Guest Star session, including the invitee’s ready status while joining the waiting room.
__Authorization:__
* Query parameter `broadcaster_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:read:guest_star`, `channel:manage:guest_star`, `moderator:read:guest_star` or `moderator:manage:guest_star`
func (*ClientWithResponses) GetGuestStarSessionWithResponse ¶
func (c *ClientWithResponses) GetGuestStarSessionWithResponse(ctx context.Context, params *GetGuestStarSessionParams, reqEditors ...RequestEditorFn) (r *GetGuestStarSessionHTTPResponse, err error)
BETA Gets information about an ongoing Guest Star session for a particular channel.
__Authorization:__
* Requires OAuth Scope: `channel:read:guest_star`, `channel:manage:guest_star`, `moderator:read:guest_star` or `moderator:manage:guest_star` * Guests must be either invited or assigned a slot within the session
func (*ClientWithResponses) GetHypeTrainEventsWithResponse ¶
func (c *ClientWithResponses) GetHypeTrainEventsWithResponse(ctx context.Context, params *GetHypeTrainEventsParams, reqEditors ...RequestEditorFn) (r *GetHypeTrainEventsHTTPResponse, err error)
Gets information about the broadcaster’s current or most recent Hype Train event.
Instead of polling for events, consider [subscribing](https://dev.twitch.tv/docs/eventsub/manage-subscriptions) to Hype Train events ([Begin](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelhype%5Ftrainbegin), [Progress](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelhype%5Ftrainprogress), [End](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelhype%5Ftrainend)).
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:hype\_train** scope.
func (*ClientWithResponses) GetModeratedChannelsWithResponse ¶
func (c *ClientWithResponses) GetModeratedChannelsWithResponse(ctx context.Context, params *GetModeratedChannelsParams, reqEditors ...RequestEditorFn) (r *GetModeratedChannelsHTTPResponse, err error)
Gets a list of channels that the specified user has moderator privileges in.
__Authorization:__
* Query parameter `user_id` must match the user ID in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `user:read:moderated_channels`
func (*ClientWithResponses) GetModeratorsWithResponse ¶
func (c *ClientWithResponses) GetModeratorsWithResponse(ctx context.Context, params *GetModeratorsParams, reqEditors ...RequestEditorFn) (r *GetModeratorsHTTPResponse, err error)
Gets all users allowed to moderate the broadcaster’s chat room.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderation:read** scope. If your app also adds and removes moderators, you can use the **channel:manage:moderators** scope instead.
func (*ClientWithResponses) GetPollsWithResponse ¶
func (c *ClientWithResponses) GetPollsWithResponse(ctx context.Context, params *GetPollsParams, reqEditors ...RequestEditorFn) (r *GetPollsHTTPResponse, err error)
Gets a list of polls that the broadcaster created.
Polls are available for 90 days after they’re created.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:polls** or **channel:manage:polls** scope.
func (*ClientWithResponses) GetPredictionsWithResponse ¶
func (c *ClientWithResponses) GetPredictionsWithResponse(ctx context.Context, params *GetPredictionsParams, reqEditors ...RequestEditorFn) (r *GetPredictionsHTTPResponse, err error)
Gets a list of Channel Points Predictions that the broadcaster created.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:predictions** or **channel:manage:predictions** scope.
func (*ClientWithResponses) GetReleasedExtensionsWithResponse ¶
func (c *ClientWithResponses) GetReleasedExtensionsWithResponse(ctx context.Context, params *GetReleasedExtensionsParams, reqEditors ...RequestEditorFn) (r *GetReleasedExtensionsHTTPResponse, err error)
Gets information about a released extension. Returns the extension if its `state` is Released.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetSharedChatSessionWithResponse ¶
func (c *ClientWithResponses) GetSharedChatSessionWithResponse(ctx context.Context, params *GetSharedChatSessionParams, reqEditors ...RequestEditorFn) (r *GetSharedChatSessionHTTPResponse, err error)
NEW Retrieves the active shared chat session for a channel.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/cli/token-command/#app-access-token) or [user access token](https://dev.twitch.tv/docs/authentication/#user-access-tokens).
func (*ClientWithResponses) GetShieldModeStatusWithResponse ¶
func (c *ClientWithResponses) GetShieldModeStatusWithResponse(ctx context.Context, params *GetShieldModeStatusParams, reqEditors ...RequestEditorFn) (r *GetShieldModeStatusHTTPResponse, err error)
Gets the broadcaster’s Shield Mode activation status.
To receive notification when the broadcaster activates and deactivates Shield Mode, subscribe to the [channel.shield\_mode.begin](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelshield%5Fmodebegin) and [channel.shield\_mode.end](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelshield%5Fmodeend) subscription types.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:read:shield\_mode** or **moderator:manage:shield\_mode** scope.
func (*ClientWithResponses) GetStreamKeyWithResponse ¶
func (c *ClientWithResponses) GetStreamKeyWithResponse(ctx context.Context, params *GetStreamKeyParams, reqEditors ...RequestEditorFn) (r *GetStreamKeyHTTPResponse, err error)
Gets the channel’s stream key.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:stream\_key** scope.
func (*ClientWithResponses) GetStreamMarkersWithResponse ¶
func (c *ClientWithResponses) GetStreamMarkersWithResponse(ctx context.Context, params *GetStreamMarkersParams, reqEditors ...RequestEditorFn) (r *GetStreamMarkersHTTPResponse, err error)
Gets a list of markers from the user’s most recent stream or from the specified VOD/video. A marker is an arbitrary point in a live stream that the broadcaster or editor marked, so they can return to that spot later to create video highlights (see Video Producer, Highlights in the Twitch UX).
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:broadcast** or **channel:manage:broadcast** scope.
func (*ClientWithResponses) GetStreamTagsWithResponse ¶
func (c *ClientWithResponses) GetStreamTagsWithResponse(ctx context.Context, params *GetStreamTagsParams, reqEditors ...RequestEditorFn) (r *GetStreamTagsHTTPResponse, err error)
**IMPORTANT** Twitch is moving from Twitch-defined tags to channel-defined tags. **IMPORTANT** As of February 28, 2023, this endpoint returns an empty array. On July 13, 2023, it will return a 410 response. If you use this endpoint, please update your code to use [Get Channel Information](https://dev.twitch.tv/docs/api/reference#get-channel-information).
Gets the list of stream tags that the broadcaster or Twitch added to their channel.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetStreamsWithResponse ¶
func (c *ClientWithResponses) GetStreamsWithResponse(ctx context.Context, params *GetStreamsParams, reqEditors ...RequestEditorFn) (r *GetStreamsHTTPResponse, err error)
Gets a list of all streams. The list is in descending order by the number of viewers watching the stream. Because viewers come and go during a stream, it’s possible to find duplicate or missing streams in the list as you page through the results.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetTeamsWithResponse ¶
func (c *ClientWithResponses) GetTeamsWithResponse(ctx context.Context, params *GetTeamsParams, reqEditors ...RequestEditorFn) (r *GetTeamsHTTPResponse, err error)
Gets information about the specified Twitch team. [Read More](https://help.twitch.tv/s/article/twitch-teams)
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetTopGamesWithResponse ¶
func (c *ClientWithResponses) GetTopGamesWithResponse(ctx context.Context, params *GetTopGamesParams, reqEditors ...RequestEditorFn) (r *GetTopGamesHTTPResponse, err error)
Gets information about all broadcasts on Twitch.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetUnbanRequestsWithResponse ¶
func (c *ClientWithResponses) GetUnbanRequestsWithResponse(ctx context.Context, params *GetUnbanRequestsParams, reqEditors ...RequestEditorFn) (r *GetUnbanRequestsHTTPResponse, err error)
NEW Gets a list of unban requests for a broadcaster’s channel.
__Authorization:__
* Requires a user access token that includes the **moderator:read:unban\_requests** or **moderator:manage:unban\_requests** scope. * Query parameter `moderator_id` must match the `user_id` in the [user access token](https://dev.twitch.tv/docs/authentication/#user-access-tokens).
func (*ClientWithResponses) GetUserActiveExtensionsWithResponse ¶
func (c *ClientWithResponses) GetUserActiveExtensionsWithResponse(ctx context.Context, params *GetUserActiveExtensionsParams, reqEditors ...RequestEditorFn) (r *GetUserActiveExtensionsHTTPResponse, err error)
Gets the active extensions that the broadcaster has installed for each configuration.
NOTE: To include extensions that you have under development, you must specify a user access token that includes the **user:read:broadcast** or **user:edit:broadcast** scope.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetUserBlockListWithResponse ¶
func (c *ClientWithResponses) GetUserBlockListWithResponse(ctx context.Context, params *GetUserBlockListParams, reqEditors ...RequestEditorFn) (r *GetUserBlockListHTTPResponse, err error)
Gets the list of users that the broadcaster has blocked. [Read More](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat?language=en%5FUS#BlockWhispersandMessagesfromStrangers)
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:blocked\_users** scope.
func (*ClientWithResponses) GetUserChatColorWithResponse ¶
func (c *ClientWithResponses) GetUserChatColorWithResponse(ctx context.Context, params *GetUserChatColorParams, reqEditors ...RequestEditorFn) (r *GetUserChatColorHTTPResponse, err error)
Gets the color used for the user’s name in chat.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetUserEmotesWithResponse ¶
func (c *ClientWithResponses) GetUserEmotesWithResponse(ctx context.Context, params *GetUserEmotesParams, reqEditors ...RequestEditorFn) (r *GetUserEmotesHTTPResponse, err error)
NEW Retrieves emotes available to the user across all channels.
__Authorization:__
* Requires a user access token that includes the **user:read:emotes** scope. * Query parameter `user_id` must match the `user_id` in the user access token.
func (*ClientWithResponses) GetUserExtensionsWithResponse ¶
func (c *ClientWithResponses) GetUserExtensionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (r *GetUserExtensionsHTTPResponse, err error)
Gets a list of all extensions (both active and inactive) that the broadcaster has installed. The user ID in the access token identifies the broadcaster.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:broadcast** or **user:edit:broadcast** scope. To include inactive extensions, you must include the **user:edit:broadcast** scope.
func (*ClientWithResponses) GetUsersWithResponse ¶
func (c *ClientWithResponses) GetUsersWithResponse(ctx context.Context, params *GetUsersParams, reqEditors ...RequestEditorFn) (r *GetUsersHTTPResponse, err error)
Gets information about one or more users.
You may look up users using their user ID, login name, or both but the sum total of the number of users you may look up is 100\. For example, you may specify 50 IDs and 50 names or 100 IDs or names, but you cannot specify 100 IDs and 100 names.
If you don’t specify IDs or login names, the request returns information about the user in the access token if you specify a user access token.
To include the user’s verified email address in the response, you must use a user access token that includes the **user:read:email** scope.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetVideosWithResponse ¶
func (c *ClientWithResponses) GetVideosWithResponse(ctx context.Context, params *GetVideosParams, reqEditors ...RequestEditorFn) (r *GetVideosHTTPResponse, err error)
Gets information about one or more published videos. You may get videos by ID, by user, or by game/category.
You may apply several filters to get a subset of the videos. The filters are applied as an AND operation to each video. For example, if _language_ is set to ‘de’ and _game\_id_ is set to 21779, the response includes only videos that show playing League of Legends by users that stream in German. The filters apply only if you get videos by user ID or game ID.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) GetVipsWithResponse ¶
func (c *ClientWithResponses) GetVipsWithResponse(ctx context.Context, params *GetVipsParams, reqEditors ...RequestEditorFn) (r *GetVipsHTTPResponse, err error)
Gets a list of the broadcaster’s VIPs.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:vips** scope. If your app also adds and removes VIP status, you can use the **channel:manage:vips** scope instead.
func (*ClientWithResponses) ManageHeldAutomodMessagesWithBodyWithResponse ¶
func (c *ClientWithResponses) ManageHeldAutomodMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *ManageHeldAutomodMessagesHTTPResponse, err error)
Allow or deny the message that AutoMod flagged for review. For information about AutoMod, see [How to Use AutoMod](https://help.twitch.tv/s/article/how-to-use-automod).
To get messages that AutoMod is holding for review, subscribe to the **automod-queue.<moderator\_id>.<channel\_id>** [topic](https://dev.twitch.tv/docs/pubsub#topics) using [PubSub](https://dev.twitch.tv/docs/pubsub). PubSub sends a notification to your app when AutoMod holds a message for review.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:automod** scope.
func (*ClientWithResponses) ManageHeldAutomodMessagesWithResponse ¶
func (c *ClientWithResponses) ManageHeldAutomodMessagesWithResponse(ctx context.Context, body ManageHeldAutomodMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (r *ManageHeldAutomodMessagesHTTPResponse, err error)
Allow or deny the message that AutoMod flagged for review. For information about AutoMod, see [How to Use AutoMod](https://help.twitch.tv/s/article/how-to-use-automod).
To get messages that AutoMod is holding for review, subscribe to the **automod-queue.<moderator\_id>.<channel\_id>** [topic](https://dev.twitch.tv/docs/pubsub#topics) using [PubSub](https://dev.twitch.tv/docs/pubsub). PubSub sends a notification to your app when AutoMod holds a message for review.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:automod** scope.
func (*ClientWithResponses) ModifyChannelInformationWithBodyWithResponse ¶
func (c *ClientWithResponses) ModifyChannelInformationWithBodyWithResponse(ctx context.Context, params *ModifyChannelInformationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *ModifyChannelInformationHTTPResponse, err error)
Updates a channel’s properties.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:broadcast** scope.
__Request Body:__
All fields are optional, but you must specify at least one field.
func (*ClientWithResponses) ModifyChannelInformationWithResponse ¶
func (c *ClientWithResponses) ModifyChannelInformationWithResponse(ctx context.Context, params *ModifyChannelInformationParams, body ModifyChannelInformationJSONRequestBody, reqEditors ...RequestEditorFn) (r *ModifyChannelInformationHTTPResponse, err error)
Updates a channel’s properties.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:broadcast** scope.
__Request Body:__
All fields are optional, but you must specify at least one field.
func (*ClientWithResponses) RemoveBlockedTermWithResponse ¶
func (c *ClientWithResponses) RemoveBlockedTermWithResponse(ctx context.Context, params *RemoveBlockedTermParams, reqEditors ...RequestEditorFn) (r *RemoveBlockedTermHTTPResponse, err error)
Removes the word or phrase from the broadcaster’s list of blocked terms.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:blocked\_terms** scope.
func (*ClientWithResponses) RemoveChannelModeratorWithResponse ¶
func (c *ClientWithResponses) RemoveChannelModeratorWithResponse(ctx context.Context, params *RemoveChannelModeratorParams, reqEditors ...RequestEditorFn) (r *RemoveChannelModeratorHTTPResponse, err error)
Removes a moderator from the broadcaster’s chat room.
**Rate Limits**: The broadcaster may remove a maximum of 10 moderators within a 10-second window.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:moderators** scope.
func (*ClientWithResponses) RemoveChannelVipWithResponse ¶
func (c *ClientWithResponses) RemoveChannelVipWithResponse(ctx context.Context, params *RemoveChannelVipParams, reqEditors ...RequestEditorFn) (r *RemoveChannelVipHTTPResponse, err error)
Removes the specified user as a VIP in the broadcaster’s channel.
If the broadcaster is removing the user’s VIP status, the ID in the _broadcaster\_id_ query parameter must match the user ID in the access token; otherwise, if the user is removing their VIP status themselves, the ID in the _user\_id_ query parameter must match the user ID in the access token.
**Rate Limits**: The broadcaster may remove a maximum of 10 VIPs within a 10-second window.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:vips** scope.
func (*ClientWithResponses) ResolveUnbanRequestsWithResponse ¶
func (c *ClientWithResponses) ResolveUnbanRequestsWithResponse(ctx context.Context, params *ResolveUnbanRequestsParams, reqEditors ...RequestEditorFn) (r *ResolveUnbanRequestsHTTPResponse, err error)
NEW Resolves an unban request by approving or denying it.
__Authorization:__
* Requires a user access token that includes the **moderator:manage:unban\_requests** scope. * Query parameter `moderator_id` must match the `user_id` in the[user access token](https://dev.twitch.tv/docs/authentication/#user-access-tokens).
func (*ClientWithResponses) SearchCategoriesWithResponse ¶
func (c *ClientWithResponses) SearchCategoriesWithResponse(ctx context.Context, params *SearchCategoriesParams, reqEditors ...RequestEditorFn) (r *SearchCategoriesHTTPResponse, err error)
Gets the games or categories that match the specified query.
To match, the category’s name must contain all parts of the query string. For example, if the query string is 42, the response includes any category name that contains 42 in the title. If the query string is a phrase like _love computer_, the response includes any category name that contains the words love and computer anywhere in the name. The comparison is case insensitive.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) SearchChannelsWithResponse ¶
func (c *ClientWithResponses) SearchChannelsWithResponse(ctx context.Context, params *SearchChannelsParams, reqEditors ...RequestEditorFn) (r *SearchChannelsHTTPResponse, err error)
Gets the channels that match the specified query and have streamed content within the past 6 months.
The fields that the API uses for comparison depends on the value that the _live\_only_ query parameter is set to. If _live\_only_ is **false**, the API matches on the broadcaster’s login name. However, if _live\_only_ is **true**, the API matches on the broadcaster’s name and category name.
To match, the beginning of the broadcaster’s name or category must match the query string. The comparison is case insensitive. If the query string is angel\_of\_death, it matches all names that begin with angel\_of\_death. However, if the query string is a phrase like _angel of death_, it matches to names starting with angelofdeath or names starting with angel\_of\_death.
By default, the results include both live and offline channels. To get only live channels set the _live\_only_ query parameter to **true**.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens).
func (*ClientWithResponses) SendAShoutoutWithResponse ¶
func (c *ClientWithResponses) SendAShoutoutWithResponse(ctx context.Context, params *SendAShoutoutParams, reqEditors ...RequestEditorFn) (r *SendAShoutoutHTTPResponse, err error)
Sends a Shoutout to the specified broadcaster. Typically, you send Shoutouts when you or one of your moderators notice another broadcaster in your chat, the other broadcaster is coming up in conversation, or after they raid your broadcast.
Twitch’s Shoutout feature is a great way for you to show support for other broadcasters and help them grow. Viewers who do not follow the other broadcaster will see a pop-up Follow button in your chat that they can click to follow the other broadcaster. [Learn More](https://help.twitch.tv/s/article/shoutouts)
**Rate Limits** The broadcaster may send a Shoutout once every 2 minutes. They may send the same broadcaster a Shoutout once every 60 minutes.
To receive notifications when a Shoutout is sent or received, subscribe to the [channel.shoutout.create](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelshoutoutcreate) and [channel.shoutout.receive](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelshoutoutreceive) subscription types. The **channel.shoutout.create** event includes cooldown periods that indicate when the broadcaster may send another Shoutout without exceeding the endpoint’s rate limit.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:shoutouts** scope.
func (*ClientWithResponses) SendChatAnnouncementWithBodyWithResponse ¶
func (c *ClientWithResponses) SendChatAnnouncementWithBodyWithResponse(ctx context.Context, params *SendChatAnnouncementParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *SendChatAnnouncementHTTPResponse, err error)
Sends an announcement to the broadcaster’s chat room.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:announcements** scope.
func (*ClientWithResponses) SendChatAnnouncementWithResponse ¶
func (c *ClientWithResponses) SendChatAnnouncementWithResponse(ctx context.Context, params *SendChatAnnouncementParams, body SendChatAnnouncementJSONRequestBody, reqEditors ...RequestEditorFn) (r *SendChatAnnouncementHTTPResponse, err error)
Sends an announcement to the broadcaster’s chat room.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:announcements** scope.
func (*ClientWithResponses) SendChatMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) SendChatMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *SendChatMessageHTTPResponse, err error)
NEW Sends a message to the broadcaster’s chat room.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the `user:write:chat` scope. If app access token used, then additionally requires `user:bot` scope from chatting user, and either `channel:bot` scope from broadcaster or moderator status.
func (*ClientWithResponses) SendChatMessageWithResponse ¶
func (c *ClientWithResponses) SendChatMessageWithResponse(ctx context.Context, body SendChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (r *SendChatMessageHTTPResponse, err error)
NEW Sends a message to the broadcaster’s chat room.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the `user:write:chat` scope. If app access token used, then additionally requires `user:bot` scope from chatting user, and either `channel:bot` scope from broadcaster or moderator status.
func (*ClientWithResponses) SendExtensionChatMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) SendExtensionChatMessageWithBodyWithResponse(ctx context.Context, params *SendExtensionChatMessageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *SendExtensionChatMessageHTTPResponse, err error)
Sends a message to the specified broadcaster’s chat room. The extension’s name is used as the username for the message in the chat room. To send a chat message, your extension must enable **Chat Capabilities** (under your extension’s **Capabilities** tab).
**Rate Limits**: You may send a maximum of 12 messages per minute per channel.
__Authorization:__
Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role` and `user_id` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_.
func (*ClientWithResponses) SendExtensionChatMessageWithResponse ¶
func (c *ClientWithResponses) SendExtensionChatMessageWithResponse(ctx context.Context, params *SendExtensionChatMessageParams, body SendExtensionChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (r *SendExtensionChatMessageHTTPResponse, err error)
Sends a message to the specified broadcaster’s chat room. The extension’s name is used as the username for the message in the chat room. To send a chat message, your extension must enable **Chat Capabilities** (under your extension’s **Capabilities** tab).
**Rate Limits**: You may send a maximum of 12 messages per minute per channel.
__Authorization:__
Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role` and `user_id` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_.
func (*ClientWithResponses) SendExtensionPubsubMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) SendExtensionPubsubMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *SendExtensionPubsubMessageHTTPResponse, err error)
Sends a message to one or more viewers. You can send messages to a specific channel or to all channels where your extension is active. This endpoint uses the same mechanism as the [send](https://dev.twitch.tv/docs/extensions/reference#send) JavaScript helper function used to send messages.
**Rate Limits**: You may send a maximum of 100 messages per minute per combination of extension client ID and broadcaster ID.
__Authorization:__
Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)) along with the `channel_id` and `pubsub_perms` fields. The `role` field must be set to _external_.
To send the message to a specific channel, set the `channel_id` field in the JWT to the channel’s ID and set the `pubsub_perms.send` array to _broadcast_.
```
{ "exp": 1503343947, "user_id": "27419011", "role": "external", "channel_id": "27419011", "pubsub_perms": { "send":[ "broadcast" ] } }
```
To send the message to all channels on which your extension is active, set the `channel_id` field to _all_ and set the `pubsub_perms.send` array to _global_.
```
{ "exp": 1503343947, "user_id": "27419011", "role": "external", "channel_id": "all", "pubsub_perms": { "send":[ "global" ] } }
```
func (*ClientWithResponses) SendExtensionPubsubMessageWithResponse ¶
func (c *ClientWithResponses) SendExtensionPubsubMessageWithResponse(ctx context.Context, body SendExtensionPubsubMessageJSONRequestBody, reqEditors ...RequestEditorFn) (r *SendExtensionPubsubMessageHTTPResponse, err error)
Sends a message to one or more viewers. You can send messages to a specific channel or to all channels where your extension is active. This endpoint uses the same mechanism as the [send](https://dev.twitch.tv/docs/extensions/reference#send) JavaScript helper function used to send messages.
**Rate Limits**: You may send a maximum of 100 messages per minute per combination of extension client ID and broadcaster ID.
__Authorization:__
Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)) along with the `channel_id` and `pubsub_perms` fields. The `role` field must be set to _external_.
To send the message to a specific channel, set the `channel_id` field in the JWT to the channel’s ID and set the `pubsub_perms.send` array to _broadcast_.
```
{ "exp": 1503343947, "user_id": "27419011", "role": "external", "channel_id": "27419011", "pubsub_perms": { "send":[ "broadcast" ] } }
```
To send the message to all channels on which your extension is active, set the `channel_id` field to _all_ and set the `pubsub_perms.send` array to _global_.
```
{ "exp": 1503343947, "user_id": "27419011", "role": "external", "channel_id": "all", "pubsub_perms": { "send":[ "global" ] } }
```
func (*ClientWithResponses) SendGuestStarInviteWithResponse ¶
func (c *ClientWithResponses) SendGuestStarInviteWithResponse(ctx context.Context, params *SendGuestStarInviteParams, reqEditors ...RequestEditorFn) (r *SendGuestStarInviteHTTPResponse, err error)
BETA Sends an invite to a specified guest on behalf of the broadcaster for a Guest Star session in progress.
__Authorization:__
* Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star`
func (*ClientWithResponses) SendWhisperWithBodyWithResponse ¶
func (c *ClientWithResponses) SendWhisperWithBodyWithResponse(ctx context.Context, params *SendWhisperParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *SendWhisperHTTPResponse, err error)
Sends a whisper message to the specified user.
NOTE: The user sending the whisper must have a verified phone number (see the **Phone Number** setting in your [Security and Privacy](https://www.twitch.tv/settings/security) settings).
NOTE: The API may silently drop whispers that it suspects of violating Twitch policies. (The API does not indicate that it dropped the whisper; it returns a 204 status code as if it succeeded.)
**Rate Limits**: You may whisper to a maximum of 40 unique recipients per day. Within the per day limit, you may whisper a maximum of 3 whispers per second and a maximum of 100 whispers per minute.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:manage:whispers** scope.
func (*ClientWithResponses) SendWhisperWithResponse ¶
func (c *ClientWithResponses) SendWhisperWithResponse(ctx context.Context, params *SendWhisperParams, body SendWhisperJSONRequestBody, reqEditors ...RequestEditorFn) (r *SendWhisperHTTPResponse, err error)
Sends a whisper message to the specified user.
NOTE: The user sending the whisper must have a verified phone number (see the **Phone Number** setting in your [Security and Privacy](https://www.twitch.tv/settings/security) settings).
NOTE: The API may silently drop whispers that it suspects of violating Twitch policies. (The API does not indicate that it dropped the whisper; it returns a 204 status code as if it succeeded.)
**Rate Limits**: You may whisper to a maximum of 40 unique recipients per day. Within the per day limit, you may whisper a maximum of 3 whispers per second and a maximum of 100 whispers per minute.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:manage:whispers** scope.
func (*ClientWithResponses) SetExtensionConfigurationSegmentWithBodyWithResponse ¶
func (c *ClientWithResponses) SetExtensionConfigurationSegmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *SetExtensionConfigurationSegmentHTTPResponse, err error)
Updates a configuration segment. The segment is limited to 5 KB. Extensions that are active on a channel do not receive the updated configuration.
**Rate Limits**: You may update the configuration a maximum of 20 times per minute.
__Authorization:__
Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_.
func (*ClientWithResponses) SetExtensionConfigurationSegmentWithResponse ¶
func (c *ClientWithResponses) SetExtensionConfigurationSegmentWithResponse(ctx context.Context, body SetExtensionConfigurationSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (r *SetExtensionConfigurationSegmentHTTPResponse, err error)
Updates a configuration segment. The segment is limited to 5 KB. Extensions that are active on a channel do not receive the updated configuration.
**Rate Limits**: You may update the configuration a maximum of 20 times per minute.
__Authorization:__
Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_.
func (*ClientWithResponses) SetExtensionRequiredConfigurationWithBodyWithResponse ¶
func (c *ClientWithResponses) SetExtensionRequiredConfigurationWithBodyWithResponse(ctx context.Context, params *SetExtensionRequiredConfigurationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *SetExtensionRequiredConfigurationHTTPResponse, err error)
Updates the extension’s required\_configuration string. Use this endpoint if your extension requires the broadcaster to configure the extension before activating it (to require configuration, you must select **Custom/My Own Service** in Extension [Capabilities](https://dev.twitch.tv/docs/extensions/life-cycle/#capabilities)). For more information, see [Required Configurations](https://dev.twitch.tv/docs/extensions/building#required-configurations) and [Setting Required Configuration](https://dev.twitch.tv/docs/extensions/building#setting-required-configuration-with-the-configuration-service-optional).
__Authorization:__
Requires a signed JSON Web Token (JWT) created by an EBS. For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). Set the `role` field to _external_ and the `user_id` field to the ID of the user that owns the extension.
func (*ClientWithResponses) SetExtensionRequiredConfigurationWithResponse ¶
func (c *ClientWithResponses) SetExtensionRequiredConfigurationWithResponse(ctx context.Context, params *SetExtensionRequiredConfigurationParams, body SetExtensionRequiredConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (r *SetExtensionRequiredConfigurationHTTPResponse, err error)
Updates the extension’s required\_configuration string. Use this endpoint if your extension requires the broadcaster to configure the extension before activating it (to require configuration, you must select **Custom/My Own Service** in Extension [Capabilities](https://dev.twitch.tv/docs/extensions/life-cycle/#capabilities)). For more information, see [Required Configurations](https://dev.twitch.tv/docs/extensions/building#required-configurations) and [Setting Required Configuration](https://dev.twitch.tv/docs/extensions/building#setting-required-configuration-with-the-configuration-service-optional).
__Authorization:__
Requires a signed JSON Web Token (JWT) created by an EBS. For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). Set the `role` field to _external_ and the `user_id` field to the ID of the user that owns the extension.
func (*ClientWithResponses) SnoozeNextAdWithResponse ¶
func (c *ClientWithResponses) SnoozeNextAdWithResponse(ctx context.Context, params *SnoozeNextAdParams, reqEditors ...RequestEditorFn) (r *SnoozeNextAdHTTPResponse, err error)
If available, pushes back the timestamp of the upcoming automatic mid-roll ad by 5 minutes. This endpoint duplicates the snooze functionality in the creator dashboard’s Ads Manager.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:ads** scope. The `user_id` in the user access token must match the `broadcaster_id`.
func (*ClientWithResponses) StartARaidWithResponse ¶
func (c *ClientWithResponses) StartARaidWithResponse(ctx context.Context, params *StartARaidParams, reqEditors ...RequestEditorFn) (r *StartARaidHTTPResponse, err error)
Raid another channel by sending the broadcaster’s viewers to the targeted channel.
When you call the API from a chat bot or extension, the Twitch UX pops up a window at the top of the chat room that identifies the number of viewers in the raid. The raid occurs when the broadcaster clicks **Raid Now** or after the 90-second countdown expires.
To determine whether the raid successfully occurred, you must subscribe to the [Channel Raid](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelraid) event. For more information, see [Get notified when a raid begins](https://dev.twitch.tv/docs/api/raids#get-notified-when-a-raid-begins).
To cancel a pending raid, use the [Cancel a raid](https://dev.twitch.tv/docs/api/reference#cancel-a-raid) endpoint.
**Rate Limit**: The limit is 10 requests within a 10-minute window.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:raids** scope.
func (*ClientWithResponses) StartCommercialWithBodyWithResponse ¶
func (c *ClientWithResponses) StartCommercialWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *StartCommercialHTTPResponse, err error)
Starts a commercial on the specified channel.
**NOTE**: Only partners and affiliates may run commercials and they must be streaming live at the time.
**NOTE**: Only the broadcaster may start a commercial; the broadcaster’s editors and moderators may not start commercials on behalf of the broadcaster.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:edit:commercial** scope.
func (*ClientWithResponses) StartCommercialWithResponse ¶
func (c *ClientWithResponses) StartCommercialWithResponse(ctx context.Context, body StartCommercialJSONRequestBody, reqEditors ...RequestEditorFn) (r *StartCommercialHTTPResponse, err error)
Starts a commercial on the specified channel.
**NOTE**: Only partners and affiliates may run commercials and they must be streaming live at the time.
**NOTE**: Only the broadcaster may start a commercial; the broadcaster’s editors and moderators may not start commercials on behalf of the broadcaster.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:edit:commercial** scope.
func (*ClientWithResponses) UnbanUserWithResponse ¶
func (c *ClientWithResponses) UnbanUserWithResponse(ctx context.Context, params *UnbanUserParams, reqEditors ...RequestEditorFn) (r *UnbanUserHTTPResponse, err error)
Removes the ban or timeout that was placed on the specified user.
To ban a user, see [Ban user](https://dev.twitch.tv/docs/api/reference#ban-user).
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:banned\_users** scope.
func (*ClientWithResponses) UnblockUserWithResponse ¶
func (c *ClientWithResponses) UnblockUserWithResponse(ctx context.Context, params *UnblockUserParams, reqEditors ...RequestEditorFn) (r *UnblockUserHTTPResponse, err error)
Removes the user from the broadcaster’s list of blocked users. The user ID in the OAuth token identifies the broadcaster who’s removing the block.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:manage:blocked\_users** scope.
func (*ClientWithResponses) UpdateAutomodSettingsWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateAutomodSettingsWithBodyWithResponse(ctx context.Context, params *UpdateAutomodSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *UpdateAutomodSettingsHTTPResponse, err error)
Updates the broadcaster’s AutoMod settings. The settings are used to automatically block inappropriate or harassing messages from appearing in the broadcaster’s chat room.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:automod\_settings** scope.
__Request Body:__
Because PUT is an overwrite operation, you must include all the fields that you want set after the operation completes. Typically, you’ll send a GET request, update the fields you want to change, and pass that object in the PUT request.
You may set either `overall_level` or the individual settings like `aggression`, but not both.
Setting `overall_level` applies default values to the individual settings. However, setting `overall_level` to 4 does not necessarily mean that it applies 4 to all the individual settings. Instead, it applies a set of recommended defaults to the rest of the settings. For example, if you set `overall_level` to 2, Twitch provides some filtering on discrimination and sexual content, but more filtering on hostility (see the first example response).
If `overall_level` is currently set and you update `swearing` to 3, `overall_level` will be set to **null** and all settings other than `swearing` will be set to 0\. The same is true if individual settings are set and you update `overall_level` to 3 — all the individual settings are updated to reflect the default level.
Note that if you set all the individual settings to values that match what `overall_level` would have set them to, Twitch changes AutoMod to use the default AutoMod level instead of using the individual settings.
Valid values for all levels are from 0 (no filtering) through 4 (most aggressive filtering). These levels affect how aggressively AutoMod holds back messages for moderators to review before they appear in chat or are denied (not shown).
func (*ClientWithResponses) UpdateAutomodSettingsWithResponse ¶
func (c *ClientWithResponses) UpdateAutomodSettingsWithResponse(ctx context.Context, params *UpdateAutomodSettingsParams, body UpdateAutomodSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (r *UpdateAutomodSettingsHTTPResponse, err error)
Updates the broadcaster’s AutoMod settings. The settings are used to automatically block inappropriate or harassing messages from appearing in the broadcaster’s chat room.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:automod\_settings** scope.
__Request Body:__
Because PUT is an overwrite operation, you must include all the fields that you want set after the operation completes. Typically, you’ll send a GET request, update the fields you want to change, and pass that object in the PUT request.
You may set either `overall_level` or the individual settings like `aggression`, but not both.
Setting `overall_level` applies default values to the individual settings. However, setting `overall_level` to 4 does not necessarily mean that it applies 4 to all the individual settings. Instead, it applies a set of recommended defaults to the rest of the settings. For example, if you set `overall_level` to 2, Twitch provides some filtering on discrimination and sexual content, but more filtering on hostility (see the first example response).
If `overall_level` is currently set and you update `swearing` to 3, `overall_level` will be set to **null** and all settings other than `swearing` will be set to 0\. The same is true if individual settings are set and you update `overall_level` to 3 — all the individual settings are updated to reflect the default level.
Note that if you set all the individual settings to values that match what `overall_level` would have set them to, Twitch changes AutoMod to use the default AutoMod level instead of using the individual settings.
Valid values for all levels are from 0 (no filtering) through 4 (most aggressive filtering). These levels affect how aggressively AutoMod holds back messages for moderators to review before they appear in chat or are denied (not shown).
func (*ClientWithResponses) UpdateChannelGuestStarSettingsWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateChannelGuestStarSettingsWithBodyWithResponse(ctx context.Context, params *UpdateChannelGuestStarSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *UpdateChannelGuestStarSettingsHTTPResponse, err error)
BETA Mutates the channel settings for configuration of the Guest Star feature for a particular host.
__Authorization:__
* Query parameter `broadcaster_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star`
func (*ClientWithResponses) UpdateChannelGuestStarSettingsWithResponse ¶
func (c *ClientWithResponses) UpdateChannelGuestStarSettingsWithResponse(ctx context.Context, params *UpdateChannelGuestStarSettingsParams, body UpdateChannelGuestStarSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (r *UpdateChannelGuestStarSettingsHTTPResponse, err error)
BETA Mutates the channel settings for configuration of the Guest Star feature for a particular host.
__Authorization:__
* Query parameter `broadcaster_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star`
func (*ClientWithResponses) UpdateChannelStreamScheduleSegmentWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateChannelStreamScheduleSegmentWithBodyWithResponse(ctx context.Context, params *UpdateChannelStreamScheduleSegmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *UpdateChannelStreamScheduleSegmentHTTPResponse, err error)
Updates a scheduled broadcast segment.
For recurring segments, updating a segment’s title, category, duration, and timezone, changes all segments in the recurring schedule, not just the specified segment.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope.
func (*ClientWithResponses) UpdateChannelStreamScheduleSegmentWithResponse ¶
func (c *ClientWithResponses) UpdateChannelStreamScheduleSegmentWithResponse(ctx context.Context, params *UpdateChannelStreamScheduleSegmentParams, body UpdateChannelStreamScheduleSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (r *UpdateChannelStreamScheduleSegmentHTTPResponse, err error)
Updates a scheduled broadcast segment.
For recurring segments, updating a segment’s title, category, duration, and timezone, changes all segments in the recurring schedule, not just the specified segment.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope.
func (*ClientWithResponses) UpdateChannelStreamScheduleWithResponse ¶
func (c *ClientWithResponses) UpdateChannelStreamScheduleWithResponse(ctx context.Context, params *UpdateChannelStreamScheduleParams, reqEditors ...RequestEditorFn) (r *UpdateChannelStreamScheduleHTTPResponse, err error)
Updates the broadcaster’s schedule settings, such as scheduling a vacation.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope.
func (*ClientWithResponses) UpdateChatSettingsWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateChatSettingsWithBodyWithResponse(ctx context.Context, params *UpdateChatSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *UpdateChatSettingsHTTPResponse, err error)
Updates the broadcaster’s chat settings.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:chat\_settings** scope.
__Request Body:__
All fields are optional. Specify only those fields that you want to update.
To set the `slow_mode_wait_time` or `follower_mode_duration` field to its default value, set the corresponding `slow_mode` or `follower_mode` field to **true** (and don’t include the `slow_mode_wait_time` or `follower_mode_duration` field).
To set the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field’s value, you must set the corresponding `slow_mode`, `follower_mode`, or `non_moderator_chat_delay` field to **true**.
To remove the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field’s value, set the corresponding `slow_mode`, `follower_mode`, or `non_moderator_chat_delay` field to **false** (and don’t include the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field).
func (*ClientWithResponses) UpdateChatSettingsWithResponse ¶
func (c *ClientWithResponses) UpdateChatSettingsWithResponse(ctx context.Context, params *UpdateChatSettingsParams, body UpdateChatSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (r *UpdateChatSettingsHTTPResponse, err error)
Updates the broadcaster’s chat settings.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:chat\_settings** scope.
__Request Body:__
All fields are optional. Specify only those fields that you want to update.
To set the `slow_mode_wait_time` or `follower_mode_duration` field to its default value, set the corresponding `slow_mode` or `follower_mode` field to **true** (and don’t include the `slow_mode_wait_time` or `follower_mode_duration` field).
To set the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field’s value, you must set the corresponding `slow_mode`, `follower_mode`, or `non_moderator_chat_delay` field to **true**.
To remove the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field’s value, set the corresponding `slow_mode`, `follower_mode`, or `non_moderator_chat_delay` field to **false** (and don’t include the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field).
func (*ClientWithResponses) UpdateConduitShardsWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateConduitShardsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *UpdateConduitShardsHTTPResponse, err error)
NEW Updates shard(s) for a [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/).
**NOTE:** Shard IDs are indexed starting at 0, so a conduit with a `shard_count` of 5 will have shards with IDs 0 through 4.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens).
func (*ClientWithResponses) UpdateConduitShardsWithResponse ¶
func (c *ClientWithResponses) UpdateConduitShardsWithResponse(ctx context.Context, body UpdateConduitShardsJSONRequestBody, reqEditors ...RequestEditorFn) (r *UpdateConduitShardsHTTPResponse, err error)
NEW Updates shard(s) for a [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/).
**NOTE:** Shard IDs are indexed starting at 0, so a conduit with a `shard_count` of 5 will have shards with IDs 0 through 4.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens).
func (*ClientWithResponses) UpdateConduitsWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateConduitsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *UpdateConduitsHTTPResponse, err error)
NEW Updates a [conduit’s](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) shard count. To delete shards, update the count to a lower number, and the shards above the count will be deleted. For example, if the existing shard count is 100, by resetting shard count to 50, shards 50-99 are disabled.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens).
func (*ClientWithResponses) UpdateConduitsWithResponse ¶
func (c *ClientWithResponses) UpdateConduitsWithResponse(ctx context.Context, body UpdateConduitsJSONRequestBody, reqEditors ...RequestEditorFn) (r *UpdateConduitsHTTPResponse, err error)
NEW Updates a [conduit’s](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) shard count. To delete shards, update the count to a lower number, and the shards above the count will be deleted. For example, if the existing shard count is 100, by resetting shard count to 50, shards 50-99 are disabled.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens).
func (*ClientWithResponses) UpdateCustomRewardWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateCustomRewardWithBodyWithResponse(ctx context.Context, params *UpdateCustomRewardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *UpdateCustomRewardHTTPResponse, err error)
Updates a custom reward. The app used to create the reward is the only app that may update the reward.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/api/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope.
__Request Body:__
The body of the request should contain only the fields you’re updating.
func (*ClientWithResponses) UpdateCustomRewardWithResponse ¶
func (c *ClientWithResponses) UpdateCustomRewardWithResponse(ctx context.Context, params *UpdateCustomRewardParams, body UpdateCustomRewardJSONRequestBody, reqEditors ...RequestEditorFn) (r *UpdateCustomRewardHTTPResponse, err error)
Updates a custom reward. The app used to create the reward is the only app that may update the reward.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/api/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope.
__Request Body:__
The body of the request should contain only the fields you’re updating.
func (*ClientWithResponses) UpdateDropsEntitlementsWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateDropsEntitlementsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *UpdateDropsEntitlementsHTTPResponse, err error)
Updates the Drop entitlement’s fulfillment status.
The following table identifies which entitlements are updated based on the type of access token used.
| Access token type | Data that’s updated | | - | - | | App | Updates all entitlements with benefits owned by the organization in the access token. | | User | Updates all entitlements owned by the user in the access token and where the benefits are owned by the organization in the access token. |
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). The client ID in the access token must own the game.
func (*ClientWithResponses) UpdateDropsEntitlementsWithResponse ¶
func (c *ClientWithResponses) UpdateDropsEntitlementsWithResponse(ctx context.Context, body UpdateDropsEntitlementsJSONRequestBody, reqEditors ...RequestEditorFn) (r *UpdateDropsEntitlementsHTTPResponse, err error)
Updates the Drop entitlement’s fulfillment status.
The following table identifies which entitlements are updated based on the type of access token used.
| Access token type | Data that’s updated | | - | - | | App | Updates all entitlements with benefits owned by the organization in the access token. | | User | Updates all entitlements owned by the user in the access token and where the benefits are owned by the organization in the access token. |
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). The client ID in the access token must own the game.
func (*ClientWithResponses) UpdateExtensionBitsProductWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateExtensionBitsProductWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *UpdateExtensionBitsProductHTTPResponse, err error)
Adds or updates a Bits product that the extension created. If the SKU doesn’t exist, the product is added. You may update all fields except the `sku` field.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). The client ID in the app access token must match the extension’s client ID.
func (*ClientWithResponses) UpdateExtensionBitsProductWithResponse ¶
func (c *ClientWithResponses) UpdateExtensionBitsProductWithResponse(ctx context.Context, body UpdateExtensionBitsProductJSONRequestBody, reqEditors ...RequestEditorFn) (r *UpdateExtensionBitsProductHTTPResponse, err error)
Adds or updates a Bits product that the extension created. If the SKU doesn’t exist, the product is added. You may update all fields except the `sku` field.
__Authorization:__
Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). The client ID in the app access token must match the extension’s client ID.
func (*ClientWithResponses) UpdateGuestStarSlotSettingsWithResponse ¶
func (c *ClientWithResponses) UpdateGuestStarSlotSettingsWithResponse(ctx context.Context, params *UpdateGuestStarSlotSettingsParams, reqEditors ...RequestEditorFn) (r *UpdateGuestStarSlotSettingsHTTPResponse, err error)
BETA Allows a user to update slot settings for a particular guest within a Guest Star session, such as allowing the user to share audio or video within the call as a host. These settings will be broadcasted to all subscribers which control their view of the guest in that slot. One or more of the optional parameters to this API can be specified at any time.
__Authorization:__
* Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star`
func (*ClientWithResponses) UpdateGuestStarSlotWithResponse ¶
func (c *ClientWithResponses) UpdateGuestStarSlotWithResponse(ctx context.Context, params *UpdateGuestStarSlotParams, reqEditors ...RequestEditorFn) (r *UpdateGuestStarSlotHTTPResponse, err error)
BETA Allows a user to update the assigned slot for a particular user within the active Guest Star session.
__Authorization:__
* Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star`
func (*ClientWithResponses) UpdateRedemptionStatusWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateRedemptionStatusWithBodyWithResponse(ctx context.Context, params *UpdateRedemptionStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *UpdateRedemptionStatusHTTPResponse, err error)
Updates a redemption’s status. You may update a redemption only if its status is UNFULFILLED. The app used to create the reward is the only app that may update the redemption.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope.
func (*ClientWithResponses) UpdateRedemptionStatusWithResponse ¶
func (c *ClientWithResponses) UpdateRedemptionStatusWithResponse(ctx context.Context, params *UpdateRedemptionStatusParams, body UpdateRedemptionStatusJSONRequestBody, reqEditors ...RequestEditorFn) (r *UpdateRedemptionStatusHTTPResponse, err error)
Updates a redemption’s status. You may update a redemption only if its status is UNFULFILLED. The app used to create the reward is the only app that may update the redemption.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope.
func (*ClientWithResponses) UpdateShieldModeStatusWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateShieldModeStatusWithBodyWithResponse(ctx context.Context, params *UpdateShieldModeStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *UpdateShieldModeStatusHTTPResponse, err error)
Activates or deactivates the broadcaster’s Shield Mode.
Twitch’s Shield Mode feature is like a panic button that broadcasters can push to protect themselves from chat abuse coming from one or more accounts. When activated, Shield Mode applies the overrides that the broadcaster configured in the Twitch UX. If the broadcaster hasn’t configured Shield Mode, it applies default overrides.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:shield\_mode** scope.
func (*ClientWithResponses) UpdateShieldModeStatusWithResponse ¶
func (c *ClientWithResponses) UpdateShieldModeStatusWithResponse(ctx context.Context, params *UpdateShieldModeStatusParams, body UpdateShieldModeStatusJSONRequestBody, reqEditors ...RequestEditorFn) (r *UpdateShieldModeStatusHTTPResponse, err error)
Activates or deactivates the broadcaster’s Shield Mode.
Twitch’s Shield Mode feature is like a panic button that broadcasters can push to protect themselves from chat abuse coming from one or more accounts. When activated, Shield Mode applies the overrides that the broadcaster configured in the Twitch UX. If the broadcaster hasn’t configured Shield Mode, it applies default overrides.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:shield\_mode** scope.
func (*ClientWithResponses) UpdateUserChatColorWithResponse ¶
func (c *ClientWithResponses) UpdateUserChatColorWithResponse(ctx context.Context, params *UpdateUserChatColorParams, reqEditors ...RequestEditorFn) (r *UpdateUserChatColorHTTPResponse, err error)
Updates the color used for the user’s name in chat.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:manage:chat\_color** scope.
func (*ClientWithResponses) UpdateUserExtensionsWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateUserExtensionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *UpdateUserExtensionsHTTPResponse, err error)
Updates an installed extension’s information. You can update the extension’s activation state, ID, and version number. The user ID in the access token identifies the broadcaster whose extensions you’re updating.
NOTE: If you try to activate an extension under multiple extension types, the last write wins (and there is no guarantee of write order).
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:edit:broadcast** scope.
func (*ClientWithResponses) UpdateUserExtensionsWithResponse ¶
func (c *ClientWithResponses) UpdateUserExtensionsWithResponse(ctx context.Context, body UpdateUserExtensionsJSONRequestBody, reqEditors ...RequestEditorFn) (r *UpdateUserExtensionsHTTPResponse, err error)
Updates an installed extension’s information. You can update the extension’s activation state, ID, and version number. The user ID in the access token identifies the broadcaster whose extensions you’re updating.
NOTE: If you try to activate an extension under multiple extension types, the last write wins (and there is no guarantee of write order).
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:edit:broadcast** scope.
func (*ClientWithResponses) UpdateUserWithResponse ¶
func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, params *UpdateUserParams, reqEditors ...RequestEditorFn) (r *UpdateUserHTTPResponse, err error)
Updates the specified user’s information. The user ID in the OAuth token identifies the user whose information you want to update.
To include the user’s verified email address in the response, the user access token must also include the **user:read:email** scope.
__Authorization:__
Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:edit** scope.
func (*ClientWithResponses) WarnChatUserWithBodyWithResponse ¶
func (c *ClientWithResponses) WarnChatUserWithBodyWithResponse(ctx context.Context, params *WarnChatUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (r *WarnChatUserHTTPResponse, err error)
NEW Warns a user in the specified broadcaster’s chat room, preventing them from chat interaction until the warning is acknowledged. New warnings can be issued to a user when they already have a warning in the channel (new warning will replace old warning).
__Authorization:__
Requires a user access token that includes the **moderator:manage:warnings** scope. Query parameter `moderator_id` must match the `user_id` in the [user access token](https://dev.twitch.tv/docs/authentication/#user-access-tokens).
func (*ClientWithResponses) WarnChatUserWithResponse ¶
func (c *ClientWithResponses) WarnChatUserWithResponse(ctx context.Context, params *WarnChatUserParams, body WarnChatUserJSONRequestBody, reqEditors ...RequestEditorFn) (r *WarnChatUserHTTPResponse, err error)
NEW Warns a user in the specified broadcaster’s chat room, preventing them from chat interaction until the warning is acknowledged. New warnings can be issued to a user when they already have a warning in the channel (new warning will replace old warning).
__Authorization:__
Requires a user access token that includes the **moderator:manage:warnings** scope. Query parameter `moderator_id` must match the `user_id` in the [user access token](https://dev.twitch.tv/docs/authentication/#user-access-tokens).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { /* Gets an analytics report for one or more extensions. The response contains the URLs used to download the reports (CSV files). [Learn More](https://dev.twitch.tv/docs/insights) __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **analytics:read:extensions** scope. */ GetExtensionAnalyticsWithResponse(ctx context.Context, params *GetExtensionAnalyticsParams, reqEditors ...RequestEditorFn) (*GetExtensionAnalyticsHTTPResponse, error) /* Gets an analytics report for one or more games. The response contains the URLs used to download the reports (CSV files). [Learn more](https://dev.twitch.tv/docs/insights) __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **analytics:read:games** scope. */ GetGameAnalyticsWithResponse(ctx context.Context, params *GetGameAnalyticsParams, reqEditors ...RequestEditorFn) (*GetGameAnalyticsHTTPResponse, error) /* Gets a list of Cheermotes that users can use to cheer Bits in any Bits-enabled channel’s chat room. Cheermotes are animated emotes that viewers can assign Bits to. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetCheermotesWithResponse(ctx context.Context, params *GetCheermotesParams, reqEditors ...RequestEditorFn) (*GetCheermotesHTTPResponse, error) /* Gets the list of Bits products that belongs to the extension. The client ID in the app access token identifies the extension. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). The client ID in the app access token must be the extension’s client ID. */ GetExtensionBitsProductsWithResponse(ctx context.Context, params *GetExtensionBitsProductsParams, reqEditors ...RequestEditorFn) (*GetExtensionBitsProductsHTTPResponse, error) /* Adds or updates a Bits product that the extension created. If the SKU doesn’t exist, the product is added. You may update all fields except the `sku` field. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). The client ID in the app access token must match the extension’s client ID. */ UpdateExtensionBitsProductWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateExtensionBitsProductHTTPResponse, error) /* Adds or updates a Bits product that the extension created. If the SKU doesn’t exist, the product is added. You may update all fields except the `sku` field. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). The client ID in the app access token must match the extension’s client ID. */ UpdateExtensionBitsProductWithResponse(ctx context.Context, body UpdateExtensionBitsProductJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateExtensionBitsProductHTTPResponse, error) /* Gets the Bits leaderboard for the authenticated broadcaster. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **bits:read** scope. */ GetBitsLeaderboardWithResponse(ctx context.Context, params *GetBitsLeaderboardParams, reqEditors ...RequestEditorFn) (*GetBitsLeaderboardHTTPResponse, error) /* Deletes a custom reward that the broadcaster created. The app used to create the reward is the only app that may delete it. If the reward’s redemption status is UNFULFILLED at the time the reward is deleted, its redemption status is marked as FULFILLED. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope. */ DeleteCustomRewardWithResponse(ctx context.Context, params *DeleteCustomRewardParams, reqEditors ...RequestEditorFn) (*DeleteCustomRewardHTTPResponse, error) /* Gets a list of custom rewards that the specified broadcaster created. **NOTE**: A channel may offer a maximum of 50 rewards, which includes both enabled and disabled rewards. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:redemptions** or **channel:manage:redemptions** scope. */ GetCustomRewardWithResponse(ctx context.Context, params *GetCustomRewardParams, reqEditors ...RequestEditorFn) (*GetCustomRewardHTTPResponse, error) /* Updates a custom reward. The app used to create the reward is the only app that may update the reward. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/api/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope. __Request Body:__ The body of the request should contain only the fields you’re updating. */ UpdateCustomRewardWithBodyWithResponse(ctx context.Context, params *UpdateCustomRewardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomRewardHTTPResponse, error) /* Updates a custom reward. The app used to create the reward is the only app that may update the reward. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/api/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope. __Request Body:__ The body of the request should contain only the fields you’re updating. */ UpdateCustomRewardWithResponse(ctx context.Context, params *UpdateCustomRewardParams, body UpdateCustomRewardJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomRewardHTTPResponse, error) /* Creates a Custom Reward in the broadcaster’s channel. The maximum number of custom rewards per channel is 50, which includes both enabled and disabled rewards. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope. */ CreateCustomRewardsWithBodyWithResponse(ctx context.Context, params *CreateCustomRewardsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomRewardsHTTPResponse, error) /* Creates a Custom Reward in the broadcaster’s channel. The maximum number of custom rewards per channel is 50, which includes both enabled and disabled rewards. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope. */ CreateCustomRewardsWithResponse(ctx context.Context, params *CreateCustomRewardsParams, body CreateCustomRewardsJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomRewardsHTTPResponse, error) /* Gets a list of redemptions for the specified custom reward. The app used to create the reward is the only app that may get the redemptions. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:redemptions** or **channel:manage:redemptions** scope. */ GetCustomRewardRedemptionWithResponse(ctx context.Context, params *GetCustomRewardRedemptionParams, reqEditors ...RequestEditorFn) (*GetCustomRewardRedemptionHTTPResponse, error) /* Updates a redemption’s status. You may update a redemption only if its status is UNFULFILLED. The app used to create the reward is the only app that may update the redemption. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope. */ UpdateRedemptionStatusWithBodyWithResponse(ctx context.Context, params *UpdateRedemptionStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRedemptionStatusHTTPResponse, error) /* Updates a redemption’s status. You may update a redemption only if its status is UNFULFILLED. The app used to create the reward is the only app that may update the redemption. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:redemptions** scope. */ UpdateRedemptionStatusWithResponse(ctx context.Context, params *UpdateRedemptionStatusParams, body UpdateRedemptionStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRedemptionStatusHTTPResponse, error) /* Gets information about one or more channels. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetChannelInformationWithResponse(ctx context.Context, params *GetChannelInformationParams, reqEditors ...RequestEditorFn) (*GetChannelInformationHTTPResponse, error) /* Updates a channel’s properties. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:broadcast** scope. __Request Body:__ All fields are optional, but you must specify at least one field. */ ModifyChannelInformationWithBodyWithResponse(ctx context.Context, params *ModifyChannelInformationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyChannelInformationHTTPResponse, error) /* Updates a channel’s properties. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:broadcast** scope. __Request Body:__ All fields are optional, but you must specify at least one field. */ ModifyChannelInformationWithResponse(ctx context.Context, params *ModifyChannelInformationParams, body ModifyChannelInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyChannelInformationHTTPResponse, error) /* This endpoint returns ad schedule related information, including snooze, when the last ad was run, when the next ad is scheduled, and if the channel is currently in pre-roll free time. Note that a new ad cannot be run until 8 minutes after running a previous ad. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:ads** scope. The `user_id` in the user access token must match the `broadcaster_id`. */ GetAdScheduleWithResponse(ctx context.Context, params *GetAdScheduleParams, reqEditors ...RequestEditorFn) (*GetAdScheduleHTTPResponse, error) /* If available, pushes back the timestamp of the upcoming automatic mid-roll ad by 5 minutes. This endpoint duplicates the snooze functionality in the creator dashboard’s Ads Manager. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:ads** scope. The `user_id` in the user access token must match the `broadcaster_id`. */ SnoozeNextAdWithResponse(ctx context.Context, params *SnoozeNextAdParams, reqEditors ...RequestEditorFn) (*SnoozeNextAdHTTPResponse, error) /* Starts a commercial on the specified channel. **NOTE**: Only partners and affiliates may run commercials and they must be streaming live at the time. **NOTE**: Only the broadcaster may start a commercial; the broadcaster’s editors and moderators may not start commercials on behalf of the broadcaster. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:edit:commercial** scope. */ StartCommercialWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartCommercialHTTPResponse, error) /* Starts a commercial on the specified channel. **NOTE**: Only partners and affiliates may run commercials and they must be streaming live at the time. **NOTE**: Only the broadcaster may start a commercial; the broadcaster’s editors and moderators may not start commercials on behalf of the broadcaster. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:edit:commercial** scope. */ StartCommercialWithResponse(ctx context.Context, body StartCommercialJSONRequestBody, reqEditors ...RequestEditorFn) (*StartCommercialHTTPResponse, error) /* Gets the broadcaster’s list editors. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:editors** scope. */ GetChannelEditorsWithResponse(ctx context.Context, params *GetChannelEditorsParams, reqEditors ...RequestEditorFn) (*GetChannelEditorsHTTPResponse, error) /* Gets a list of broadcasters that the specified user follows. You can also use this endpoint to see whether a user follows a specific broadcaster. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:follows** scope. */ GetFollowedChannelsWithResponse(ctx context.Context, params *GetFollowedChannelsParams, reqEditors ...RequestEditorFn) (*GetFollowedChannelsHTTPResponse, error) /* Gets a list of users that follow the specified broadcaster. You can also use this endpoint to see whether a specific user follows the broadcaster. __Authorization:__ * Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:read:followers** scope. * The ID in the broadcaster\_id query parameter must match the user ID in the access token or the user ID in the access token must be a moderator for the specified broadcaster. This endpoint will return specific follower information only if both of the above are true. If a scope is not provided or the user isn’t the broadcaster or a moderator for the specified channel, only the total follower count will be included in the response. */ GetChannelFollowersWithResponse(ctx context.Context, params *GetChannelFollowersParams, reqEditors ...RequestEditorFn) (*GetChannelFollowersHTTPResponse, error) /* Removes the specified user as a VIP in the broadcaster’s channel. If the broadcaster is removing the user’s VIP status, the ID in the _broadcaster\_id_ query parameter must match the user ID in the access token; otherwise, if the user is removing their VIP status themselves, the ID in the _user\_id_ query parameter must match the user ID in the access token. **Rate Limits**: The broadcaster may remove a maximum of 10 VIPs within a 10-second window. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:vips** scope. */ RemoveChannelVipWithResponse(ctx context.Context, params *RemoveChannelVipParams, reqEditors ...RequestEditorFn) (*RemoveChannelVipHTTPResponse, error) /* Gets a list of the broadcaster’s VIPs. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:vips** scope. If your app also adds and removes VIP status, you can use the **channel:manage:vips** scope instead. */ GetVipsWithResponse(ctx context.Context, params *GetVipsParams, reqEditors ...RequestEditorFn) (*GetVipsHTTPResponse, error) /* Adds the specified user as a VIP in the broadcaster’s channel. **Rate Limits**: The broadcaster may add a maximum of 10 VIPs within a 10-second window. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:vips** scope. */ AddChannelVipWithResponse(ctx context.Context, params *AddChannelVipParams, reqEditors ...RequestEditorFn) (*AddChannelVipHTTPResponse, error) /* Gets information about the charity campaign that a broadcaster is running. For example, the campaign’s fundraising goal and the current amount of donations. To receive events when progress is made towards the campaign’s goal or the broadcaster changes the fundraising goal, subscribe to the [channel.charity\_campaign.progress](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelcharity%5Fcampaignprogress) subscription type. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:charity** scope. */ GetCharityCampaignWithResponse(ctx context.Context, params *GetCharityCampaignParams, reqEditors ...RequestEditorFn) (*GetCharityCampaignHTTPResponse, error) /* Gets the list of donations that users have made to the broadcaster’s active charity campaign. To receive events as donations occur, subscribe to the [channel.charity\_campaign.donate](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelcharity%5Fcampaigndonate) subscription type. __Authorization:__ Requires a user access token that includes the **channel:read:charity** scope. */ GetCharityCampaignDonationsWithResponse(ctx context.Context, params *GetCharityCampaignDonationsParams, reqEditors ...RequestEditorFn) (*GetCharityCampaignDonationsHTTPResponse, error) /* Sends an announcement to the broadcaster’s chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:announcements** scope. */ SendChatAnnouncementWithBodyWithResponse(ctx context.Context, params *SendChatAnnouncementParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendChatAnnouncementHTTPResponse, error) /* Sends an announcement to the broadcaster’s chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:announcements** scope. */ SendChatAnnouncementWithResponse(ctx context.Context, params *SendChatAnnouncementParams, body SendChatAnnouncementJSONRequestBody, reqEditors ...RequestEditorFn) (*SendChatAnnouncementHTTPResponse, error) /* Gets the broadcaster’s list of custom chat badges. The list is empty if the broadcaster hasn’t created custom chat badges. For information about custom badges, see [subscriber badges](https://help.twitch.tv/s/article/subscriber-badge-guide) and [Bits badges](https://help.twitch.tv/s/article/custom-bit-badges-guide). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetChannelChatBadgesWithResponse(ctx context.Context, params *GetChannelChatBadgesParams, reqEditors ...RequestEditorFn) (*GetChannelChatBadgesHTTPResponse, error) /* Gets Twitch’s list of chat badges, which users may use in any channel’s chat room. For information about chat badges, see [Twitch Chat Badges Guide](https://help.twitch.tv/s/article/twitch-chat-badges-guide). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). __Request Query Parameters:__ None */ GetGlobalChatBadgesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGlobalChatBadgesHTTPResponse, error) /* Gets the list of users that are connected to the broadcaster’s chat session. **NOTE**: There is a delay between when users join and leave a chat and when the list is updated accordingly. To determine whether a user is a moderator or VIP, use the [Get Moderators](https://dev.twitch.tv/docs/api/reference#get-moderators) and [Get VIPs](https://dev.twitch.tv/docs/api/reference#get-vips) endpoints. You can check the roles of up to 100 users. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:read:chatters** scope. */ GetChattersWithResponse(ctx context.Context, params *GetChattersParams, reqEditors ...RequestEditorFn) (*GetChattersHTTPResponse, error) /* Gets the color used for the user’s name in chat. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetUserChatColorWithResponse(ctx context.Context, params *GetUserChatColorParams, reqEditors ...RequestEditorFn) (*GetUserChatColorHTTPResponse, error) /* Updates the color used for the user’s name in chat. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:manage:chat\_color** scope. */ UpdateUserChatColorWithResponse(ctx context.Context, params *UpdateUserChatColorParams, reqEditors ...RequestEditorFn) (*UpdateUserChatColorHTTPResponse, error) /* Gets the broadcaster’s list of custom emotes. Broadcasters create these custom emotes for users who subscribe to or follow the channel or cheer Bits in the channel’s chat window. [Learn More](https://dev.twitch.tv/docs/irc/emotes) For information about the custom emotes, see [subscriber emotes](https://help.twitch.tv/s/article/subscriber-emote-guide), [Bits tier emotes](https://help.twitch.tv/s/article/custom-bit-badges-guide?language=bg#slots), and [follower emotes](https://blog.twitch.tv/en/2021/06/04/kicking-off-10-years-with-our-biggest-emote-update-ever/). **NOTE:** With the exception of custom follower emotes, users may use custom emotes in any Twitch chat. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetChannelEmotesWithResponse(ctx context.Context, params *GetChannelEmotesParams, reqEditors ...RequestEditorFn) (*GetChannelEmotesHTTPResponse, error) /* Gets the list of [global emotes](https://www.twitch.tv/creatorcamp/en/learn-the-basics/emotes/). Global emotes are Twitch-created emotes that users can use in any Twitch chat. [Learn More](https://dev.twitch.tv/docs/irc/emotes) __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). __Request Query Parameters:__ None */ GetGlobalEmotesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGlobalEmotesHTTPResponse, error) /* Gets emotes for one or more specified emote sets. An emote set groups emotes that have a similar context. For example, Twitch places all the subscriber emotes that a broadcaster uploads for their channel in the same emote set. [Learn More](https://dev.twitch.tv/docs/irc/emotes) __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetEmoteSetsWithResponse(ctx context.Context, params *GetEmoteSetsParams, reqEditors ...RequestEditorFn) (*GetEmoteSetsHTTPResponse, error) /* NEW Retrieves emotes available to the user across all channels. __Authorization:__ * Requires a user access token that includes the **user:read:emotes** scope. * Query parameter `user_id` must match the `user_id` in the user access token. */ GetUserEmotesWithResponse(ctx context.Context, params *GetUserEmotesParams, reqEditors ...RequestEditorFn) (*GetUserEmotesHTTPResponse, error) /* NEW Sends a message to the broadcaster’s chat room. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the `user:write:chat` scope. If app access token used, then additionally requires `user:bot` scope from chatting user, and either `channel:bot` scope from broadcaster or moderator status. */ SendChatMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendChatMessageHTTPResponse, error) /* NEW Sends a message to the broadcaster’s chat room. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the `user:write:chat` scope. If app access token used, then additionally requires `user:bot` scope from chatting user, and either `channel:bot` scope from broadcaster or moderator status. */ SendChatMessageWithResponse(ctx context.Context, body SendChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SendChatMessageHTTPResponse, error) /* Gets the broadcaster’s chat settings. For an overview of chat settings, see [Chat Commands for Broadcasters and Moderators](https://help.twitch.tv/s/article/chat-commands#AllMods) and [Moderator Preferences](https://help.twitch.tv/s/article/setting-up-moderation-for-your-twitch-channel#modpreferences). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetChatSettingsWithResponse(ctx context.Context, params *GetChatSettingsParams, reqEditors ...RequestEditorFn) (*GetChatSettingsHTTPResponse, error) /* Updates the broadcaster’s chat settings. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:chat\_settings** scope. __Request Body:__ All fields are optional. Specify only those fields that you want to update. To set the `slow_mode_wait_time` or `follower_mode_duration` field to its default value, set the corresponding `slow_mode` or `follower_mode` field to **true** (and don’t include the `slow_mode_wait_time` or `follower_mode_duration` field). To set the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field’s value, you must set the corresponding `slow_mode`, `follower_mode`, or `non_moderator_chat_delay` field to **true**. To remove the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field’s value, set the corresponding `slow_mode`, `follower_mode`, or `non_moderator_chat_delay` field to **false** (and don’t include the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field). */ UpdateChatSettingsWithBodyWithResponse(ctx context.Context, params *UpdateChatSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateChatSettingsHTTPResponse, error) /* Updates the broadcaster’s chat settings. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:chat\_settings** scope. __Request Body:__ All fields are optional. Specify only those fields that you want to update. To set the `slow_mode_wait_time` or `follower_mode_duration` field to its default value, set the corresponding `slow_mode` or `follower_mode` field to **true** (and don’t include the `slow_mode_wait_time` or `follower_mode_duration` field). To set the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field’s value, you must set the corresponding `slow_mode`, `follower_mode`, or `non_moderator_chat_delay` field to **true**. To remove the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field’s value, set the corresponding `slow_mode`, `follower_mode`, or `non_moderator_chat_delay` field to **false** (and don’t include the `slow_mode_wait_time`, `follower_mode_duration`, or `non_moderator_chat_delay_duration` field). */ UpdateChatSettingsWithResponse(ctx context.Context, params *UpdateChatSettingsParams, body UpdateChatSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateChatSettingsHTTPResponse, error) /* Sends a Shoutout to the specified broadcaster. Typically, you send Shoutouts when you or one of your moderators notice another broadcaster in your chat, the other broadcaster is coming up in conversation, or after they raid your broadcast. Twitch’s Shoutout feature is a great way for you to show support for other broadcasters and help them grow. Viewers who do not follow the other broadcaster will see a pop-up Follow button in your chat that they can click to follow the other broadcaster. [Learn More](https://help.twitch.tv/s/article/shoutouts) **Rate Limits** The broadcaster may send a Shoutout once every 2 minutes. They may send the same broadcaster a Shoutout once every 60 minutes. To receive notifications when a Shoutout is sent or received, subscribe to the [channel.shoutout.create](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelshoutoutcreate) and [channel.shoutout.receive](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelshoutoutreceive) subscription types. The **channel.shoutout.create** event includes cooldown periods that indicate when the broadcaster may send another Shoutout without exceeding the endpoint’s rate limit. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:shoutouts** scope. */ SendAShoutoutWithResponse(ctx context.Context, params *SendAShoutoutParams, reqEditors ...RequestEditorFn) (*SendAShoutoutHTTPResponse, error) /* Gets one or more video clips that were captured from streams. For information about clips, see [How to use clips](https://help.twitch.tv/s/article/how-to-use-clips). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). __Request Query Parameters:__ The _id_, _game\_id_, and _broadcaster\_id_ query parameters are mutually exclusive. */ GetClipsWithResponse(ctx context.Context, params *GetClipsParams, reqEditors ...RequestEditorFn) (*GetClipsHTTPResponse, error) /* Creates a clip from the broadcaster’s stream. This API captures up to 90 seconds of the broadcaster’s stream. The 90 seconds spans the point in the stream from when you called the API. For example, if you call the API at the 4:00 minute mark, the API captures from approximately the 3:35 mark to approximately the 4:05 minute mark. Twitch tries its best to capture 90 seconds of the stream, but the actual length may be less. This may occur if you begin capturing the clip near the beginning or end of the stream. By default, Twitch publishes up to the last 30 seconds of the 90 seconds window and provides a default title for the clip. To specify the title and the portion of the 90 seconds window that’s used for the clip, use the URL in the response’s `edit_url` field. You can specify a clip that’s from 5 seconds to 60 seconds in length. The URL is valid for up to 24 hours or until the clip is published, whichever comes first. Creating a clip is an asynchronous process that can take a short amount of time to complete. To determine whether the clip was successfully created, call [Get Clips](https://dev.twitch.tv/docs/api/reference#get-clips) using the clip ID that this request returned. If Get Clips returns the clip, the clip was successfully created. If after 15 seconds Get Clips hasn’t returned the clip, assume it failed. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **clips:edit** scope. */ CreateClipWithResponse(ctx context.Context, params *CreateClipParams, reqEditors ...RequestEditorFn) (*CreateClipHTTPResponse, error) /* Gets information about Twitch content classification labels. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetContentClassificationLabelsWithResponse(ctx context.Context, params *GetContentClassificationLabelsParams, reqEditors ...RequestEditorFn) (*GetContentClassificationLabelsHTTPResponse, error) /* Gets an organization’s list of entitlements that have been granted to a game, a user, or both. **NOTE:** Entitlements returned in the response body data are not guaranteed to be sorted by any field returned by the API. To retrieve **CLAIMED** or **FULFILLED** entitlements, use the `fulfillment_status` query parameter to filter results. To retrieve entitlements for a specific game, use the `game_id` query parameter to filter results. The following table identifies the request parameters that you may specify based on the type of access token used. | Access token type | Parameter | Description | | - | - | - | | App | None | If you don’t specify request parameters, the request returns all entitlements that your organization owns. | | App | user_id | The request returns all entitlements for any game that the organization granted to the specified user. | | App | user_id, game_id | The request returns all entitlements that the specified game granted to the specified user. | | App | game_id | The request returns all entitlements that the specified game granted to all entitled users. | | User | None | If you don’t specify request parameters, the request returns all entitlements for any game that the organization granted to the user identified in the access token. | | User | user_id | Invalid. | | User | user_id, game_id | Invalid. | | User | game_id | The request returns all entitlements that the specified game granted to the user identified in the access token. | __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). The client ID in the access token must own the game. */ GetDropsEntitlementsWithResponse(ctx context.Context, params *GetDropsEntitlementsParams, reqEditors ...RequestEditorFn) (*GetDropsEntitlementsHTTPResponse, error) /* Updates the Drop entitlement’s fulfillment status. The following table identifies which entitlements are updated based on the type of access token used. | Access token type | Data that’s updated | | - | - | | App | Updates all entitlements with benefits owned by the organization in the access token. | | User | Updates all entitlements owned by the user in the access token and where the benefits are owned by the organization in the access token. | __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). The client ID in the access token must own the game. */ UpdateDropsEntitlementsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDropsEntitlementsHTTPResponse, error) /* Updates the Drop entitlement’s fulfillment status. The following table identifies which entitlements are updated based on the type of access token used. | Access token type | Data that’s updated | | - | - | | App | Updates all entitlements with benefits owned by the organization in the access token. | | User | Updates all entitlements owned by the user in the access token and where the benefits are owned by the organization in the access token. | __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). The client ID in the access token must own the game. */ UpdateDropsEntitlementsWithResponse(ctx context.Context, body UpdateDropsEntitlementsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDropsEntitlementsHTTPResponse, error) /* NEW Deletes a specified [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/). Note that it may take some time for Eventsub subscriptions on a deleted [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) to show as disabled when calling [Get Eventsub Subscriptions](https://dev.twitch.tv/docs/api/reference/#get-eventsub-subscriptions). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ DeleteConduitWithResponse(ctx context.Context, params *DeleteConduitParams, reqEditors ...RequestEditorFn) (*DeleteConduitHTTPResponse, error) /* NEW Gets the [conduits](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) for a client ID. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ GetConduitsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetConduitsHTTPResponse, error) /* NEW Updates a [conduit’s](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) shard count. To delete shards, update the count to a lower number, and the shards above the count will be deleted. For example, if the existing shard count is 100, by resetting shard count to 50, shards 50-99 are disabled. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ UpdateConduitsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConduitsHTTPResponse, error) /* NEW Updates a [conduit’s](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) shard count. To delete shards, update the count to a lower number, and the shards above the count will be deleted. For example, if the existing shard count is 100, by resetting shard count to 50, shards 50-99 are disabled. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ UpdateConduitsWithResponse(ctx context.Context, body UpdateConduitsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConduitsHTTPResponse, error) /* NEW Creates a new [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ CreateConduitsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateConduitsHTTPResponse, error) /* NEW Creates a new [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ CreateConduitsWithResponse(ctx context.Context, body CreateConduitsJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateConduitsHTTPResponse, error) /* NEW Gets a lists of all shards for a [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ GetConduitShardsWithResponse(ctx context.Context, params *GetConduitShardsParams, reqEditors ...RequestEditorFn) (*GetConduitShardsHTTPResponse, error) /* NEW Updates shard(s) for a [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/). **NOTE:** Shard IDs are indexed starting at 0, so a conduit with a `shard_count` of 5 will have shards with IDs 0 through 4. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ UpdateConduitShardsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateConduitShardsHTTPResponse, error) /* NEW Updates shard(s) for a [conduit](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/). **NOTE:** Shard IDs are indexed starting at 0, so a conduit with a `shard_count` of 5 will have shards with IDs 0 through 4. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ UpdateConduitShardsWithResponse(ctx context.Context, body UpdateConduitShardsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateConduitShardsHTTPResponse, error) /* Deletes an EventSub subscription. __Authorization:__ If you use [webhooks to receive events](https://dev.twitch.tv/docs/eventsub/handling-webhook-events), the request must specify an app access token. The request will fail if you use a user access token. If you use [WebSockets to receive events](https://dev.twitch.tv/docs/eventsub/handling-websocket-events), the request must specify a user access token. The request will fail if you use an app access token. The token may include any scopes. */ DeleteEventsubSubscriptionWithResponse(ctx context.Context, params *DeleteEventsubSubscriptionParams, reqEditors ...RequestEditorFn) (*DeleteEventsubSubscriptionHTTPResponse, error) /* Gets a list of EventSub subscriptions that the client in the access token created. __Authorization:__ If you use [Webhooks](https://dev.twitch.tv/docs/eventsub/handling-webhook-events) or [Conduits](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) to receive events, the request must specify an app access token. The request will fail if you use a user access token. If you use [WebSockets to receive events](https://dev.twitch.tv/docs/eventsub/handling-websocket-events), the request must specify a user access token. The request will fail if you use an app access token. The token may include any scopes. __Request Query Parameters:__ Use the _status_, _type_, and _user\_id_ query parameters to filter the list of subscriptions that are returned. The filters are mutually exclusive; the request fails if you specify more than one filter. */ GetEventsubSubscriptionsWithResponse(ctx context.Context, params *GetEventsubSubscriptionsParams, reqEditors ...RequestEditorFn) (*GetEventsubSubscriptionsHTTPResponse, error) /* Creates an EventSub subscription. __Authorization:__ If you use [webhooks to receive events](https://dev.twitch.tv/docs/eventsub/handling-webhook-events), the request must specify an app access token. The request will fail if you use a user access token. If the subscription type requires user authorization, the user must have granted your app (client ID) permissions to receive those events before you subscribe to them. For example, to subscribe to [channel.subscribe](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types/#channelsubscribe) events, your app must get a user access token that includes the `channel:read:subscriptions` scope, which adds the required permission to your app access token’s client ID. If you use [WebSockets to receive events](https://dev.twitch.tv/docs/eventsub/handling-websocket-events), the request must specify a user access token. The request will fail if you use an app access token. If the subscription type requires user authorization, the token must include the required scope. However, if the subscription type doesn’t include user authorization, the token may include any scopes or no scopes. If you use [Conduits](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) to receive events, the request must specify an app access token. The request will fail if you use a user access token. */ CreateEventsubSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEventsubSubscriptionHTTPResponse, error) /* Creates an EventSub subscription. __Authorization:__ If you use [webhooks to receive events](https://dev.twitch.tv/docs/eventsub/handling-webhook-events), the request must specify an app access token. The request will fail if you use a user access token. If the subscription type requires user authorization, the user must have granted your app (client ID) permissions to receive those events before you subscribe to them. For example, to subscribe to [channel.subscribe](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types/#channelsubscribe) events, your app must get a user access token that includes the `channel:read:subscriptions` scope, which adds the required permission to your app access token’s client ID. If you use [WebSockets to receive events](https://dev.twitch.tv/docs/eventsub/handling-websocket-events), the request must specify a user access token. The request will fail if you use an app access token. If the subscription type requires user authorization, the token must include the required scope. However, if the subscription type doesn’t include user authorization, the token may include any scopes or no scopes. If you use [Conduits](https://dev.twitch.tv/docs/eventsub/handling-conduit-events/) to receive events, the request must specify an app access token. The request will fail if you use a user access token. */ CreateEventsubSubscriptionWithResponse(ctx context.Context, body CreateEventsubSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEventsubSubscriptionHTTPResponse, error) /* Gets information about an extension. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role` field (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)), and the `role` field must be set to _external_. */ GetExtensionsWithResponse(ctx context.Context, params *GetExtensionsParams, reqEditors ...RequestEditorFn) (*GetExtensionsHTTPResponse, error) /* Sends a message to the specified broadcaster’s chat room. The extension’s name is used as the username for the message in the chat room. To send a chat message, your extension must enable **Chat Capabilities** (under your extension’s **Capabilities** tab). **Rate Limits**: You may send a maximum of 12 messages per minute per channel. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role` and `user_id` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_. */ SendExtensionChatMessageWithBodyWithResponse(ctx context.Context, params *SendExtensionChatMessageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendExtensionChatMessageHTTPResponse, error) /* Sends a message to the specified broadcaster’s chat room. The extension’s name is used as the username for the message in the chat room. To send a chat message, your extension must enable **Chat Capabilities** (under your extension’s **Capabilities** tab). **Rate Limits**: You may send a maximum of 12 messages per minute per channel. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role` and `user_id` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_. */ SendExtensionChatMessageWithResponse(ctx context.Context, params *SendExtensionChatMessageParams, body SendExtensionChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SendExtensionChatMessageHTTPResponse, error) /* Gets the specified configuration segment from the specified extension. **Rate Limits**: You may retrieve each segment a maximum of 20 times per minute. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_. */ GetExtensionConfigurationSegmentWithResponse(ctx context.Context, params *GetExtensionConfigurationSegmentParams, reqEditors ...RequestEditorFn) (*GetExtensionConfigurationSegmentHTTPResponse, error) /* Updates a configuration segment. The segment is limited to 5 KB. Extensions that are active on a channel do not receive the updated configuration. **Rate Limits**: You may update the configuration a maximum of 20 times per minute. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_. */ SetExtensionConfigurationSegmentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetExtensionConfigurationSegmentHTTPResponse, error) /* Updates a configuration segment. The segment is limited to 5 KB. Extensions that are active on a channel do not receive the updated configuration. **Rate Limits**: You may update the configuration a maximum of 20 times per minute. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_. */ SetExtensionConfigurationSegmentWithResponse(ctx context.Context, body SetExtensionConfigurationSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (*SetExtensionConfigurationSegmentHTTPResponse, error) /* Gets an extension’s list of shared secrets. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_. */ GetExtensionSecretsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetExtensionSecretsHTTPResponse, error) /* Creates a shared secret used to sign and verify JWT tokens. Creating a new secret removes the current secrets from service. Use this function only when you are ready to use the new secret it returns. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). The `role` field must be set to _external_. */ CreateExtensionSecretWithResponse(ctx context.Context, params *CreateExtensionSecretParams, reqEditors ...RequestEditorFn) (*CreateExtensionSecretHTTPResponse, error) /* Gets a list of broadcasters that are streaming live and have installed or activated the extension. It may take a few minutes for the list to include or remove broadcasters that have recently gone live or stopped broadcasting. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetExtensionLiveChannelsWithResponse(ctx context.Context, params *GetExtensionLiveChannelsParams, reqEditors ...RequestEditorFn) (*GetExtensionLiveChannelsHTTPResponse, error) /* Sends a message to one or more viewers. You can send messages to a specific channel or to all channels where your extension is active. This endpoint uses the same mechanism as the [send](https://dev.twitch.tv/docs/extensions/reference#send) JavaScript helper function used to send messages. **Rate Limits**: You may send a maximum of 100 messages per minute per combination of extension client ID and broadcaster ID. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)) along with the `channel_id` and `pubsub_perms` fields. The `role` field must be set to _external_. To send the message to a specific channel, set the `channel_id` field in the JWT to the channel’s ID and set the `pubsub_perms.send` array to _broadcast_. “` { "exp": 1503343947, "user_id": "27419011", "role": "external", "channel_id": "27419011", "pubsub_perms": { "send":[ "broadcast" ] } } “` To send the message to all channels on which your extension is active, set the `channel_id` field to _all_ and set the `pubsub_perms.send` array to _global_. “` { "exp": 1503343947, "user_id": "27419011", "role": "external", "channel_id": "all", "pubsub_perms": { "send":[ "global" ] } } “` */ SendExtensionPubsubMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendExtensionPubsubMessageHTTPResponse, error) /* Sends a message to one or more viewers. You can send messages to a specific channel or to all channels where your extension is active. This endpoint uses the same mechanism as the [send](https://dev.twitch.tv/docs/extensions/reference#send) JavaScript helper function used to send messages. **Rate Limits**: You may send a maximum of 100 messages per minute per combination of extension client ID and broadcaster ID. __Authorization:__ Requires a signed JSON Web Token (JWT) created by an Extension Backend Service (EBS). For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)) along with the `channel_id` and `pubsub_perms` fields. The `role` field must be set to _external_. To send the message to a specific channel, set the `channel_id` field in the JWT to the channel’s ID and set the `pubsub_perms.send` array to _broadcast_. “` { "exp": 1503343947, "user_id": "27419011", "role": "external", "channel_id": "27419011", "pubsub_perms": { "send":[ "broadcast" ] } } “` To send the message to all channels on which your extension is active, set the `channel_id` field to _all_ and set the `pubsub_perms.send` array to _global_. “` { "exp": 1503343947, "user_id": "27419011", "role": "external", "channel_id": "all", "pubsub_perms": { "send":[ "global" ] } } “` */ SendExtensionPubsubMessageWithResponse(ctx context.Context, body SendExtensionPubsubMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SendExtensionPubsubMessageHTTPResponse, error) /* Gets information about a released extension. Returns the extension if its `state` is Released. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetReleasedExtensionsWithResponse(ctx context.Context, params *GetReleasedExtensionsParams, reqEditors ...RequestEditorFn) (*GetReleasedExtensionsHTTPResponse, error) /* Updates the extension’s required\_configuration string. Use this endpoint if your extension requires the broadcaster to configure the extension before activating it (to require configuration, you must select **Custom/My Own Service** in Extension [Capabilities](https://dev.twitch.tv/docs/extensions/life-cycle/#capabilities)). For more information, see [Required Configurations](https://dev.twitch.tv/docs/extensions/building#required-configurations) and [Setting Required Configuration](https://dev.twitch.tv/docs/extensions/building#setting-required-configuration-with-the-configuration-service-optional). __Authorization:__ Requires a signed JSON Web Token (JWT) created by an EBS. For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). Set the `role` field to _external_ and the `user_id` field to the ID of the user that owns the extension. */ SetExtensionRequiredConfigurationWithBodyWithResponse(ctx context.Context, params *SetExtensionRequiredConfigurationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetExtensionRequiredConfigurationHTTPResponse, error) /* Updates the extension’s required\_configuration string. Use this endpoint if your extension requires the broadcaster to configure the extension before activating it (to require configuration, you must select **Custom/My Own Service** in Extension [Capabilities](https://dev.twitch.tv/docs/extensions/life-cycle/#capabilities)). For more information, see [Required Configurations](https://dev.twitch.tv/docs/extensions/building#required-configurations) and [Setting Required Configuration](https://dev.twitch.tv/docs/extensions/building#setting-required-configuration-with-the-configuration-service-optional). __Authorization:__ Requires a signed JSON Web Token (JWT) created by an EBS. For signing requirements, see [Signing the JWT](https://dev.twitch.tv/docs/extensions/building/#signing-the-jwt). The signed JWT must include the `role`, `user_id`, and `exp` fields (see [JWT Schema](https://dev.twitch.tv/docs/extensions/reference/#jwt-schema)). Set the `role` field to _external_ and the `user_id` field to the ID of the user that owns the extension. */ SetExtensionRequiredConfigurationWithResponse(ctx context.Context, params *SetExtensionRequiredConfigurationParams, body SetExtensionRequiredConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*SetExtensionRequiredConfigurationHTTPResponse, error) /* Gets an extension’s list of transactions. A transaction records the exchange of a currency (for example, Bits) for a digital product. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens). */ GetExtensionTransactionsWithResponse(ctx context.Context, params *GetExtensionTransactionsParams, reqEditors ...RequestEditorFn) (*GetExtensionTransactionsHTTPResponse, error) /* Gets information about specified categories or games. You may get up to 100 categories or games by specifying their ID or name. You may specify all IDs, all names, or a combination of IDs and names. If you specify a combination of IDs and names, the total number of IDs and names must not exceed 100. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetGamesWithResponse(ctx context.Context, params *GetGamesParams, reqEditors ...RequestEditorFn) (*GetGamesHTTPResponse, error) /* Gets information about all broadcasts on Twitch. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetTopGamesWithResponse(ctx context.Context, params *GetTopGamesParams, reqEditors ...RequestEditorFn) (*GetTopGamesHTTPResponse, error) /* Gets the broadcaster’s list of active goals. Use this endpoint to get the current progress of each goal. Instead of polling for the progress of a goal, consider [subscribing](https://dev.twitch.tv/docs/eventsub/manage-subscriptions) to receive notifications when a goal makes progress using the [channel.goal.progress](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelgoalprogress) subscription type. [Read More](https://dev.twitch.tv/docs/api/goals#requesting-event-notifications) __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:goals** scope. */ GetCreatorGoalsWithResponse(ctx context.Context, params *GetCreatorGoalsParams, reqEditors ...RequestEditorFn) (*GetCreatorGoalsHTTPResponse, error) /* BETA Gets the channel settings for configuration of the Guest Star feature for a particular host. __Authorization:__ * Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:read:guest_star`, `channel:manage:guest_star`, `moderator:read:guest_star` or `moderator:manage:guest_star` */ GetChannelGuestStarSettingsWithResponse(ctx context.Context, params *GetChannelGuestStarSettingsParams, reqEditors ...RequestEditorFn) (*GetChannelGuestStarSettingsHTTPResponse, error) /* BETA Mutates the channel settings for configuration of the Guest Star feature for a particular host. __Authorization:__ * Query parameter `broadcaster_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` */ UpdateChannelGuestStarSettingsWithBodyWithResponse(ctx context.Context, params *UpdateChannelGuestStarSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateChannelGuestStarSettingsHTTPResponse, error) /* BETA Mutates the channel settings for configuration of the Guest Star feature for a particular host. __Authorization:__ * Query parameter `broadcaster_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` */ UpdateChannelGuestStarSettingsWithResponse(ctx context.Context, params *UpdateChannelGuestStarSettingsParams, body UpdateChannelGuestStarSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateChannelGuestStarSettingsHTTPResponse, error) /* BETA Revokes a previously sent invite for a Guest Star session. __Authorization:__ * Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star` */ DeleteGuestStarInviteWithResponse(ctx context.Context, params *DeleteGuestStarInviteParams, reqEditors ...RequestEditorFn) (*DeleteGuestStarInviteHTTPResponse, error) /* BETA Provides the caller with a list of pending invites to a Guest Star session, including the invitee’s ready status while joining the waiting room. __Authorization:__ * Query parameter `broadcaster_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:read:guest_star`, `channel:manage:guest_star`, `moderator:read:guest_star` or `moderator:manage:guest_star` */ GetGuestStarInvitesWithResponse(ctx context.Context, params *GetGuestStarInvitesParams, reqEditors ...RequestEditorFn) (*GetGuestStarInvitesHTTPResponse, error) /* BETA Sends an invite to a specified guest on behalf of the broadcaster for a Guest Star session in progress. __Authorization:__ * Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star` */ SendGuestStarInviteWithResponse(ctx context.Context, params *SendGuestStarInviteParams, reqEditors ...RequestEditorFn) (*SendGuestStarInviteHTTPResponse, error) /* BETA Programmatically ends a Guest Star session on behalf of the broadcaster. Performs the same action as if the host clicked the “End Call” button in the Guest Star UI. __Authorization:__ * Query parameter `broadcaster_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` */ EndGuestStarSessionWithResponse(ctx context.Context, params *EndGuestStarSessionParams, reqEditors ...RequestEditorFn) (*EndGuestStarSessionHTTPResponse, error) /* BETA Gets information about an ongoing Guest Star session for a particular channel. __Authorization:__ * Requires OAuth Scope: `channel:read:guest_star`, `channel:manage:guest_star`, `moderator:read:guest_star` or `moderator:manage:guest_star` * Guests must be either invited or assigned a slot within the session */ GetGuestStarSessionWithResponse(ctx context.Context, params *GetGuestStarSessionParams, reqEditors ...RequestEditorFn) (*GetGuestStarSessionHTTPResponse, error) /* BETA Programmatically creates a Guest Star session on behalf of the broadcaster. Requires the broadcaster to be present in the call interface, or the call will be ended automatically. __Authorization:__ * Query parameter `broadcaster_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` */ CreateGuestStarSessionWithResponse(ctx context.Context, params *CreateGuestStarSessionParams, reqEditors ...RequestEditorFn) (*CreateGuestStarSessionHTTPResponse, error) /* BETA Allows a caller to remove a slot assignment from a user participating in an active Guest Star session. This revokes their access to the session immediately and disables their access to publish or subscribe to media within the session. __Authorization:__ * Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star` */ DeleteGuestStarSlotWithResponse(ctx context.Context, params *DeleteGuestStarSlotParams, reqEditors ...RequestEditorFn) (*DeleteGuestStarSlotHTTPResponse, error) /* BETA Allows a user to update the assigned slot for a particular user within the active Guest Star session. __Authorization:__ * Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star` */ UpdateGuestStarSlotWithResponse(ctx context.Context, params *UpdateGuestStarSlotParams, reqEditors ...RequestEditorFn) (*UpdateGuestStarSlotHTTPResponse, error) /* BETA Allows a previously invited user to be assigned a slot within the active Guest Star session, once that guest has indicated they are ready to join. __Authorization:__ * Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star` */ AssignGuestStarSlotWithResponse(ctx context.Context, params *AssignGuestStarSlotParams, reqEditors ...RequestEditorFn) (*AssignGuestStarSlotHTTPResponse, error) /* BETA Allows a user to update slot settings for a particular guest within a Guest Star session, such as allowing the user to share audio or video within the call as a host. These settings will be broadcasted to all subscribers which control their view of the guest in that slot. One or more of the optional parameters to this API can be specified at any time. __Authorization:__ * Query parameter `moderator_id` must match the `user_id` in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `channel:manage:guest_star` or `moderator:manage:guest_star` */ UpdateGuestStarSlotSettingsWithResponse(ctx context.Context, params *UpdateGuestStarSlotSettingsParams, reqEditors ...RequestEditorFn) (*UpdateGuestStarSlotSettingsHTTPResponse, error) /* Gets information about the broadcaster’s current or most recent Hype Train event. Instead of polling for events, consider [subscribing](https://dev.twitch.tv/docs/eventsub/manage-subscriptions) to Hype Train events ([Begin](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelhype%5Ftrainbegin), [Progress](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelhype%5Ftrainprogress), [End](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelhype%5Ftrainend)). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:hype\_train** scope. */ GetHypeTrainEventsWithResponse(ctx context.Context, params *GetHypeTrainEventsParams, reqEditors ...RequestEditorFn) (*GetHypeTrainEventsHTTPResponse, error) /* Allow or deny the message that AutoMod flagged for review. For information about AutoMod, see [How to Use AutoMod](https://help.twitch.tv/s/article/how-to-use-automod). To get messages that AutoMod is holding for review, subscribe to the **automod-queue.<moderator\_id>.<channel\_id>** [topic](https://dev.twitch.tv/docs/pubsub#topics) using [PubSub](https://dev.twitch.tv/docs/pubsub). PubSub sends a notification to your app when AutoMod holds a message for review. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:automod** scope. */ ManageHeldAutomodMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ManageHeldAutomodMessagesHTTPResponse, error) /* Allow or deny the message that AutoMod flagged for review. For information about AutoMod, see [How to Use AutoMod](https://help.twitch.tv/s/article/how-to-use-automod). To get messages that AutoMod is holding for review, subscribe to the **automod-queue.<moderator\_id>.<channel\_id>** [topic](https://dev.twitch.tv/docs/pubsub#topics) using [PubSub](https://dev.twitch.tv/docs/pubsub). PubSub sends a notification to your app when AutoMod holds a message for review. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:automod** scope. */ ManageHeldAutomodMessagesWithResponse(ctx context.Context, body ManageHeldAutomodMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*ManageHeldAutomodMessagesHTTPResponse, error) /* Gets the broadcaster’s AutoMod settings. The settings are used to automatically block inappropriate or harassing messages from appearing in the broadcaster’s chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:read:automod\_settings** scope. */ GetAutomodSettingsWithResponse(ctx context.Context, params *GetAutomodSettingsParams, reqEditors ...RequestEditorFn) (*GetAutomodSettingsHTTPResponse, error) /* Updates the broadcaster’s AutoMod settings. The settings are used to automatically block inappropriate or harassing messages from appearing in the broadcaster’s chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:automod\_settings** scope. __Request Body:__ Because PUT is an overwrite operation, you must include all the fields that you want set after the operation completes. Typically, you’ll send a GET request, update the fields you want to change, and pass that object in the PUT request. You may set either `overall_level` or the individual settings like `aggression`, but not both. Setting `overall_level` applies default values to the individual settings. However, setting `overall_level` to 4 does not necessarily mean that it applies 4 to all the individual settings. Instead, it applies a set of recommended defaults to the rest of the settings. For example, if you set `overall_level` to 2, Twitch provides some filtering on discrimination and sexual content, but more filtering on hostility (see the first example response). If `overall_level` is currently set and you update `swearing` to 3, `overall_level` will be set to **null** and all settings other than `swearing` will be set to 0\. The same is true if individual settings are set and you update `overall_level` to 3 — all the individual settings are updated to reflect the default level. Note that if you set all the individual settings to values that match what `overall_level` would have set them to, Twitch changes AutoMod to use the default AutoMod level instead of using the individual settings. Valid values for all levels are from 0 (no filtering) through 4 (most aggressive filtering). These levels affect how aggressively AutoMod holds back messages for moderators to review before they appear in chat or are denied (not shown). */ UpdateAutomodSettingsWithBodyWithResponse(ctx context.Context, params *UpdateAutomodSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAutomodSettingsHTTPResponse, error) /* Updates the broadcaster’s AutoMod settings. The settings are used to automatically block inappropriate or harassing messages from appearing in the broadcaster’s chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:automod\_settings** scope. __Request Body:__ Because PUT is an overwrite operation, you must include all the fields that you want set after the operation completes. Typically, you’ll send a GET request, update the fields you want to change, and pass that object in the PUT request. You may set either `overall_level` or the individual settings like `aggression`, but not both. Setting `overall_level` applies default values to the individual settings. However, setting `overall_level` to 4 does not necessarily mean that it applies 4 to all the individual settings. Instead, it applies a set of recommended defaults to the rest of the settings. For example, if you set `overall_level` to 2, Twitch provides some filtering on discrimination and sexual content, but more filtering on hostility (see the first example response). If `overall_level` is currently set and you update `swearing` to 3, `overall_level` will be set to **null** and all settings other than `swearing` will be set to 0\. The same is true if individual settings are set and you update `overall_level` to 3 — all the individual settings are updated to reflect the default level. Note that if you set all the individual settings to values that match what `overall_level` would have set them to, Twitch changes AutoMod to use the default AutoMod level instead of using the individual settings. Valid values for all levels are from 0 (no filtering) through 4 (most aggressive filtering). These levels affect how aggressively AutoMod holds back messages for moderators to review before they appear in chat or are denied (not shown). */ UpdateAutomodSettingsWithResponse(ctx context.Context, params *UpdateAutomodSettingsParams, body UpdateAutomodSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAutomodSettingsHTTPResponse, error) /* Gets all users that the broadcaster banned or put in a timeout. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderation:read** or **moderator:manage:banned\_users** scope. */ GetBannedUsersWithResponse(ctx context.Context, params *GetBannedUsersParams, reqEditors ...RequestEditorFn) (*GetBannedUsersHTTPResponse, error) /* Removes the ban or timeout that was placed on the specified user. To ban a user, see [Ban user](https://dev.twitch.tv/docs/api/reference#ban-user). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:banned\_users** scope. */ UnbanUserWithResponse(ctx context.Context, params *UnbanUserParams, reqEditors ...RequestEditorFn) (*UnbanUserHTTPResponse, error) /* Bans a user from participating in the specified broadcaster’s chat room or puts them in a timeout. For information about banning or putting users in a timeout, see [Ban a User](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat#TheBanFeature) and [Timeout a User](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat#TheTimeoutFeature). If the user is currently in a timeout, you can call this endpoint to change the duration of the timeout or ban them altogether. If the user is currently banned, you cannot call this method to put them in a timeout instead. To remove a ban or end a timeout, see [Unban user](https://dev.twitch.tv/docs/api/reference#unban-user). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:banned\_users** scope. */ BanUserWithBodyWithResponse(ctx context.Context, params *BanUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BanUserHTTPResponse, error) /* Bans a user from participating in the specified broadcaster’s chat room or puts them in a timeout. For information about banning or putting users in a timeout, see [Ban a User](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat#TheBanFeature) and [Timeout a User](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat#TheTimeoutFeature). If the user is currently in a timeout, you can call this endpoint to change the duration of the timeout or ban them altogether. If the user is currently banned, you cannot call this method to put them in a timeout instead. To remove a ban or end a timeout, see [Unban user](https://dev.twitch.tv/docs/api/reference#unban-user). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:banned\_users** scope. */ BanUserWithResponse(ctx context.Context, params *BanUserParams, body BanUserJSONRequestBody, reqEditors ...RequestEditorFn) (*BanUserHTTPResponse, error) /* Removes the word or phrase from the broadcaster’s list of blocked terms. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:blocked\_terms** scope. */ RemoveBlockedTermWithResponse(ctx context.Context, params *RemoveBlockedTermParams, reqEditors ...RequestEditorFn) (*RemoveBlockedTermHTTPResponse, error) /* Gets the broadcaster’s list of non-private, blocked words or phrases. These are the terms that the broadcaster or moderator added manually or that were denied by AutoMod. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:read:blocked\_terms** or **moderator:manage:blocked\_terms** scope. */ GetBlockedTermsWithResponse(ctx context.Context, params *GetBlockedTermsParams, reqEditors ...RequestEditorFn) (*GetBlockedTermsHTTPResponse, error) /* Adds a word or phrase to the broadcaster’s list of blocked terms. These are the terms that the broadcaster doesn’t want used in their chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:blocked\_terms** scope. */ AddBlockedTermWithBodyWithResponse(ctx context.Context, params *AddBlockedTermParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddBlockedTermHTTPResponse, error) /* Adds a word or phrase to the broadcaster’s list of blocked terms. These are the terms that the broadcaster doesn’t want used in their chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:blocked\_terms** scope. */ AddBlockedTermWithResponse(ctx context.Context, params *AddBlockedTermParams, body AddBlockedTermJSONRequestBody, reqEditors ...RequestEditorFn) (*AddBlockedTermHTTPResponse, error) /* Gets a list of channels that the specified user has moderator privileges in. __Authorization:__ * Query parameter `user_id` must match the user ID in the [User-Access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) * Requires OAuth Scope: `user:read:moderated_channels` */ GetModeratedChannelsWithResponse(ctx context.Context, params *GetModeratedChannelsParams, reqEditors ...RequestEditorFn) (*GetModeratedChannelsHTTPResponse, error) /* Removes a single chat message or all chat messages from the broadcaster’s chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:chat\_messages** scope. */ DeleteChatMessagesWithResponse(ctx context.Context, params *DeleteChatMessagesParams, reqEditors ...RequestEditorFn) (*DeleteChatMessagesHTTPResponse, error) /* Checks whether AutoMod would flag the specified message for review. AutoMod is a moderation tool that holds inappropriate or harassing chat messages for moderators to review. Moderators approve or deny the messages that AutoMod flags; only approved messages are released to chat. AutoMod detects misspellings and evasive language automatically. For information about AutoMod, see [How to Use AutoMod](https://help.twitch.tv/s/article/how-to-use-automod). **Rate Limits**: Rates are limited per channel based on the account type rather than per access token. | Account type | Limit per minute | Limit per hour | | - | - | - | | Normal | 5 | 50 | | Affiliate | 10 | 100 | | Partner | 30 | 300 | The above limits are in addition to the standard [Twitch API rate limits](https://dev.twitch.tv/docs/api/guide#twitch-rate-limits). The rate limit headers in the response represent the Twitch rate limits and not the above limits. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderation:read** scope. */ CheckAutomodStatusWithBodyWithResponse(ctx context.Context, params *CheckAutomodStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckAutomodStatusHTTPResponse, error) /* Checks whether AutoMod would flag the specified message for review. AutoMod is a moderation tool that holds inappropriate or harassing chat messages for moderators to review. Moderators approve or deny the messages that AutoMod flags; only approved messages are released to chat. AutoMod detects misspellings and evasive language automatically. For information about AutoMod, see [How to Use AutoMod](https://help.twitch.tv/s/article/how-to-use-automod). **Rate Limits**: Rates are limited per channel based on the account type rather than per access token. | Account type | Limit per minute | Limit per hour | | - | - | - | | Normal | 5 | 50 | | Affiliate | 10 | 100 | | Partner | 30 | 300 | The above limits are in addition to the standard [Twitch API rate limits](https://dev.twitch.tv/docs/api/guide#twitch-rate-limits). The rate limit headers in the response represent the Twitch rate limits and not the above limits. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderation:read** scope. */ CheckAutomodStatusWithResponse(ctx context.Context, params *CheckAutomodStatusParams, body CheckAutomodStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckAutomodStatusHTTPResponse, error) /* Removes a moderator from the broadcaster’s chat room. **Rate Limits**: The broadcaster may remove a maximum of 10 moderators within a 10-second window. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:moderators** scope. */ RemoveChannelModeratorWithResponse(ctx context.Context, params *RemoveChannelModeratorParams, reqEditors ...RequestEditorFn) (*RemoveChannelModeratorHTTPResponse, error) /* Gets all users allowed to moderate the broadcaster’s chat room. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderation:read** scope. If your app also adds and removes moderators, you can use the **channel:manage:moderators** scope instead. */ GetModeratorsWithResponse(ctx context.Context, params *GetModeratorsParams, reqEditors ...RequestEditorFn) (*GetModeratorsHTTPResponse, error) /* Adds a moderator to the broadcaster’s chat room. **Rate Limits**: The broadcaster may add a maximum of 10 moderators within a 10-second window. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:moderators** scope. */ AddChannelModeratorWithResponse(ctx context.Context, params *AddChannelModeratorParams, reqEditors ...RequestEditorFn) (*AddChannelModeratorHTTPResponse, error) /* Gets the broadcaster’s Shield Mode activation status. To receive notification when the broadcaster activates and deactivates Shield Mode, subscribe to the [channel.shield\_mode.begin](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelshield%5Fmodebegin) and [channel.shield\_mode.end](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelshield%5Fmodeend) subscription types. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:read:shield\_mode** or **moderator:manage:shield\_mode** scope. */ GetShieldModeStatusWithResponse(ctx context.Context, params *GetShieldModeStatusParams, reqEditors ...RequestEditorFn) (*GetShieldModeStatusHTTPResponse, error) /* Activates or deactivates the broadcaster’s Shield Mode. Twitch’s Shield Mode feature is like a panic button that broadcasters can push to protect themselves from chat abuse coming from one or more accounts. When activated, Shield Mode applies the overrides that the broadcaster configured in the Twitch UX. If the broadcaster hasn’t configured Shield Mode, it applies default overrides. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:shield\_mode** scope. */ UpdateShieldModeStatusWithBodyWithResponse(ctx context.Context, params *UpdateShieldModeStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateShieldModeStatusHTTPResponse, error) /* Activates or deactivates the broadcaster’s Shield Mode. Twitch’s Shield Mode feature is like a panic button that broadcasters can push to protect themselves from chat abuse coming from one or more accounts. When activated, Shield Mode applies the overrides that the broadcaster configured in the Twitch UX. If the broadcaster hasn’t configured Shield Mode, it applies default overrides. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **moderator:manage:shield\_mode** scope. */ UpdateShieldModeStatusWithResponse(ctx context.Context, params *UpdateShieldModeStatusParams, body UpdateShieldModeStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateShieldModeStatusHTTPResponse, error) /* NEW Gets a list of unban requests for a broadcaster’s channel. __Authorization:__ * Requires a user access token that includes the **moderator:read:unban\_requests** or **moderator:manage:unban\_requests** scope. * Query parameter `moderator_id` must match the `user_id` in the [user access token](https://dev.twitch.tv/docs/authentication/#user-access-tokens). */ GetUnbanRequestsWithResponse(ctx context.Context, params *GetUnbanRequestsParams, reqEditors ...RequestEditorFn) (*GetUnbanRequestsHTTPResponse, error) /* NEW Resolves an unban request by approving or denying it. __Authorization:__ * Requires a user access token that includes the **moderator:manage:unban\_requests** scope. * Query parameter `moderator_id` must match the `user_id` in the[user access token](https://dev.twitch.tv/docs/authentication/#user-access-tokens). */ ResolveUnbanRequestsWithResponse(ctx context.Context, params *ResolveUnbanRequestsParams, reqEditors ...RequestEditorFn) (*ResolveUnbanRequestsHTTPResponse, error) /* NEW Warns a user in the specified broadcaster’s chat room, preventing them from chat interaction until the warning is acknowledged. New warnings can be issued to a user when they already have a warning in the channel (new warning will replace old warning). __Authorization:__ Requires a user access token that includes the **moderator:manage:warnings** scope. Query parameter `moderator_id` must match the `user_id` in the [user access token](https://dev.twitch.tv/docs/authentication/#user-access-tokens). */ WarnChatUserWithBodyWithResponse(ctx context.Context, params *WarnChatUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WarnChatUserHTTPResponse, error) /* NEW Warns a user in the specified broadcaster’s chat room, preventing them from chat interaction until the warning is acknowledged. New warnings can be issued to a user when they already have a warning in the channel (new warning will replace old warning). __Authorization:__ Requires a user access token that includes the **moderator:manage:warnings** scope. Query parameter `moderator_id` must match the `user_id` in the [user access token](https://dev.twitch.tv/docs/authentication/#user-access-tokens). */ WarnChatUserWithResponse(ctx context.Context, params *WarnChatUserParams, body WarnChatUserJSONRequestBody, reqEditors ...RequestEditorFn) (*WarnChatUserHTTPResponse, error) /* Gets a list of polls that the broadcaster created. Polls are available for 90 days after they’re created. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:polls** or **channel:manage:polls** scope. */ GetPollsWithResponse(ctx context.Context, params *GetPollsParams, reqEditors ...RequestEditorFn) (*GetPollsHTTPResponse, error) /* Ends an active poll. You have the option to end it or end it and archive it. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:polls** scope. */ EndPollWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EndPollHTTPResponse, error) /* Ends an active poll. You have the option to end it or end it and archive it. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:polls** scope. */ EndPollWithResponse(ctx context.Context, body EndPollJSONRequestBody, reqEditors ...RequestEditorFn) (*EndPollHTTPResponse, error) /* Creates a poll that viewers in the broadcaster’s channel can vote on. The poll begins as soon as it’s created. You may run only one poll at a time. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:polls** scope. */ CreatePollWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePollHTTPResponse, error) /* Creates a poll that viewers in the broadcaster’s channel can vote on. The poll begins as soon as it’s created. You may run only one poll at a time. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:polls** scope. */ CreatePollWithResponse(ctx context.Context, body CreatePollJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePollHTTPResponse, error) /* Gets a list of Channel Points Predictions that the broadcaster created. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:predictions** or **channel:manage:predictions** scope. */ GetPredictionsWithResponse(ctx context.Context, params *GetPredictionsParams, reqEditors ...RequestEditorFn) (*GetPredictionsHTTPResponse, error) /* Locks, resolves, or cancels a Channel Points Prediction. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:predictions** scope. */ EndPredictionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EndPredictionHTTPResponse, error) /* Locks, resolves, or cancels a Channel Points Prediction. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:predictions** scope. */ EndPredictionWithResponse(ctx context.Context, body EndPredictionJSONRequestBody, reqEditors ...RequestEditorFn) (*EndPredictionHTTPResponse, error) /* Creates a Channel Points Prediction. With a Channel Points Prediction, the broadcaster poses a question and viewers try to predict the outcome. The prediction runs as soon as it’s created. The broadcaster may run only one prediction at a time. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:predictions** scope. */ CreatePredictionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePredictionHTTPResponse, error) /* Creates a Channel Points Prediction. With a Channel Points Prediction, the broadcaster poses a question and viewers try to predict the outcome. The prediction runs as soon as it’s created. The broadcaster may run only one prediction at a time. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:predictions** scope. */ CreatePredictionWithResponse(ctx context.Context, body CreatePredictionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePredictionHTTPResponse, error) /* Cancel a pending raid. You can cancel a raid at any point up until the broadcaster clicks **Raid Now** in the Twitch UX or the 90-second countdown expires. **Rate Limit**: The limit is 10 requests within a 10-minute window. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:raids** scope. */ CancelARaidWithResponse(ctx context.Context, params *CancelARaidParams, reqEditors ...RequestEditorFn) (*CancelARaidHTTPResponse, error) /* Raid another channel by sending the broadcaster’s viewers to the targeted channel. When you call the API from a chat bot or extension, the Twitch UX pops up a window at the top of the chat room that identifies the number of viewers in the raid. The raid occurs when the broadcaster clicks **Raid Now** or after the 90-second countdown expires. To determine whether the raid successfully occurred, you must subscribe to the [Channel Raid](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelraid) event. For more information, see [Get notified when a raid begins](https://dev.twitch.tv/docs/api/raids#get-notified-when-a-raid-begins). To cancel a pending raid, use the [Cancel a raid](https://dev.twitch.tv/docs/api/reference#cancel-a-raid) endpoint. **Rate Limit**: The limit is 10 requests within a 10-minute window. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:raids** scope. */ StartARaidWithResponse(ctx context.Context, params *StartARaidParams, reqEditors ...RequestEditorFn) (*StartARaidHTTPResponse, error) /* Gets the broadcaster’s streaming schedule. You can get the entire schedule or specific segments of the schedule. [Learn More](https://help.twitch.tv/s/article/channel-page-setup#Schedule) __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetChannelStreamScheduleWithResponse(ctx context.Context, params *GetChannelStreamScheduleParams, reqEditors ...RequestEditorFn) (*GetChannelStreamScheduleHTTPResponse, error) /* Gets the broadcaster’s streaming schedule as an [iCalendar](https://datatracker.ietf.org/doc/html/rfc5545). __Authorization:__ The Client-Id and Authorization headers are not required. __Response Body:__ The response body contains the iCalendar data (see [RFC5545](https://datatracker.ietf.org/doc/html/rfc5545)). The Content-Type response header is set to `text/calendar`. */ GetChannelIcalendarWithResponse(ctx context.Context, params *GetChannelIcalendarParams, reqEditors ...RequestEditorFn) (*GetChannelIcalendarHTTPResponse, error) /* Removes a broadcast segment from the broadcaster’s streaming schedule. **NOTE**: For recurring segments, removing a segment removes all segments in the recurring schedule. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope. */ DeleteChannelStreamScheduleSegmentWithResponse(ctx context.Context, params *DeleteChannelStreamScheduleSegmentParams, reqEditors ...RequestEditorFn) (*DeleteChannelStreamScheduleSegmentHTTPResponse, error) /* Updates a scheduled broadcast segment. For recurring segments, updating a segment’s title, category, duration, and timezone, changes all segments in the recurring schedule, not just the specified segment. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope. */ UpdateChannelStreamScheduleSegmentWithBodyWithResponse(ctx context.Context, params *UpdateChannelStreamScheduleSegmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateChannelStreamScheduleSegmentHTTPResponse, error) /* Updates a scheduled broadcast segment. For recurring segments, updating a segment’s title, category, duration, and timezone, changes all segments in the recurring schedule, not just the specified segment. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope. */ UpdateChannelStreamScheduleSegmentWithResponse(ctx context.Context, params *UpdateChannelStreamScheduleSegmentParams, body UpdateChannelStreamScheduleSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateChannelStreamScheduleSegmentHTTPResponse, error) /* Adds a single or recurring broadcast to the broadcaster’s streaming schedule. For information about scheduling broadcasts, see [Stream Schedule](https://help.twitch.tv/s/article/channel-page-setup#Schedule). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope. */ CreateChannelStreamScheduleSegmentWithBodyWithResponse(ctx context.Context, params *CreateChannelStreamScheduleSegmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateChannelStreamScheduleSegmentHTTPResponse, error) /* Adds a single or recurring broadcast to the broadcaster’s streaming schedule. For information about scheduling broadcasts, see [Stream Schedule](https://help.twitch.tv/s/article/channel-page-setup#Schedule). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope. */ CreateChannelStreamScheduleSegmentWithResponse(ctx context.Context, params *CreateChannelStreamScheduleSegmentParams, body CreateChannelStreamScheduleSegmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateChannelStreamScheduleSegmentHTTPResponse, error) /* Updates the broadcaster’s schedule settings, such as scheduling a vacation. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:schedule** scope. */ UpdateChannelStreamScheduleWithResponse(ctx context.Context, params *UpdateChannelStreamScheduleParams, reqEditors ...RequestEditorFn) (*UpdateChannelStreamScheduleHTTPResponse, error) /* Gets the games or categories that match the specified query. To match, the category’s name must contain all parts of the query string. For example, if the query string is 42, the response includes any category name that contains 42 in the title. If the query string is a phrase like _love computer_, the response includes any category name that contains the words love and computer anywhere in the name. The comparison is case insensitive. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ SearchCategoriesWithResponse(ctx context.Context, params *SearchCategoriesParams, reqEditors ...RequestEditorFn) (*SearchCategoriesHTTPResponse, error) /* Gets the channels that match the specified query and have streamed content within the past 6 months. The fields that the API uses for comparison depends on the value that the _live\_only_ query parameter is set to. If _live\_only_ is **false**, the API matches on the broadcaster’s login name. However, if _live\_only_ is **true**, the API matches on the broadcaster’s name and category name. To match, the beginning of the broadcaster’s name or category must match the query string. The comparison is case insensitive. If the query string is angel\_of\_death, it matches all names that begin with angel\_of\_death. However, if the query string is a phrase like _angel of death_, it matches to names starting with angelofdeath or names starting with angel\_of\_death. By default, the results include both live and offline channels. To get only live channels set the _live\_only_ query parameter to **true**. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ SearchChannelsWithResponse(ctx context.Context, params *SearchChannelsParams, reqEditors ...RequestEditorFn) (*SearchChannelsHTTPResponse, error) GetSharedChatSessionWithResponse(ctx context.Context, params *GetSharedChatSessionParams, reqEditors ...RequestEditorFn) (*GetSharedChatSessionHTTPResponse, error) /* Gets a list of all streams. The list is in descending order by the number of viewers watching the stream. Because viewers come and go during a stream, it’s possible to find duplicate or missing streams in the list as you page through the results. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetStreamsWithResponse(ctx context.Context, params *GetStreamsParams, reqEditors ...RequestEditorFn) (*GetStreamsHTTPResponse, error) /* Gets the list of broadcasters that the user follows and that are streaming live. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:follows** scope. */ GetFollowedStreamsWithResponse(ctx context.Context, params *GetFollowedStreamsParams, reqEditors ...RequestEditorFn) (*GetFollowedStreamsHTTPResponse, error) /* Gets the channel’s stream key. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:stream\_key** scope. */ GetStreamKeyWithResponse(ctx context.Context, params *GetStreamKeyParams, reqEditors ...RequestEditorFn) (*GetStreamKeyHTTPResponse, error) /* Gets a list of markers from the user’s most recent stream or from the specified VOD/video. A marker is an arbitrary point in a live stream that the broadcaster or editor marked, so they can return to that spot later to create video highlights (see Video Producer, Highlights in the Twitch UX). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:broadcast** or **channel:manage:broadcast** scope. */ GetStreamMarkersWithResponse(ctx context.Context, params *GetStreamMarkersParams, reqEditors ...RequestEditorFn) (*GetStreamMarkersHTTPResponse, error) /* Adds a marker to a live stream. A marker is an arbitrary point in a live stream that the broadcaster or editor wants to mark, so they can return to that spot later to create video highlights (see Video Producer, Highlights in the Twitch UX). You may not add markers: * If the stream is not live * If the stream has not enabled video on demand (VOD) * If the stream is a premiere (a live, first-viewing event that combines uploaded videos with live chat) * If the stream is a rerun of a past broadcast, including past premieres. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:broadcast** scope. */ CreateStreamMarkerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateStreamMarkerHTTPResponse, error) /* Adds a marker to a live stream. A marker is an arbitrary point in a live stream that the broadcaster or editor wants to mark, so they can return to that spot later to create video highlights (see Video Producer, Highlights in the Twitch UX). You may not add markers: * If the stream is not live * If the stream has not enabled video on demand (VOD) * If the stream is a premiere (a live, first-viewing event that combines uploaded videos with live chat) * If the stream is a rerun of a past broadcast, including past premieres. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:broadcast** scope. */ CreateStreamMarkerWithResponse(ctx context.Context, body CreateStreamMarkerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateStreamMarkerHTTPResponse, error) /* **IMPORTANT** Twitch is moving from Twitch-defined tags to channel-defined tags. **IMPORTANT** As of February 28, 2023, this endpoint returns an empty array. On July 13, 2023, it will return a 410 response. If you use this endpoint, please update your code to use [Get Channel Information](https://dev.twitch.tv/docs/api/reference#get-channel-information). Gets the list of stream tags that the broadcaster or Twitch added to their channel. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetStreamTagsWithResponse(ctx context.Context, params *GetStreamTagsParams, reqEditors ...RequestEditorFn) (*GetStreamTagsHTTPResponse, error) /* Gets a list of users that subscribe to the specified broadcaster. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:read:subscriptions** scope. A Twitch extensions may use an app access token if the broadcaster has granted the **channel:read:subscriptions** scope from within the Twitch Extensions manager. */ GetBroadcasterSubscriptionsWithResponse(ctx context.Context, params *GetBroadcasterSubscriptionsParams, reqEditors ...RequestEditorFn) (*GetBroadcasterSubscriptionsHTTPResponse, error) /* Checks whether the user subscribes to the broadcaster’s channel. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:subscriptions** scope. A Twitch extensions may use an app access token if the broadcaster has granted the **user:read:subscriptions** scope from within the Twitch Extensions manager. */ CheckUserSubscriptionWithResponse(ctx context.Context, params *CheckUserSubscriptionParams, reqEditors ...RequestEditorFn) (*CheckUserSubscriptionHTTPResponse, error) /* **IMPORTANT** Twitch is moving from Twitch-defined tags to channel-defined tags. **IMPORTANT** As of February 28, 2023, this endpoint returns an empty array. On July 13, 2023, it will return a 410 response. Gets a list of all stream tags that Twitch defines. The broadcaster may apply any of these to their channel except automatic tags. For an online list of the possible tags, see [List of All Tags](https://www.twitch.tv/directory/all/tags). __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetAllStreamTagsWithResponse(ctx context.Context, params *GetAllStreamTagsParams, reqEditors ...RequestEditorFn) (*GetAllStreamTagsHTTPResponse, error) /* Gets information about the specified Twitch team. [Read More](https://help.twitch.tv/s/article/twitch-teams) __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetTeamsWithResponse(ctx context.Context, params *GetTeamsParams, reqEditors ...RequestEditorFn) (*GetTeamsHTTPResponse, error) /* Gets the list of Twitch teams that the broadcaster is a member of. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetChannelTeamsWithResponse(ctx context.Context, params *GetChannelTeamsParams, reqEditors ...RequestEditorFn) (*GetChannelTeamsHTTPResponse, error) /* Gets information about one or more users. You may look up users using their user ID, login name, or both but the sum total of the number of users you may look up is 100\. For example, you may specify 50 IDs and 50 names or 100 IDs or names, but you cannot specify 100 IDs and 100 names. If you don’t specify IDs or login names, the request returns information about the user in the access token if you specify a user access token. To include the user’s verified email address in the response, you must use a user access token that includes the **user:read:email** scope. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetUsersWithResponse(ctx context.Context, params *GetUsersParams, reqEditors ...RequestEditorFn) (*GetUsersHTTPResponse, error) /* Updates the specified user’s information. The user ID in the OAuth token identifies the user whose information you want to update. To include the user’s verified email address in the response, the user access token must also include the **user:read:email** scope. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:edit** scope. */ UpdateUserWithResponse(ctx context.Context, params *UpdateUserParams, reqEditors ...RequestEditorFn) (*UpdateUserHTTPResponse, error) /* Removes the user from the broadcaster’s list of blocked users. The user ID in the OAuth token identifies the broadcaster who’s removing the block. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:manage:blocked\_users** scope. */ UnblockUserWithResponse(ctx context.Context, params *UnblockUserParams, reqEditors ...RequestEditorFn) (*UnblockUserHTTPResponse, error) /* Gets the list of users that the broadcaster has blocked. [Read More](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat?language=en%5FUS#BlockWhispersandMessagesfromStrangers) __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:blocked\_users** scope. */ GetUserBlockListWithResponse(ctx context.Context, params *GetUserBlockListParams, reqEditors ...RequestEditorFn) (*GetUserBlockListHTTPResponse, error) /* Blocks the specified user from interacting with or having contact with the broadcaster. The user ID in the OAuth token identifies the broadcaster who is blocking the user. To learn more about blocking users, see [Block Other Users on Twitch](https://help.twitch.tv/s/article/how-to-manage-harassment-in-chat?language=en%5FUS#BlockWhispersandMessagesfromStrangers). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:manage:blocked\_users** scope. */ BlockUserWithResponse(ctx context.Context, params *BlockUserParams, reqEditors ...RequestEditorFn) (*BlockUserHTTPResponse, error) /* Gets the active extensions that the broadcaster has installed for each configuration. NOTE: To include extensions that you have under development, you must specify a user access token that includes the **user:read:broadcast** or **user:edit:broadcast** scope. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetUserActiveExtensionsWithResponse(ctx context.Context, params *GetUserActiveExtensionsParams, reqEditors ...RequestEditorFn) (*GetUserActiveExtensionsHTTPResponse, error) /* Updates an installed extension’s information. You can update the extension’s activation state, ID, and version number. The user ID in the access token identifies the broadcaster whose extensions you’re updating. NOTE: If you try to activate an extension under multiple extension types, the last write wins (and there is no guarantee of write order). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:edit:broadcast** scope. */ UpdateUserExtensionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserExtensionsHTTPResponse, error) /* Updates an installed extension’s information. You can update the extension’s activation state, ID, and version number. The user ID in the access token identifies the broadcaster whose extensions you’re updating. NOTE: If you try to activate an extension under multiple extension types, the last write wins (and there is no guarantee of write order). __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:edit:broadcast** scope. */ UpdateUserExtensionsWithResponse(ctx context.Context, body UpdateUserExtensionsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserExtensionsHTTPResponse, error) /* Gets a list of all extensions (both active and inactive) that the broadcaster has installed. The user ID in the access token identifies the broadcaster. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:read:broadcast** or **user:edit:broadcast** scope. To include inactive extensions, you must include the **user:edit:broadcast** scope. */ GetUserExtensionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserExtensionsHTTPResponse, error) /* Deletes one or more videos. You may delete past broadcasts, highlights, or uploads. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **channel:manage:videos** scope. */ DeleteVideosWithResponse(ctx context.Context, params *DeleteVideosParams, reqEditors ...RequestEditorFn) (*DeleteVideosHTTPResponse, error) /* Gets information about one or more published videos. You may get videos by ID, by user, or by game/category. You may apply several filters to get a subset of the videos. The filters are applied as an AND operation to each video. For example, if _language_ is set to ‘de’ and _game\_id_ is set to 21779, the response includes only videos that show playing League of Legends by users that stream in German. The filters apply only if you get videos by user ID or game ID. __Authorization:__ Requires an [app access token](https://dev.twitch.tv/docs/authentication#app-access-tokens) or [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens). */ GetVideosWithResponse(ctx context.Context, params *GetVideosParams, reqEditors ...RequestEditorFn) (*GetVideosHTTPResponse, error) /* Sends a whisper message to the specified user. NOTE: The user sending the whisper must have a verified phone number (see the **Phone Number** setting in your [Security and Privacy](https://www.twitch.tv/settings/security) settings). NOTE: The API may silently drop whispers that it suspects of violating Twitch policies. (The API does not indicate that it dropped the whisper; it returns a 204 status code as if it succeeded.) **Rate Limits**: You may whisper to a maximum of 40 unique recipients per day. Within the per day limit, you may whisper a maximum of 3 whispers per second and a maximum of 100 whispers per minute. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:manage:whispers** scope. */ SendWhisperWithBodyWithResponse(ctx context.Context, params *SendWhisperParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendWhisperHTTPResponse, error) /* Sends a whisper message to the specified user. NOTE: The user sending the whisper must have a verified phone number (see the **Phone Number** setting in your [Security and Privacy](https://www.twitch.tv/settings/security) settings). NOTE: The API may silently drop whispers that it suspects of violating Twitch policies. (The API does not indicate that it dropped the whisper; it returns a 204 status code as if it succeeded.) **Rate Limits**: You may whisper to a maximum of 40 unique recipients per day. Within the per day limit, you may whisper a maximum of 3 whispers per second and a maximum of 100 whispers per minute. __Authorization:__ Requires a [user access token](https://dev.twitch.tv/docs/authentication#user-access-tokens) that includes the **user:manage:whispers** scope. */ SendWhisperWithResponse(ctx context.Context, params *SendWhisperParams, body SendWhisperJSONRequestBody, reqEditors ...RequestEditorFn) (*SendWhisperHTTPResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Clip ¶
type Clip struct { // BroadcasterId An ID that identifies the broadcaster that the video was clipped from. BroadcasterId string `json:"broadcaster_id"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // CreatedAt The date and time of when the clip was created. The date and time is in RFC3339 format. CreatedAt time.Time `json:"created_at"` // CreatorId An ID that identifies the user that created the clip. CreatorId string `json:"creator_id"` // CreatorName The user’s display name. CreatorName string `json:"creator_name"` // Duration The length of the clip, in seconds. Precision is 0.1. Duration float32 `json:"duration"` // EmbedUrl A URL that you can use in an iframe to embed the clip (see [Embedding Video and Clips](https://dev.twitch.tv/docs/embed/video-and-clips/)). EmbedUrl string `json:"embed_url"` // GameId The ID of the game that was being played when the clip was created. GameId string `json:"game_id"` // Id An ID that uniquely identifies the clip. Id string `json:"id"` // IsFeatured A Boolean value that indicates if the clip is featured or not. IsFeatured bool `json:"is_featured"` // Language The ISO 639-1 two-letter language code that the broadcaster broadcasts in. For example, _en_ for English. The value is _other_ if the broadcaster uses a language that Twitch doesn’t support. Language string `json:"language"` // ThumbnailUrl A URL to a thumbnail image of the clip. ThumbnailUrl string `json:"thumbnail_url"` // Title The title of the clip. Title string `json:"title"` // Url A URL to the clip. Url string `json:"url"` // VideoId An ID that identifies the video that the clip came from. This field contains an empty string if the video is not available. VideoId string `json:"video_id"` // ViewCount The number of times the clip has been viewed. ViewCount int32 `json:"view_count"` // VodOffset The zero-based offset, in seconds, to where the clip starts in the video (VOD). Is **null** if the video is not available or hasn’t been created yet from the live stream (see `video_id`). // // Note that there’s a delay between when a clip is created during a broadcast and when the offset is set. During the delay period, `vod_offset` is **null**. The delay is indeterminant but is typically minutes long. VodOffset *int32 `json:"vod_offset"` }
Clip defines model for Clip.
func (Clip) GetBroadcasterId ¶
func (Clip) GetBroadcasterName ¶
func (Clip) GetCreatedAt ¶
func (Clip) GetCreatorId ¶
func (Clip) GetCreatorName ¶
func (Clip) GetDuration ¶
func (Clip) GetEmbedUrl ¶
func (Clip) GetIsFeatured ¶
func (Clip) GetLanguage ¶
func (Clip) GetThumbnailUrl ¶
func (Clip) GetVideoId ¶
func (Clip) GetViewCount ¶
func (Clip) GetVodOffset ¶
type ContentClassificationLabel ¶
type ContentClassificationLabel struct { // Description Localized description of the CCL. Description string `json:"description"` // Id Unique identifier for the CCL. Id string `json:"id"` // Name Localized name of the CCL. Name string `json:"name"` }
ContentClassificationLabel defines model for ContentClassificationLabel.
func (ContentClassificationLabel) GetDescription ¶
func (datatype ContentClassificationLabel) GetDescription() string
func (ContentClassificationLabel) GetId ¶
func (datatype ContentClassificationLabel) GetId() string
func (ContentClassificationLabel) GetName ¶
func (datatype ContentClassificationLabel) GetName() string
type CreateChannelStreamScheduleSegmentBody ¶
type CreateChannelStreamScheduleSegmentBody struct { // CategoryId The ID of the category that best represents the broadcast’s content. To get the category ID, use the [Search Categories](https://dev.twitch.tv/docs/api/reference#search-categories) endpoint. CategoryId *string `json:"category_id,omitempty"` // Duration The length of time, in minutes, that the broadcast is scheduled to run. The duration must be in the range 30 through 1380 (23 hours). Duration string `json:"duration"` // IsRecurring A Boolean value that determines whether the broadcast recurs weekly. Is **true** if the broadcast recurs weekly. Only partners and affiliates may add non-recurring broadcasts. IsRecurring *bool `json:"is_recurring,omitempty"` // StartTime The date and time that the broadcast segment starts. Specify the date and time in RFC3339 format (for example, 2021-07-01T18:00:00Z). StartTime time.Time `json:"start_time"` // Timezone The time zone where the broadcast takes place. Specify the time zone using [IANA time zone database](https://www.iana.org/time-zones) format (for example, America/New\_York). Timezone string `json:"timezone"` // Title The broadcast’s title. The title may contain a maximum of 140 characters. Title *string `json:"title,omitempty"` }
CreateChannelStreamScheduleSegmentBody defines model for CreateChannelStreamScheduleSegmentBody.
func (CreateChannelStreamScheduleSegmentBody) GetCategoryId ¶
func (datatype CreateChannelStreamScheduleSegmentBody) GetCategoryId() string
func (CreateChannelStreamScheduleSegmentBody) GetDuration ¶
func (datatype CreateChannelStreamScheduleSegmentBody) GetDuration() string
func (CreateChannelStreamScheduleSegmentBody) GetIsRecurring ¶
func (datatype CreateChannelStreamScheduleSegmentBody) GetIsRecurring() bool
func (CreateChannelStreamScheduleSegmentBody) GetStartTime ¶
func (datatype CreateChannelStreamScheduleSegmentBody) GetStartTime() time.Time
func (CreateChannelStreamScheduleSegmentBody) GetTimezone ¶
func (datatype CreateChannelStreamScheduleSegmentBody) GetTimezone() string
func (CreateChannelStreamScheduleSegmentBody) GetTitle ¶
func (datatype CreateChannelStreamScheduleSegmentBody) GetTitle() string
type CreateChannelStreamScheduleSegmentHTTPResponse ¶
type CreateChannelStreamScheduleSegmentHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CreateChannelStreamScheduleSegmentResponse }
func ParseCreateChannelStreamScheduleSegmentHTTPResponse ¶
func ParseCreateChannelStreamScheduleSegmentHTTPResponse(rsp *http.Response) (*CreateChannelStreamScheduleSegmentHTTPResponse, error)
ParseCreateChannelStreamScheduleSegmentHTTPResponse parses an HTTP response from a CreateChannelStreamScheduleSegmentWithResponse call
func (CreateChannelStreamScheduleSegmentHTTPResponse) Status ¶
func (r CreateChannelStreamScheduleSegmentHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CreateChannelStreamScheduleSegmentHTTPResponse) StatusCode ¶
func (r CreateChannelStreamScheduleSegmentHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateChannelStreamScheduleSegmentJSONRequestBody ¶
type CreateChannelStreamScheduleSegmentJSONRequestBody = CreateChannelStreamScheduleSegmentBody
CreateChannelStreamScheduleSegmentJSONRequestBody defines body for CreateChannelStreamScheduleSegment for application/json ContentType.
type CreateChannelStreamScheduleSegmentParams ¶
type CreateChannelStreamScheduleSegmentParams struct { // BroadcasterId The ID of the broadcaster that owns the schedule to add the broadcast segment to. This ID must match the user ID in the user access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
CreateChannelStreamScheduleSegmentParams defines parameters for CreateChannelStreamScheduleSegment.
type CreateChannelStreamScheduleSegmentResponse ¶
type CreateChannelStreamScheduleSegmentResponse struct { // Data The broadcaster’s streaming scheduled. Data struct { // BroadcasterId The ID of the broadcaster that owns the broadcast schedule. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // Segments A list that contains the single broadcast segment that you added. Segments []ChannelStreamScheduleSegment `json:"segments"` // Vacation The dates when the broadcaster is on vacation and not streaming. Is set to **null** if vacation mode is not enabled. Vacation struct { // EndTime The UTC date and time (in RFC3339 format) of when the broadcaster’s vacation ends. EndTime time.Time `json:"end_time"` // StartTime The UTC date and time (in RFC3339 format) of when the broadcaster’s vacation starts. StartTime time.Time `json:"start_time"` } `json:"vacation"` } `json:"data"` }
CreateChannelStreamScheduleSegmentResponse defines model for CreateChannelStreamScheduleSegmentResponse.
func (CreateChannelStreamScheduleSegmentResponse) GetData ¶
func (datatype CreateChannelStreamScheduleSegmentResponse) GetData() struct { // BroadcasterId The ID of the broadcaster that owns the broadcast schedule. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // Segments A list that contains the single broadcast segment that you added. Segments []ChannelStreamScheduleSegment `json:"segments"` // Vacation The dates when the broadcaster is on vacation and not streaming. Is set to **null** if vacation mode is not enabled. Vacation struct { // EndTime The UTC date and time (in RFC3339 format) of when the broadcaster’s vacation ends. EndTime time.Time `json:"end_time"` // StartTime The UTC date and time (in RFC3339 format) of when the broadcaster’s vacation starts. StartTime time.Time `json:"start_time"` } `json:"vacation"` }
type CreateClipHTTPResponse ¶
type CreateClipHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON202 *CreateClipResponse }
func ParseCreateClipHTTPResponse ¶
func ParseCreateClipHTTPResponse(rsp *http.Response) (*CreateClipHTTPResponse, error)
ParseCreateClipHTTPResponse parses an HTTP response from a CreateClipWithResponse call
func (CreateClipHTTPResponse) Status ¶
func (r CreateClipHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CreateClipHTTPResponse) StatusCode ¶
func (r CreateClipHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateClipParams ¶
type CreateClipParams struct { // BroadcasterId The ID of the broadcaster whose stream you want to create a clip from. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // HasDelay A Boolean value that determines whether the API captures the clip at the moment the viewer requests it or after a delay. If **false** (default), Twitch captures the clip at the moment the viewer requests it (this is the same clip experience as the Twitch UX). If **true**, Twitch adds a delay before capturing the clip (this basically shifts the capture window to the right slightly). HasDelay *bool `form:"has_delay,omitempty" json:"has_delay,omitempty"` }
CreateClipParams defines parameters for CreateClip.
type CreateClipResponse ¶
type CreateClipResponse struct { Data []struct { // EditUrl A URL that you can use to edit the clip’s title, identify the part of the clip to publish, and publish the clip. [Learn More](https://help.twitch.tv/s/article/how-to-use-clips) // // The URL is valid for up to 24 hours or until the clip is published, whichever comes first. EditUrl string `json:"edit_url"` // Id An ID that uniquely identifies the clip. Id string `json:"id"` } `json:"data"` }
CreateClipResponse defines model for CreateClipResponse.
func (CreateClipResponse) GetData ¶
func (datatype CreateClipResponse) GetData() []struct { // EditUrl A URL that you can use to edit the clip’s title, identify the part of the clip to publish, and publish the clip. [Learn More](https://help.twitch.tv/s/article/how-to-use-clips) // // The URL is valid for up to 24 hours or until the clip is published, whichever comes first. EditUrl string `json:"edit_url"` // Id An ID that uniquely identifies the clip. Id string `json:"id"` }
type CreateConduitsBody ¶
type CreateConduitsBody struct { // ShardCount The number of shards to create for this conduit. ShardCount int32 `json:"shard_count"` }
CreateConduitsBody defines model for CreateConduitsBody.
func (CreateConduitsBody) GetShardCount ¶
func (datatype CreateConduitsBody) GetShardCount() int32
type CreateConduitsHTTPResponse ¶
type CreateConduitsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CreateConduitsResponse }
func ParseCreateConduitsHTTPResponse ¶
func ParseCreateConduitsHTTPResponse(rsp *http.Response) (*CreateConduitsHTTPResponse, error)
ParseCreateConduitsHTTPResponse parses an HTTP response from a CreateConduitsWithResponse call
func (CreateConduitsHTTPResponse) Status ¶
func (r CreateConduitsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CreateConduitsHTTPResponse) StatusCode ¶
func (r CreateConduitsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateConduitsJSONRequestBody ¶
type CreateConduitsJSONRequestBody = CreateConduitsBody
CreateConduitsJSONRequestBody defines body for CreateConduits for application/json ContentType.
type CreateConduitsResponse ¶
type CreateConduitsResponse struct { // Data List of information about the client’s conduits. Data []struct { // Id Conduit ID. Id string `json:"id"` // ShardCount Number of shards created for this conduit. ShardCount int32 `json:"shard_count"` } `json:"data"` }
CreateConduitsResponse defines model for CreateConduitsResponse.
func (CreateConduitsResponse) GetData ¶
func (datatype CreateConduitsResponse) GetData() []struct { // Id Conduit ID. Id string `json:"id"` // ShardCount Number of shards created for this conduit. ShardCount int32 `json:"shard_count"` }
type CreateCustomRewardsBody ¶
type CreateCustomRewardsBody struct { // BackgroundColor The background color to use for the reward. Specify the color using Hex format (for example, #9147FF). BackgroundColor *string `json:"background_color,omitempty"` // Cost The cost of the reward, in Channel Points. The minimum is 1 point. Cost int64 `json:"cost"` // GlobalCooldownSeconds The cooldown period, in seconds. Applied only if the `is_global_cooldown_enabled` field is **true**. The minimum value is 1; however, the minimum value is 60 for it to be shown in the Twitch UX. GlobalCooldownSeconds *int32 `json:"global_cooldown_seconds,omitempty"` // IsEnabled A Boolean value that determines whether the reward is enabled. Viewers see only enabled rewards. The default is **true**. IsEnabled *bool `json:"is_enabled,omitempty"` // IsGlobalCooldownEnabled A Boolean value that determines whether to apply a cooldown period between redemptions (see the `global_cooldown_seconds` field for the duration of the cooldown period). The default is **false**. IsGlobalCooldownEnabled *bool `json:"is_global_cooldown_enabled,omitempty"` // IsMaxPerStreamEnabled A Boolean value that determines whether to limit the maximum number of redemptions allowed per live stream (see the `max_per_stream` field). The default is **false**. IsMaxPerStreamEnabled *bool `json:"is_max_per_stream_enabled,omitempty"` // IsMaxPerUserPerStreamEnabled A Boolean value that determines whether to limit the maximum number of redemptions allowed per user per stream (see the `max_per_user_per_stream` field). The default is **false**. IsMaxPerUserPerStreamEnabled *bool `json:"is_max_per_user_per_stream_enabled,omitempty"` // IsUserInputRequired A Boolean value that determines whether the user needs to enter information when redeeming the reward. See the `prompt` field. The default is **false**. IsUserInputRequired *bool `json:"is_user_input_required,omitempty"` // MaxPerStream The maximum number of redemptions allowed per live stream. Applied only if `is_max_per_stream_enabled` is **true**. The minimum value is 1. MaxPerStream *int32 `json:"max_per_stream,omitempty"` // MaxPerUserPerStream The maximum number of redemptions allowed per user per stream. Applied only if `is_max_per_user_per_stream_enabled` is **true**. The minimum value is 1. MaxPerUserPerStream *int32 `json:"max_per_user_per_stream,omitempty"` // Prompt The prompt shown to the viewer when they redeem the reward. Specify a prompt if `is_user_input_required` is **true**. The prompt is limited to a maximum of 200 characters. Prompt *string `json:"prompt,omitempty"` // ShouldRedemptionsSkipRequestQueue A Boolean value that determines whether redemptions should be set to FULFILLED status immediately when a reward is redeemed. If **false**, status is set to UNFULFILLED and follows the normal request queue process. The default is **false**. ShouldRedemptionsSkipRequestQueue *bool `json:"should_redemptions_skip_request_queue,omitempty"` // Title The custom reward’s title. The title may contain a maximum of 45 characters and it must be unique amongst all of the broadcaster’s custom rewards. Title string `json:"title"` }
CreateCustomRewardsBody defines model for CreateCustomRewardsBody.
func (CreateCustomRewardsBody) GetBackgroundColor ¶
func (datatype CreateCustomRewardsBody) GetBackgroundColor() string
func (CreateCustomRewardsBody) GetCost ¶
func (datatype CreateCustomRewardsBody) GetCost() int64
func (CreateCustomRewardsBody) GetGlobalCooldownSeconds ¶
func (datatype CreateCustomRewardsBody) GetGlobalCooldownSeconds() int32
func (CreateCustomRewardsBody) GetIsEnabled ¶
func (datatype CreateCustomRewardsBody) GetIsEnabled() bool
func (CreateCustomRewardsBody) GetIsGlobalCooldownEnabled ¶
func (datatype CreateCustomRewardsBody) GetIsGlobalCooldownEnabled() bool
func (CreateCustomRewardsBody) GetIsMaxPerStreamEnabled ¶
func (datatype CreateCustomRewardsBody) GetIsMaxPerStreamEnabled() bool
func (CreateCustomRewardsBody) GetIsMaxPerUserPerStreamEnabled ¶
func (datatype CreateCustomRewardsBody) GetIsMaxPerUserPerStreamEnabled() bool
func (CreateCustomRewardsBody) GetIsUserInputRequired ¶
func (datatype CreateCustomRewardsBody) GetIsUserInputRequired() bool
func (CreateCustomRewardsBody) GetMaxPerStream ¶
func (datatype CreateCustomRewardsBody) GetMaxPerStream() int32
func (CreateCustomRewardsBody) GetMaxPerUserPerStream ¶
func (datatype CreateCustomRewardsBody) GetMaxPerUserPerStream() int32
func (CreateCustomRewardsBody) GetPrompt ¶
func (datatype CreateCustomRewardsBody) GetPrompt() string
func (CreateCustomRewardsBody) GetShouldRedemptionsSkipRequestQueue ¶
func (datatype CreateCustomRewardsBody) GetShouldRedemptionsSkipRequestQueue() bool
func (CreateCustomRewardsBody) GetTitle ¶
func (datatype CreateCustomRewardsBody) GetTitle() string
type CreateCustomRewardsHTTPResponse ¶
type CreateCustomRewardsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CreateCustomRewardsResponse }
func ParseCreateCustomRewardsHTTPResponse ¶
func ParseCreateCustomRewardsHTTPResponse(rsp *http.Response) (*CreateCustomRewardsHTTPResponse, error)
ParseCreateCustomRewardsHTTPResponse parses an HTTP response from a CreateCustomRewardsWithResponse call
func (CreateCustomRewardsHTTPResponse) Status ¶
func (r CreateCustomRewardsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CreateCustomRewardsHTTPResponse) StatusCode ¶
func (r CreateCustomRewardsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateCustomRewardsJSONRequestBody ¶
type CreateCustomRewardsJSONRequestBody = CreateCustomRewardsBody
CreateCustomRewardsJSONRequestBody defines body for CreateCustomRewards for application/json ContentType.
type CreateCustomRewardsParams ¶
type CreateCustomRewardsParams struct { // BroadcasterId The ID of the broadcaster to add the custom reward to. This ID must match the user ID found in the OAuth token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
CreateCustomRewardsParams defines parameters for CreateCustomRewards.
type CreateCustomRewardsResponse ¶
type CreateCustomRewardsResponse struct { // Data A list that contains the single custom reward you created. Data []CustomReward `json:"data"` }
CreateCustomRewardsResponse defines model for CreateCustomRewardsResponse.
func (CreateCustomRewardsResponse) GetData ¶
func (datatype CreateCustomRewardsResponse) GetData() []CustomReward
type CreateEventSubSubscriptionBody ¶
type CreateEventSubSubscriptionBody struct { // Condition A JSON object that contains the parameter values that are specific to the specified subscription type. For the object’s required and optional fields, see the subscription type’s documentation. Condition map[string]interface{} `json:"condition"` // Transport The transport details that you want Twitch to use when sending you notifications. Transport struct { // Callback The callback URL where the notifications are sent. The URL must use the HTTPS protocol and port 443\. See [Processing an event](https://dev.twitch.tv/docs/eventsub/handling-webhook-events#processing-an-event). Specify this field only if `method` is set to **webhook**. // // **NOTE**: Redirects are not followed. Callback *string `json:"callback,omitempty"` // ConduitId An ID that identifies the conduit to send notifications to. When you create a conduit, the server returns the conduit ID. Specify this field only if `method` is set to **conduit**. ConduitId *string `json:"conduit_id,omitempty"` // Method The transport method. Possible values are: // // * webhook // * websocket // * conduit Method CreateEventSubSubscriptionBodyTransportMethod `json:"method"` // Secret The secret used to verify the signature. The secret must be an ASCII string that’s a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see [Verifying the event message](https://dev.twitch.tv/docs/eventsub/handling-webhook-events#verifying-the-event-message). Specify this field only if `method` is set to **webhook**. Secret *string `json:"secret,omitempty"` // SessionId An ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message. Specify this field only if `method` is set to **websocket**. SessionId *string `json:"session_id,omitempty"` } `json:"transport"` // Type The type of subscription to create. For a list of subscriptions that you can create, see [Subscription Types](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#subscription-types). Set this field to the value in the **Name** column of the Subscription Types table. Type CreateEventSubSubscriptionBodyType `json:"type"` // Version The version number that identifies the definition of the subscription type that you want the response to use. Version string `json:"version"` }
CreateEventSubSubscriptionBody defines model for CreateEventSubSubscriptionBody.
func (CreateEventSubSubscriptionBody) GetCondition ¶
func (datatype CreateEventSubSubscriptionBody) GetCondition() map[string]interface{}
func (CreateEventSubSubscriptionBody) GetTransport ¶
func (datatype CreateEventSubSubscriptionBody) GetTransport() struct { // Callback The callback URL where the notifications are sent. The URL must use the HTTPS protocol and port 443\. See [Processing an event](https://dev.twitch.tv/docs/eventsub/handling-webhook-events#processing-an-event). Specify this field only if `method` is set to **webhook**. // // **NOTE**: Redirects are not followed. Callback *string `json:"callback,omitempty"` // ConduitId An ID that identifies the conduit to send notifications to. When you create a conduit, the server returns the conduit ID. Specify this field only if `method` is set to **conduit**. ConduitId *string `json:"conduit_id,omitempty"` // Method The transport method. Possible values are: // // * webhook // * websocket // * conduit Method CreateEventSubSubscriptionBodyTransportMethod `json:"method"` // Secret The secret used to verify the signature. The secret must be an ASCII string that’s a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see [Verifying the event message](https://dev.twitch.tv/docs/eventsub/handling-webhook-events#verifying-the-event-message). Specify this field only if `method` is set to **webhook**. Secret *string `json:"secret,omitempty"` // SessionId An ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message. Specify this field only if `method` is set to **websocket**. SessionId *string `json:"session_id,omitempty"` }
func (CreateEventSubSubscriptionBody) GetType ¶
func (datatype CreateEventSubSubscriptionBody) GetType() CreateEventSubSubscriptionBodyType
func (CreateEventSubSubscriptionBody) GetVersion ¶
func (datatype CreateEventSubSubscriptionBody) GetVersion() string
type CreateEventSubSubscriptionBodyTransportMethod ¶
type CreateEventSubSubscriptionBodyTransportMethod string
CreateEventSubSubscriptionBodyTransportMethod The transport method. Possible values are:
* webhook * websocket * conduit
const ( CreateEventSubSubscriptionBodyTransportMethodConduit CreateEventSubSubscriptionBodyTransportMethod = "conduit" CreateEventSubSubscriptionBodyTransportMethodWebhook CreateEventSubSubscriptionBodyTransportMethod = "webhook" CreateEventSubSubscriptionBodyTransportMethodWebsocket CreateEventSubSubscriptionBodyTransportMethod = "websocket" )
Defines values for CreateEventSubSubscriptionBodyTransportMethod.
type CreateEventSubSubscriptionBodyType ¶
type CreateEventSubSubscriptionBodyType string
CreateEventSubSubscriptionBodyType The type of subscription to create. For a list of subscriptions that you can create, see [Subscription Types](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#subscription-types). Set this field to the value in the **Name** column of the Subscription Types table.
const ( CreateEventSubSubscriptionBodyTypeAutomodMessageHold CreateEventSubSubscriptionBodyType = "automod.message.hold" CreateEventSubSubscriptionBodyTypeAutomodMessageUpdate CreateEventSubSubscriptionBodyType = "automod.message.update" CreateEventSubSubscriptionBodyTypeAutomodSettingsUpdate CreateEventSubSubscriptionBodyType = "automod.settings.update" CreateEventSubSubscriptionBodyTypeAutomodTermsUpdate CreateEventSubSubscriptionBodyType = "automod.terms.update" CreateEventSubSubscriptionBodyTypeChannelAdBreakBegin CreateEventSubSubscriptionBodyType = "channel.ad_break.begin" CreateEventSubSubscriptionBodyTypeChannelBan CreateEventSubSubscriptionBodyType = "channel.ban" CreateEventSubSubscriptionBodyTypeChannelChannelPointsAutomaticRewardRedemptionAdd CreateEventSubSubscriptionBodyType = "channel.channel_points_automatic_reward_redemption.add" CreateEventSubSubscriptionBodyTypeChannelChannelPointsCustomRewardAdd CreateEventSubSubscriptionBodyType = "channel.channel_points_custom_reward.add" CreateEventSubSubscriptionBodyTypeChannelChannelPointsCustomRewardRedemptionAdd CreateEventSubSubscriptionBodyType = "channel.channel_points_custom_reward_redemption.add" CreateEventSubSubscriptionBodyTypeChannelChannelPointsCustomRewardRedemptionUpdate CreateEventSubSubscriptionBodyType = "channel.channel_points_custom_reward_redemption.update" CreateEventSubSubscriptionBodyTypeChannelChannelPointsCustomRewardRemove CreateEventSubSubscriptionBodyType = "channel.channel_points_custom_reward.remove" CreateEventSubSubscriptionBodyTypeChannelChannelPointsCustomRewardUpdate CreateEventSubSubscriptionBodyType = "channel.channel_points_custom_reward.update" CreateEventSubSubscriptionBodyTypeChannelCharityCampaignDonate CreateEventSubSubscriptionBodyType = "channel.charity_campaign.donate" CreateEventSubSubscriptionBodyTypeChannelCharityCampaignProgress CreateEventSubSubscriptionBodyType = "channel.charity_campaign.progress" CreateEventSubSubscriptionBodyTypeChannelCharityCampaignStart CreateEventSubSubscriptionBodyType = "channel.charity_campaign.start" CreateEventSubSubscriptionBodyTypeChannelCharityCampaignStop CreateEventSubSubscriptionBodyType = "channel.charity_campaign.stop" CreateEventSubSubscriptionBodyTypeChannelChatClear CreateEventSubSubscriptionBodyType = "channel.chat.clear" CreateEventSubSubscriptionBodyTypeChannelChatClearUserMessages CreateEventSubSubscriptionBodyType = "channel.chat.clear_user_messages" CreateEventSubSubscriptionBodyTypeChannelChatMessage CreateEventSubSubscriptionBodyType = "channel.chat.message" CreateEventSubSubscriptionBodyTypeChannelChatMessageDelete CreateEventSubSubscriptionBodyType = "channel.chat.message_delete" CreateEventSubSubscriptionBodyTypeChannelChatNotification CreateEventSubSubscriptionBodyType = "channel.chat.notification" CreateEventSubSubscriptionBodyTypeChannelChatSettingsUpdate CreateEventSubSubscriptionBodyType = "channel.chat_settings.update" CreateEventSubSubscriptionBodyTypeChannelChatUserMessageHold CreateEventSubSubscriptionBodyType = "channel.chat.user_message_hold" CreateEventSubSubscriptionBodyTypeChannelChatUserMessageUpdate CreateEventSubSubscriptionBodyType = "channel.chat.user_message_update" CreateEventSubSubscriptionBodyTypeChannelCheer CreateEventSubSubscriptionBodyType = "channel.cheer" CreateEventSubSubscriptionBodyTypeChannelFollow CreateEventSubSubscriptionBodyType = "channel.follow" CreateEventSubSubscriptionBodyTypeChannelGoalBegin CreateEventSubSubscriptionBodyType = "channel.goal.begin" CreateEventSubSubscriptionBodyTypeChannelGoalEnd CreateEventSubSubscriptionBodyType = "channel.goal.end" CreateEventSubSubscriptionBodyTypeChannelGoalProgress CreateEventSubSubscriptionBodyType = "channel.goal.progress" CreateEventSubSubscriptionBodyTypeChannelGuestStarGuestUpdate CreateEventSubSubscriptionBodyType = "channel.guest_star_guest.update" CreateEventSubSubscriptionBodyTypeChannelGuestStarSessionBegin CreateEventSubSubscriptionBodyType = "channel.guest_star_session.begin" CreateEventSubSubscriptionBodyTypeChannelGuestStarSessionEnd CreateEventSubSubscriptionBodyType = "channel.guest_star_session.end" CreateEventSubSubscriptionBodyTypeChannelGuestStarSettingsUpdate CreateEventSubSubscriptionBodyType = "channel.guest_star_settings.update" CreateEventSubSubscriptionBodyTypeChannelHypeTrainBegin CreateEventSubSubscriptionBodyType = "channel.hype_train.begin" CreateEventSubSubscriptionBodyTypeChannelHypeTrainEnd CreateEventSubSubscriptionBodyType = "channel.hype_train.end" CreateEventSubSubscriptionBodyTypeChannelHypeTrainProgress CreateEventSubSubscriptionBodyType = "channel.hype_train.progress" CreateEventSubSubscriptionBodyTypeChannelModerate CreateEventSubSubscriptionBodyType = "channel.moderate" CreateEventSubSubscriptionBodyTypeChannelModeratorAdd CreateEventSubSubscriptionBodyType = "channel.moderator.add" CreateEventSubSubscriptionBodyTypeChannelModeratorRemove CreateEventSubSubscriptionBodyType = "channel.moderator.remove" CreateEventSubSubscriptionBodyTypeChannelPollBegin CreateEventSubSubscriptionBodyType = "channel.poll.begin" CreateEventSubSubscriptionBodyTypeChannelPollEnd CreateEventSubSubscriptionBodyType = "channel.poll.end" CreateEventSubSubscriptionBodyTypeChannelPollProgress CreateEventSubSubscriptionBodyType = "channel.poll.progress" CreateEventSubSubscriptionBodyTypeChannelPredictionBegin CreateEventSubSubscriptionBodyType = "channel.prediction.begin" CreateEventSubSubscriptionBodyTypeChannelPredictionEnd CreateEventSubSubscriptionBodyType = "channel.prediction.end" CreateEventSubSubscriptionBodyTypeChannelPredictionLock CreateEventSubSubscriptionBodyType = "channel.prediction.lock" CreateEventSubSubscriptionBodyTypeChannelPredictionProgress CreateEventSubSubscriptionBodyType = "channel.prediction.progress" CreateEventSubSubscriptionBodyTypeChannelRaid CreateEventSubSubscriptionBodyType = "channel.raid" CreateEventSubSubscriptionBodyTypeChannelShieldModeBegin CreateEventSubSubscriptionBodyType = "channel.shield_mode.begin" CreateEventSubSubscriptionBodyTypeChannelShieldModeEnd CreateEventSubSubscriptionBodyType = "channel.shield_mode.end" CreateEventSubSubscriptionBodyTypeChannelShoutoutCreate CreateEventSubSubscriptionBodyType = "channel.shoutout.create" CreateEventSubSubscriptionBodyTypeChannelShoutoutReceive CreateEventSubSubscriptionBodyType = "channel.shoutout.receive" CreateEventSubSubscriptionBodyTypeChannelSubscribe CreateEventSubSubscriptionBodyType = "channel.subscribe" CreateEventSubSubscriptionBodyTypeChannelSubscriptionEnd CreateEventSubSubscriptionBodyType = "channel.subscription.end" CreateEventSubSubscriptionBodyTypeChannelSubscriptionGift CreateEventSubSubscriptionBodyType = "channel.subscription.gift" CreateEventSubSubscriptionBodyTypeChannelSubscriptionMessage CreateEventSubSubscriptionBodyType = "channel.subscription.message" CreateEventSubSubscriptionBodyTypeChannelSuspiciousUserMessage CreateEventSubSubscriptionBodyType = "channel.suspicious_user.message" CreateEventSubSubscriptionBodyTypeChannelSuspiciousUserUpdate CreateEventSubSubscriptionBodyType = "channel.suspicious_user.update" CreateEventSubSubscriptionBodyTypeChannelUnban CreateEventSubSubscriptionBodyType = "channel.unban" CreateEventSubSubscriptionBodyTypeChannelUnbanRequestCreate CreateEventSubSubscriptionBodyType = "channel.unban_request.create" CreateEventSubSubscriptionBodyTypeChannelUnbanRequestResolve CreateEventSubSubscriptionBodyType = "channel.unban_request.resolve" CreateEventSubSubscriptionBodyTypeChannelUpdate CreateEventSubSubscriptionBodyType = "channel.update" CreateEventSubSubscriptionBodyTypeChannelVipAdd CreateEventSubSubscriptionBodyType = "channel.vip.add" CreateEventSubSubscriptionBodyTypeChannelVipRemove CreateEventSubSubscriptionBodyType = "channel.vip.remove" CreateEventSubSubscriptionBodyTypeChannelWarningAcknowledge CreateEventSubSubscriptionBodyType = "channel.warning.acknowledge" CreateEventSubSubscriptionBodyTypeChannelWarningSend CreateEventSubSubscriptionBodyType = "channel.warning.send" CreateEventSubSubscriptionBodyTypeConduitShardDisabled CreateEventSubSubscriptionBodyType = "conduit.shard.disabled" CreateEventSubSubscriptionBodyTypeDropEntitlementGrant CreateEventSubSubscriptionBodyType = "drop.entitlement.grant" CreateEventSubSubscriptionBodyTypeExtensionBitsTransactionCreate CreateEventSubSubscriptionBodyType = "extension.bits_transaction.create" CreateEventSubSubscriptionBodyTypeStreamOffline CreateEventSubSubscriptionBodyType = "stream.offline" CreateEventSubSubscriptionBodyTypeStreamOnline CreateEventSubSubscriptionBodyType = "stream.online" CreateEventSubSubscriptionBodyTypeUserAuthorizationGrant CreateEventSubSubscriptionBodyType = "user.authorization.grant" CreateEventSubSubscriptionBodyTypeUserAuthorizationRevoke CreateEventSubSubscriptionBodyType = "user.authorization.revoke" CreateEventSubSubscriptionBodyTypeUserUpdate CreateEventSubSubscriptionBodyType = "user.update" CreateEventSubSubscriptionBodyTypeUserWhisperMessage CreateEventSubSubscriptionBodyType = "user.whisper.message" )
Defines values for CreateEventSubSubscriptionBodyType.
type CreateEventSubSubscriptionResponse ¶
type CreateEventSubSubscriptionResponse struct { // Data A list that contains the single subscription that you created. Data []EventSubSubscription `json:"data"` // MaxTotalCost The maximum total cost that you’re allowed to incur for all subscriptions you create. MaxTotalCost int32 `json:"max_total_cost"` // Total The total number of subscriptions you’ve created. Total int32 `json:"total"` // TotalCost The sum of all of your subscription costs. [Learn More](https://dev.twitch.tv/docs/eventsub/manage-subscriptions/#subscription-limits) TotalCost int32 `json:"total_cost"` }
CreateEventSubSubscriptionResponse defines model for CreateEventSubSubscriptionResponse.
func (CreateEventSubSubscriptionResponse) GetData ¶
func (datatype CreateEventSubSubscriptionResponse) GetData() []EventSubSubscription
func (CreateEventSubSubscriptionResponse) GetMaxTotalCost ¶
func (datatype CreateEventSubSubscriptionResponse) GetMaxTotalCost() int32
func (CreateEventSubSubscriptionResponse) GetTotal ¶
func (datatype CreateEventSubSubscriptionResponse) GetTotal() int32
func (CreateEventSubSubscriptionResponse) GetTotalCost ¶
func (datatype CreateEventSubSubscriptionResponse) GetTotalCost() int32
type CreateEventsubSubscriptionHTTPResponse ¶
type CreateEventsubSubscriptionHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON202 *CreateEventSubSubscriptionResponse }
func ParseCreateEventsubSubscriptionHTTPResponse ¶
func ParseCreateEventsubSubscriptionHTTPResponse(rsp *http.Response) (*CreateEventsubSubscriptionHTTPResponse, error)
ParseCreateEventsubSubscriptionHTTPResponse parses an HTTP response from a CreateEventsubSubscriptionWithResponse call
func (CreateEventsubSubscriptionHTTPResponse) Status ¶
func (r CreateEventsubSubscriptionHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CreateEventsubSubscriptionHTTPResponse) StatusCode ¶
func (r CreateEventsubSubscriptionHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateEventsubSubscriptionJSONRequestBody ¶
type CreateEventsubSubscriptionJSONRequestBody = CreateEventSubSubscriptionBody
CreateEventsubSubscriptionJSONRequestBody defines body for CreateEventsubSubscription for application/json ContentType.
type CreateExtensionSecretHTTPResponse ¶
type CreateExtensionSecretHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CreateExtensionSecretResponse }
func ParseCreateExtensionSecretHTTPResponse ¶
func ParseCreateExtensionSecretHTTPResponse(rsp *http.Response) (*CreateExtensionSecretHTTPResponse, error)
ParseCreateExtensionSecretHTTPResponse parses an HTTP response from a CreateExtensionSecretWithResponse call
func (CreateExtensionSecretHTTPResponse) Status ¶
func (r CreateExtensionSecretHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CreateExtensionSecretHTTPResponse) StatusCode ¶
func (r CreateExtensionSecretHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateExtensionSecretParams ¶
type CreateExtensionSecretParams struct { // ExtensionId The ID of the extension to apply the shared secret to. ExtensionId string `form:"extension_id" json:"extension_id"` // Delay The amount of time, in seconds, to delay activating the secret. The delay should provide enough time for instances of the extension to gracefully switch over to the new secret. The minimum delay is 300 seconds (5 minutes). The default is 300 seconds. Delay *int32 `form:"delay,omitempty" json:"delay,omitempty"` }
CreateExtensionSecretParams defines parameters for CreateExtensionSecret.
type CreateExtensionSecretResponse ¶
type CreateExtensionSecretResponse struct { // Data A list that contains the newly added secrets. Data []ExtensionSecret `json:"data"` }
CreateExtensionSecretResponse defines model for CreateExtensionSecretResponse.
func (CreateExtensionSecretResponse) GetData ¶
func (datatype CreateExtensionSecretResponse) GetData() []ExtensionSecret
type CreateGuestStarSessionHTTPResponse ¶
type CreateGuestStarSessionHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CreateGuestStarSessionResponse }
func ParseCreateGuestStarSessionHTTPResponse ¶
func ParseCreateGuestStarSessionHTTPResponse(rsp *http.Response) (*CreateGuestStarSessionHTTPResponse, error)
ParseCreateGuestStarSessionHTTPResponse parses an HTTP response from a CreateGuestStarSessionWithResponse call
func (CreateGuestStarSessionHTTPResponse) Status ¶
func (r CreateGuestStarSessionHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CreateGuestStarSessionHTTPResponse) StatusCode ¶
func (r CreateGuestStarSessionHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateGuestStarSessionParams ¶
type CreateGuestStarSessionParams struct { // BroadcasterId The ID of the broadcaster you want to create a Guest Star session for. Provided `broadcaster_id` must match the `user_id` in the auth token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
CreateGuestStarSessionParams defines parameters for CreateGuestStarSession.
type CreateGuestStarSessionResponse ¶
type CreateGuestStarSessionResponse struct { // Data Summary of the session details. Data []GuestStarSession `json:"data"` }
CreateGuestStarSessionResponse defines model for CreateGuestStarSessionResponse.
func (CreateGuestStarSessionResponse) GetData ¶
func (datatype CreateGuestStarSessionResponse) GetData() []GuestStarSession
type CreatePollBody ¶
type CreatePollBody struct { // BroadcasterId The ID of the broadcaster that’s running the poll. This ID must match the user ID in the user access token. BroadcasterId string `json:"broadcaster_id"` // ChannelPointsPerVote The number of points that the viewer must spend to cast one additional vote. The minimum is 1 and the maximum is 1000000\. Set only if `ChannelPointsVotingEnabled` is **true**. ChannelPointsPerVote *int32 `json:"channel_points_per_vote,omitempty"` // ChannelPointsVotingEnabled A Boolean value that indicates whether viewers may cast additional votes using Channel Points. If **true**, the viewer may cast more than one vote but each additional vote costs the number of Channel Points specified in `channel_points_per_vote`. The default is **false** (viewers may cast only one vote). For information about Channel Points, see [Channel Points Guide](https://help.twitch.tv/s/article/channel-points-guide). ChannelPointsVotingEnabled *bool `json:"channel_points_voting_enabled,omitempty"` // Choices A list of choices that viewers may choose from. The list must contain a minimum of 2 choices and up to a maximum of 5 choices. Choices []struct { // Title One of the choices the viewer may select. The choice may contain a maximum of 25 characters. Title string `json:"title"` } `json:"choices"` // Duration The length of time (in seconds) that the poll will run for. The minimum is 15 seconds and the maximum is 1800 seconds (30 minutes). Duration int32 `json:"duration"` // Title The question that viewers will vote on. For example, _What game should I play next?_ The question may contain a maximum of 60 characters. Title string `json:"title"` }
CreatePollBody defines model for CreatePollBody.
func (CreatePollBody) GetBroadcasterId ¶
func (datatype CreatePollBody) GetBroadcasterId() string
func (CreatePollBody) GetChannelPointsPerVote ¶
func (datatype CreatePollBody) GetChannelPointsPerVote() int32
func (CreatePollBody) GetChannelPointsVotingEnabled ¶
func (datatype CreatePollBody) GetChannelPointsVotingEnabled() bool
func (CreatePollBody) GetChoices ¶
func (datatype CreatePollBody) GetChoices() []struct { // Title One of the choices the viewer may select. The choice may contain a maximum of 25 characters. Title string `json:"title"` }
func (CreatePollBody) GetDuration ¶
func (datatype CreatePollBody) GetDuration() int32
func (CreatePollBody) GetTitle ¶
func (datatype CreatePollBody) GetTitle() string
type CreatePollHTTPResponse ¶
type CreatePollHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CreatePollResponse }
func ParseCreatePollHTTPResponse ¶
func ParseCreatePollHTTPResponse(rsp *http.Response) (*CreatePollHTTPResponse, error)
ParseCreatePollHTTPResponse parses an HTTP response from a CreatePollWithResponse call
func (CreatePollHTTPResponse) Status ¶
func (r CreatePollHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CreatePollHTTPResponse) StatusCode ¶
func (r CreatePollHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePollJSONRequestBody ¶
type CreatePollJSONRequestBody = CreatePollBody
CreatePollJSONRequestBody defines body for CreatePoll for application/json ContentType.
type CreatePollResponse ¶
type CreatePollResponse struct { // Data A list that contains the single poll that you created. Data []Poll `json:"data"` }
CreatePollResponse defines model for CreatePollResponse.
func (CreatePollResponse) GetData ¶
func (datatype CreatePollResponse) GetData() []Poll
type CreatePredictionBody ¶
type CreatePredictionBody struct { // BroadcasterId The ID of the broadcaster that’s running the prediction. This ID must match the user ID in the user access token. BroadcasterId string `json:"broadcaster_id"` // Outcomes The list of possible outcomes that the viewers may choose from. The list must contain a minimum of 2 choices and up to a maximum of 10 choices. Outcomes []struct { // Title The text of one of the outcomes that the viewer may select. The title is limited to a maximum of 25 characters. Title string `json:"title"` } `json:"outcomes"` // PredictionWindow The length of time (in seconds) that the prediction will run for. The minimum is 30 seconds and the maximum is 1800 seconds (30 minutes). PredictionWindow int32 `json:"prediction_window"` // Title The question that the broadcaster is asking. For example, _Will I finish this entire pizza?_ The title is limited to a maximum of 45 characters. Title string `json:"title"` }
CreatePredictionBody defines model for CreatePredictionBody.
func (CreatePredictionBody) GetBroadcasterId ¶
func (datatype CreatePredictionBody) GetBroadcasterId() string
func (CreatePredictionBody) GetOutcomes ¶
func (datatype CreatePredictionBody) GetOutcomes() []struct { // Title The text of one of the outcomes that the viewer may select. The title is limited to a maximum of 25 characters. Title string `json:"title"` }
func (CreatePredictionBody) GetPredictionWindow ¶
func (datatype CreatePredictionBody) GetPredictionWindow() int32
func (CreatePredictionBody) GetTitle ¶
func (datatype CreatePredictionBody) GetTitle() string
type CreatePredictionHTTPResponse ¶
type CreatePredictionHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CreatePredictionResponse }
func ParseCreatePredictionHTTPResponse ¶
func ParseCreatePredictionHTTPResponse(rsp *http.Response) (*CreatePredictionHTTPResponse, error)
ParseCreatePredictionHTTPResponse parses an HTTP response from a CreatePredictionWithResponse call
func (CreatePredictionHTTPResponse) Status ¶
func (r CreatePredictionHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CreatePredictionHTTPResponse) StatusCode ¶
func (r CreatePredictionHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePredictionJSONRequestBody ¶
type CreatePredictionJSONRequestBody = CreatePredictionBody
CreatePredictionJSONRequestBody defines body for CreatePrediction for application/json ContentType.
type CreatePredictionResponse ¶
type CreatePredictionResponse struct { // Data A list that contains the single prediction that you created. Data []Prediction `json:"data"` }
CreatePredictionResponse defines model for CreatePredictionResponse.
func (CreatePredictionResponse) GetData ¶
func (datatype CreatePredictionResponse) GetData() []Prediction
type CreateStreamMarkerBody ¶
type CreateStreamMarkerBody struct { // Description A short description of the marker to help the user remember why they marked the location. The maximum length of the description is 140 characters. Description *string `json:"description,omitempty"` // UserId The ID of the broadcaster that’s streaming content. This ID must match the user ID in the access token or the user in the access token must be one of the broadcaster’s editors. UserId string `json:"user_id"` }
CreateStreamMarkerBody defines model for CreateStreamMarkerBody.
func (CreateStreamMarkerBody) GetDescription ¶
func (datatype CreateStreamMarkerBody) GetDescription() string
func (CreateStreamMarkerBody) GetUserId ¶
func (datatype CreateStreamMarkerBody) GetUserId() string
type CreateStreamMarkerHTTPResponse ¶
type CreateStreamMarkerHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CreateStreamMarkerResponse }
func ParseCreateStreamMarkerHTTPResponse ¶
func ParseCreateStreamMarkerHTTPResponse(rsp *http.Response) (*CreateStreamMarkerHTTPResponse, error)
ParseCreateStreamMarkerHTTPResponse parses an HTTP response from a CreateStreamMarkerWithResponse call
func (CreateStreamMarkerHTTPResponse) Status ¶
func (r CreateStreamMarkerHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (CreateStreamMarkerHTTPResponse) StatusCode ¶
func (r CreateStreamMarkerHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateStreamMarkerJSONRequestBody ¶
type CreateStreamMarkerJSONRequestBody = CreateStreamMarkerBody
CreateStreamMarkerJSONRequestBody defines body for CreateStreamMarker for application/json ContentType.
type CreateStreamMarkerResponse ¶
type CreateStreamMarkerResponse struct { // Data A list that contains the single marker that you added. Data []StreamMarkerCreated `json:"data"` }
CreateStreamMarkerResponse defines model for CreateStreamMarkerResponse.
func (CreateStreamMarkerResponse) GetData ¶
func (datatype CreateStreamMarkerResponse) GetData() []StreamMarkerCreated
type CreatorGoal ¶
type CreatorGoal struct { // BroadcasterId An ID that identifies the broadcaster that created the goal. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // CreatedAt The UTC date and time (in RFC3339 format) that the broadcaster created the goal. CreatedAt time.Time `json:"created_at"` // CurrentAmount The goal’s current value. // // The goal’s `type` determines how this value is increased or decreased. // // * If `type` is follower, this field is set to the broadcaster's current number of followers. This number increases with new followers and decreases when users unfollow the broadcaster. // * If `type` is subscription, this field is increased and decreased by the points value associated with the subscription tier. For example, if a tier-two subscription is worth 2 points, this field is increased or decreased by 2, not 1. // * If `type` is subscription\_count, this field is increased by 1 for each new subscription and decreased by 1 for each user that unsubscribes. // * If `type` is new\_subscription, this field is increased by the points value associated with the subscription tier. For example, if a tier-two subscription is worth 2 points, this field is increased by 2, not 1. // * If `type` is new\_subscription\_count, this field is increased by 1 for each new subscription. CurrentAmount int32 `json:"current_amount"` // Description A description of the goal. Is an empty string if not specified. Description string `json:"description"` // Id An ID that identifies this goal. Id string `json:"id"` // TargetAmount The goal’s target value. For example, if the broadcaster has 200 followers before creating the goal, and their goal is to double that number, this field is set to 400. TargetAmount int32 `json:"target_amount"` // Type The type of goal. Possible values are: // // * follower — The goal is to increase followers. // * subscription — The goal is to increase subscriptions. This type shows the net increase or decrease in tier points associated with the subscriptions. // * subscription\_count — The goal is to increase subscriptions. This type shows the net increase or decrease in the number of subscriptions. // * new\_subscription — The goal is to increase subscriptions. This type shows only the net increase in tier points associated with the subscriptions (it does not account for users that unsubscribed since the goal started). // * new\_subscription\_count — The goal is to increase subscriptions. This type shows only the net increase in the number of subscriptions (it does not account for users that unsubscribed since the goal started). Type CreatorGoalType `json:"type"` }
CreatorGoal defines model for CreatorGoal.
func (CreatorGoal) GetBroadcasterId ¶
func (datatype CreatorGoal) GetBroadcasterId() string
func (CreatorGoal) GetBroadcasterLogin ¶
func (datatype CreatorGoal) GetBroadcasterLogin() string
func (CreatorGoal) GetBroadcasterName ¶
func (datatype CreatorGoal) GetBroadcasterName() string
func (CreatorGoal) GetCreatedAt ¶
func (datatype CreatorGoal) GetCreatedAt() time.Time
func (CreatorGoal) GetCurrentAmount ¶
func (datatype CreatorGoal) GetCurrentAmount() int32
func (CreatorGoal) GetDescription ¶
func (datatype CreatorGoal) GetDescription() string
func (CreatorGoal) GetId ¶
func (datatype CreatorGoal) GetId() string
func (CreatorGoal) GetTargetAmount ¶
func (datatype CreatorGoal) GetTargetAmount() int32
func (CreatorGoal) GetType ¶
func (datatype CreatorGoal) GetType() CreatorGoalType
type CreatorGoalType ¶
type CreatorGoalType string
CreatorGoalType The type of goal. Possible values are:
* follower — The goal is to increase followers. * subscription — The goal is to increase subscriptions. This type shows the net increase or decrease in tier points associated with the subscriptions. * subscription\_count — The goal is to increase subscriptions. This type shows the net increase or decrease in the number of subscriptions. * new\_subscription — The goal is to increase subscriptions. This type shows only the net increase in tier points associated with the subscriptions (it does not account for users that unsubscribed since the goal started). * new\_subscription\_count — The goal is to increase subscriptions. This type shows only the net increase in the number of subscriptions (it does not account for users that unsubscribed since the goal started).
const ( CreatorGoalTypeFollower CreatorGoalType = "follower" CreatorGoalTypeNewSubscription CreatorGoalType = "new_subscription" CreatorGoalTypeNewSubscriptionCount CreatorGoalType = "new_subscription_count" CreatorGoalTypeSubscription CreatorGoalType = "subscription" CreatorGoalTypeSubscriptionCount CreatorGoalType = "subscription_count" )
Defines values for CreatorGoalType.
type CustomReward ¶
type CustomReward struct { // BackgroundColor The background color to use for the reward. The color is in Hex format (for example, #00E5CB). BackgroundColor string `json:"background_color"` // BroadcasterId The ID that uniquely identifies the broadcaster. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // CooldownExpiresAt The timestamp of when the cooldown period expires. Is **null** if the reward isn’t in a cooldown state. See the `global_cooldown_setting` field. CooldownExpiresAt *time.Time `json:"cooldown_expires_at"` // Cost The cost of the reward in Channel Points. Cost int64 `json:"cost"` // DefaultImage A set of default images for the reward. DefaultImage struct { // Url1x The URL to a small version of the image. Url1x string `json:"url_1x"` // Url2x The URL to a medium version of the image. Url2x string `json:"url_2x"` // Url4x The URL to a large version of the image. Url4x string `json:"url_4x"` } `json:"default_image"` // GlobalCooldownSetting The settings used to determine whether to apply a cooldown period between redemptions and the length of the cooldown. GlobalCooldownSetting struct { // GlobalCooldownSeconds The cooldown period, in seconds. GlobalCooldownSeconds int64 `json:"global_cooldown_seconds"` // IsEnabled A Boolean value that determines whether to apply a cooldown period. Is **true** if a cooldown period is enabled. IsEnabled bool `json:"is_enabled"` } `json:"global_cooldown_setting"` // Id The ID that uniquely identifies this custom reward. Id string `json:"id"` // Image A set of custom images for the reward. This field is **null** if the broadcaster didn’t upload images. Image struct { // Url1x The URL to a small version of the image. Url1x string `json:"url_1x"` // Url2x The URL to a medium version of the image. Url2x string `json:"url_2x"` // Url4x The URL to a large version of the image. Url4x string `json:"url_4x"` } `json:"image"` // IsEnabled A Boolean value that determines whether the reward is enabled. Is **true** if enabled; otherwise, **false**. Disabled rewards aren’t shown to the user. IsEnabled bool `json:"is_enabled"` // IsInStock A Boolean value that determines whether the reward is currently in stock. Is **true** if the reward is in stock. Viewers can’t redeem out of stock rewards. IsInStock bool `json:"is_in_stock"` // IsPaused A Boolean value that determines whether the reward is currently paused. Is **true** if the reward is paused. Viewers can’t redeem paused rewards. IsPaused bool `json:"is_paused"` // IsUserInputRequired A Boolean value that determines whether the user must enter information when they redeem the reward. Is **true** if the user is prompted. IsUserInputRequired bool `json:"is_user_input_required"` // MaxPerStreamSetting The settings used to determine whether to apply a maximum to the number of redemptions allowed per live stream. MaxPerStreamSetting struct { // IsEnabled A Boolean value that determines whether the reward applies a limit on the number of redemptions allowed per live stream. Is **true** if the reward applies a limit. IsEnabled bool `json:"is_enabled"` // MaxPerStream The maximum number of redemptions allowed per live stream. MaxPerStream int64 `json:"max_per_stream"` } `json:"max_per_stream_setting"` // MaxPerUserPerStreamSetting The settings used to determine whether to apply a maximum to the number of redemptions allowed per user per live stream. MaxPerUserPerStreamSetting struct { // IsEnabled A Boolean value that determines whether the reward applies a limit on the number of redemptions allowed per user per live stream. Is **true** if the reward applies a limit. IsEnabled bool `json:"is_enabled"` // MaxPerUserPerStream The maximum number of redemptions allowed per user per live stream. MaxPerUserPerStream int64 `json:"max_per_user_per_stream"` } `json:"max_per_user_per_stream_setting"` // Prompt The prompt shown to the viewer when they redeem the reward if user input is required. See the `is_user_input_required` field. Prompt string `json:"prompt"` // RedemptionsRedeemedCurrentStream The number of redemptions redeemed during the current live stream. The number counts against the `max_per_stream_setting` limit. This field is **null** if the broadcaster’s stream isn’t live or _max\_per\_stream\_setting_ isn’t enabled. RedemptionsRedeemedCurrentStream *int32 `json:"redemptions_redeemed_current_stream"` // ShouldRedemptionsSkipRequestQueue A Boolean value that determines whether redemptions should be set to FULFILLED status immediately when a reward is redeemed. If **false**, status is set to UNFULFILLED and follows the normal request queue process. ShouldRedemptionsSkipRequestQueue bool `json:"should_redemptions_skip_request_queue"` // Title The title of the reward. Title string `json:"title"` }
CustomReward defines model for CustomReward.
func (CustomReward) GetBackgroundColor ¶
func (datatype CustomReward) GetBackgroundColor() string
func (CustomReward) GetBroadcasterId ¶
func (datatype CustomReward) GetBroadcasterId() string
func (CustomReward) GetBroadcasterLogin ¶
func (datatype CustomReward) GetBroadcasterLogin() string
func (CustomReward) GetBroadcasterName ¶
func (datatype CustomReward) GetBroadcasterName() string
func (CustomReward) GetCooldownExpiresAt ¶
func (datatype CustomReward) GetCooldownExpiresAt() time.Time
func (CustomReward) GetCost ¶
func (datatype CustomReward) GetCost() int64
func (CustomReward) GetDefaultImage ¶
func (datatype CustomReward) GetDefaultImage() struct { // Url1x The URL to a small version of the image. Url1x string `json:"url_1x"` // Url2x The URL to a medium version of the image. Url2x string `json:"url_2x"` // Url4x The URL to a large version of the image. Url4x string `json:"url_4x"` }
func (CustomReward) GetGlobalCooldownSetting ¶
func (datatype CustomReward) GetGlobalCooldownSetting() struct { // GlobalCooldownSeconds The cooldown period, in seconds. GlobalCooldownSeconds int64 `json:"global_cooldown_seconds"` // IsEnabled A Boolean value that determines whether to apply a cooldown period. Is **true** if a cooldown period is enabled. IsEnabled bool `json:"is_enabled"` }
func (CustomReward) GetId ¶
func (datatype CustomReward) GetId() string
func (CustomReward) GetImage ¶
func (datatype CustomReward) GetImage() struct { // Url1x The URL to a small version of the image. Url1x string `json:"url_1x"` // Url2x The URL to a medium version of the image. Url2x string `json:"url_2x"` // Url4x The URL to a large version of the image. Url4x string `json:"url_4x"` }
func (CustomReward) GetIsEnabled ¶
func (datatype CustomReward) GetIsEnabled() bool
func (CustomReward) GetIsInStock ¶
func (datatype CustomReward) GetIsInStock() bool
func (CustomReward) GetIsPaused ¶
func (datatype CustomReward) GetIsPaused() bool
func (CustomReward) GetIsUserInputRequired ¶
func (datatype CustomReward) GetIsUserInputRequired() bool
func (CustomReward) GetMaxPerStreamSetting ¶
func (datatype CustomReward) GetMaxPerStreamSetting() struct { // IsEnabled A Boolean value that determines whether the reward applies a limit on the number of redemptions allowed per live stream. Is **true** if the reward applies a limit. IsEnabled bool `json:"is_enabled"` // MaxPerStream The maximum number of redemptions allowed per live stream. MaxPerStream int64 `json:"max_per_stream"` }
func (CustomReward) GetMaxPerUserPerStreamSetting ¶
func (datatype CustomReward) GetMaxPerUserPerStreamSetting() struct { // IsEnabled A Boolean value that determines whether the reward applies a limit on the number of redemptions allowed per user per live stream. Is **true** if the reward applies a limit. IsEnabled bool `json:"is_enabled"` // MaxPerUserPerStream The maximum number of redemptions allowed per user per live stream. MaxPerUserPerStream int64 `json:"max_per_user_per_stream"` }
func (CustomReward) GetPrompt ¶
func (datatype CustomReward) GetPrompt() string
func (CustomReward) GetRedemptionsRedeemedCurrentStream ¶
func (datatype CustomReward) GetRedemptionsRedeemedCurrentStream() int32
func (CustomReward) GetShouldRedemptionsSkipRequestQueue ¶
func (datatype CustomReward) GetShouldRedemptionsSkipRequestQueue() bool
func (CustomReward) GetTitle ¶
func (datatype CustomReward) GetTitle() string
type CustomRewardRedemption ¶
type CustomRewardRedemption struct { // BroadcasterId The ID that uniquely identifies the broadcaster. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // Id The ID that uniquely identifies this redemption.. Id string `json:"id"` // RedeemedAt The date and time of when the reward was redeemed, in RFC3339 format. RedeemedAt time.Time `json:"redeemed_at"` // Reward An object that describes the reward that the user redeemed. Reward struct { // Cost The reward’s cost, in Channel Points. Cost int64 `json:"cost"` // Id The ID that uniquely identifies the reward. Id string `json:"id"` // Prompt The prompt displayed to the viewer if user input is required. Prompt string `json:"prompt"` // Title The reward’s title. Title string `json:"title"` } `json:"reward"` // Status The state of the redemption. Possible values are: // // * CANCELED // * FULFILLED // * UNFULFILLED Status CustomRewardRedemptionStatus `json:"status"` // UserId The ID of the user that redeemed the reward. UserId string `json:"user_id"` // UserInput The text that the user entered at the prompt when they redeemed the reward; otherwise, an empty string if user input was not required. UserInput string `json:"user_input"` // UserLogin The user’s login name. UserLogin string `json:"user_login"` // UserName The user’s display name. UserName string `json:"user_name"` }
CustomRewardRedemption defines model for CustomRewardRedemption.
func (CustomRewardRedemption) GetBroadcasterId ¶
func (datatype CustomRewardRedemption) GetBroadcasterId() string
func (CustomRewardRedemption) GetBroadcasterLogin ¶
func (datatype CustomRewardRedemption) GetBroadcasterLogin() string
func (CustomRewardRedemption) GetBroadcasterName ¶
func (datatype CustomRewardRedemption) GetBroadcasterName() string
func (CustomRewardRedemption) GetId ¶
func (datatype CustomRewardRedemption) GetId() string
func (CustomRewardRedemption) GetRedeemedAt ¶
func (datatype CustomRewardRedemption) GetRedeemedAt() time.Time
func (CustomRewardRedemption) GetReward ¶
func (datatype CustomRewardRedemption) GetReward() struct { // Cost The reward’s cost, in Channel Points. Cost int64 `json:"cost"` // Id The ID that uniquely identifies the reward. Id string `json:"id"` // Prompt The prompt displayed to the viewer if user input is required. Prompt string `json:"prompt"` // Title The reward’s title. Title string `json:"title"` }
func (CustomRewardRedemption) GetStatus ¶
func (datatype CustomRewardRedemption) GetStatus() CustomRewardRedemptionStatus
func (CustomRewardRedemption) GetUserId ¶
func (datatype CustomRewardRedemption) GetUserId() string
func (CustomRewardRedemption) GetUserInput ¶
func (datatype CustomRewardRedemption) GetUserInput() string
func (CustomRewardRedemption) GetUserLogin ¶
func (datatype CustomRewardRedemption) GetUserLogin() string
func (CustomRewardRedemption) GetUserName ¶
func (datatype CustomRewardRedemption) GetUserName() string
type CustomRewardRedemptionStatus ¶
type CustomRewardRedemptionStatus string
CustomRewardRedemptionStatus The state of the redemption. Possible values are:
* CANCELED * FULFILLED * UNFULFILLED
const ( CustomRewardRedemptionStatusCANCELED CustomRewardRedemptionStatus = "CANCELED" CustomRewardRedemptionStatusFULFILLED CustomRewardRedemptionStatus = "FULFILLED" CustomRewardRedemptionStatusUNFULFILLED CustomRewardRedemptionStatus = "UNFULFILLED" )
Defines values for CustomRewardRedemptionStatus.
type DeleteChannelStreamScheduleSegmentHTTPResponse ¶
type DeleteChannelStreamScheduleSegmentHTTPResponse struct { Body []byte HTTPResponse *http.Response }
func ParseDeleteChannelStreamScheduleSegmentHTTPResponse ¶
func ParseDeleteChannelStreamScheduleSegmentHTTPResponse(rsp *http.Response) (*DeleteChannelStreamScheduleSegmentHTTPResponse, error)
ParseDeleteChannelStreamScheduleSegmentHTTPResponse parses an HTTP response from a DeleteChannelStreamScheduleSegmentWithResponse call
func (DeleteChannelStreamScheduleSegmentHTTPResponse) Status ¶
func (r DeleteChannelStreamScheduleSegmentHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteChannelStreamScheduleSegmentHTTPResponse) StatusCode ¶
func (r DeleteChannelStreamScheduleSegmentHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteChannelStreamScheduleSegmentParams ¶
type DeleteChannelStreamScheduleSegmentParams struct { // BroadcasterId The ID of the broadcaster that owns the streaming schedule. This ID must match the user ID in the user access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // Id The ID of the broadcast segment to remove. Id string `form:"id" json:"id"` }
DeleteChannelStreamScheduleSegmentParams defines parameters for DeleteChannelStreamScheduleSegment.
type DeleteChatMessagesHTTPResponse ¶
func ParseDeleteChatMessagesHTTPResponse ¶
func ParseDeleteChatMessagesHTTPResponse(rsp *http.Response) (*DeleteChatMessagesHTTPResponse, error)
ParseDeleteChatMessagesHTTPResponse parses an HTTP response from a DeleteChatMessagesWithResponse call
func (DeleteChatMessagesHTTPResponse) Status ¶
func (r DeleteChatMessagesHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteChatMessagesHTTPResponse) StatusCode ¶
func (r DeleteChatMessagesHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteChatMessagesParams ¶
type DeleteChatMessagesParams struct { // BroadcasterId The ID of the broadcaster that owns the chat room to remove messages from. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s chat room. This ID must match the user ID in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` // MessageId The ID of the message to remove. The `id` tag in the [PRIVMSG](https://dev.twitch.tv/docs/irc/tags#privmsg-tags) tag contains the message’s ID. Restrictions: // // * The message must have been created within the last 6 hours. // * The message must not belong to the broadcaster. // * The message must not belong to another moderator. // // If not specified, the request removes all messages in the broadcaster’s chat room. MessageId *string `form:"message_id,omitempty" json:"message_id,omitempty"` }
DeleteChatMessagesParams defines parameters for DeleteChatMessages.
type DeleteConduitHTTPResponse ¶
func ParseDeleteConduitHTTPResponse ¶
func ParseDeleteConduitHTTPResponse(rsp *http.Response) (*DeleteConduitHTTPResponse, error)
ParseDeleteConduitHTTPResponse parses an HTTP response from a DeleteConduitWithResponse call
func (DeleteConduitHTTPResponse) Status ¶
func (r DeleteConduitHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteConduitHTTPResponse) StatusCode ¶
func (r DeleteConduitHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteConduitParams ¶
type DeleteConduitParams struct { // Id Conduit ID. Id string `form:"id" json:"id"` }
DeleteConduitParams defines parameters for DeleteConduit.
type DeleteCustomRewardHTTPResponse ¶
func ParseDeleteCustomRewardHTTPResponse ¶
func ParseDeleteCustomRewardHTTPResponse(rsp *http.Response) (*DeleteCustomRewardHTTPResponse, error)
ParseDeleteCustomRewardHTTPResponse parses an HTTP response from a DeleteCustomRewardWithResponse call
func (DeleteCustomRewardHTTPResponse) Status ¶
func (r DeleteCustomRewardHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteCustomRewardHTTPResponse) StatusCode ¶
func (r DeleteCustomRewardHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteCustomRewardParams ¶
type DeleteCustomRewardParams struct { // BroadcasterId The ID of the broadcaster that created the custom reward. This ID must match the user ID found in the OAuth token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // Id The ID of the custom reward to delete. Id string `form:"id" json:"id"` }
DeleteCustomRewardParams defines parameters for DeleteCustomReward.
type DeleteEventsubSubscriptionHTTPResponse ¶
func ParseDeleteEventsubSubscriptionHTTPResponse ¶
func ParseDeleteEventsubSubscriptionHTTPResponse(rsp *http.Response) (*DeleteEventsubSubscriptionHTTPResponse, error)
ParseDeleteEventsubSubscriptionHTTPResponse parses an HTTP response from a DeleteEventsubSubscriptionWithResponse call
func (DeleteEventsubSubscriptionHTTPResponse) Status ¶
func (r DeleteEventsubSubscriptionHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteEventsubSubscriptionHTTPResponse) StatusCode ¶
func (r DeleteEventsubSubscriptionHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteEventsubSubscriptionParams ¶
type DeleteEventsubSubscriptionParams struct { // Id The ID of the subscription to delete. Id string `form:"id" json:"id"` }
DeleteEventsubSubscriptionParams defines parameters for DeleteEventsubSubscription.
type DeleteGuestStarInviteHTTPResponse ¶
func ParseDeleteGuestStarInviteHTTPResponse ¶
func ParseDeleteGuestStarInviteHTTPResponse(rsp *http.Response) (*DeleteGuestStarInviteHTTPResponse, error)
ParseDeleteGuestStarInviteHTTPResponse parses an HTTP response from a DeleteGuestStarInviteWithResponse call
func (DeleteGuestStarInviteHTTPResponse) Status ¶
func (r DeleteGuestStarInviteHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteGuestStarInviteHTTPResponse) StatusCode ¶
func (r DeleteGuestStarInviteHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteGuestStarInviteParams ¶
type DeleteGuestStarInviteParams struct { // BroadcasterId The ID of the broadcaster running the Guest Star session. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s chat room. This ID must match the `user_id` in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` // SessionId The ID of the session for the invite to be revoked on behalf of the broadcaster. SessionId string `form:"session_id" json:"session_id"` // GuestId Twitch User ID for the guest to revoke the Guest Star session invite from. GuestId string `form:"guest_id" json:"guest_id"` }
DeleteGuestStarInviteParams defines parameters for DeleteGuestStarInvite.
type DeleteGuestStarSlotHTTPResponse ¶
func ParseDeleteGuestStarSlotHTTPResponse ¶
func ParseDeleteGuestStarSlotHTTPResponse(rsp *http.Response) (*DeleteGuestStarSlotHTTPResponse, error)
ParseDeleteGuestStarSlotHTTPResponse parses an HTTP response from a DeleteGuestStarSlotWithResponse call
func (DeleteGuestStarSlotHTTPResponse) Status ¶
func (r DeleteGuestStarSlotHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteGuestStarSlotHTTPResponse) StatusCode ¶
func (r DeleteGuestStarSlotHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteGuestStarSlotParams ¶
type DeleteGuestStarSlotParams struct { // BroadcasterId The ID of the broadcaster running the Guest Star session. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s chat room. This ID must match the user ID in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` // SessionId The ID of the Guest Star session in which to remove the slot assignment. SessionId string `form:"session_id" json:"session_id"` // GuestId The Twitch User ID corresponding to the guest to remove from the session. GuestId string `form:"guest_id" json:"guest_id"` // SlotId The slot ID representing the slot assignment to remove from the session. SlotId string `form:"slot_id" json:"slot_id"` // ShouldReinviteGuest Flag signaling that the guest should be reinvited to the session, sending them back to the invite queue. ShouldReinviteGuest *string `form:"should_reinvite_guest,omitempty" json:"should_reinvite_guest,omitempty"` }
DeleteGuestStarSlotParams defines parameters for DeleteGuestStarSlot.
type DeleteVideosHTTPResponse ¶
type DeleteVideosHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *DeleteVideosResponse }
func ParseDeleteVideosHTTPResponse ¶
func ParseDeleteVideosHTTPResponse(rsp *http.Response) (*DeleteVideosHTTPResponse, error)
ParseDeleteVideosHTTPResponse parses an HTTP response from a DeleteVideosWithResponse call
func (DeleteVideosHTTPResponse) Status ¶
func (r DeleteVideosHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteVideosHTTPResponse) StatusCode ¶
func (r DeleteVideosHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteVideosParams ¶
type DeleteVideosParams struct { // Id The list of videos to delete. To specify more than one video, include the _id_ parameter for each video to delete. For example, `id=1234&id=5678`. You can delete a maximum of 5 videos per request. Ignores invalid video IDs. // // If the user doesn’t have permission to delete one of the videos in the list, none of the videos are deleted. Id []string `form:"id" json:"id"` }
DeleteVideosParams defines parameters for DeleteVideos.
type DeleteVideosResponse ¶
type DeleteVideosResponse struct { // Data The list of IDs of the videos that were deleted. Data []string `json:"data"` }
DeleteVideosResponse defines model for DeleteVideosResponse.
func (DeleteVideosResponse) GetData ¶
func (datatype DeleteVideosResponse) GetData() []string
type DropsEntitlement ¶
type DropsEntitlement struct { // BenefitId An ID that identifies the benefit (reward). BenefitId string `json:"benefit_id"` // FulfillmentStatus The entitlement’s fulfillment status. Possible values are: // // * CLAIMED // * FULFILLED FulfillmentStatus DropsEntitlementFulfillmentStatus `json:"fulfillment_status"` // GameId An ID that identifies the game the user was playing when the reward was entitled. GameId string `json:"game_id"` // Id An ID that identifies the entitlement. Id string `json:"id"` // LastUpdated The UTC date and time (in RFC3339 format) of when the entitlement was last updated. LastUpdated time.Time `json:"last_updated"` // Timestamp The UTC date and time (in RFC3339 format) of when the entitlement was granted. Timestamp time.Time `json:"timestamp"` // UserId An ID that identifies the user who was granted the entitlement. UserId string `json:"user_id"` }
DropsEntitlement defines model for DropsEntitlement.
func (DropsEntitlement) GetBenefitId ¶
func (datatype DropsEntitlement) GetBenefitId() string
func (DropsEntitlement) GetFulfillmentStatus ¶
func (datatype DropsEntitlement) GetFulfillmentStatus() DropsEntitlementFulfillmentStatus
func (DropsEntitlement) GetGameId ¶
func (datatype DropsEntitlement) GetGameId() string
func (DropsEntitlement) GetId ¶
func (datatype DropsEntitlement) GetId() string
func (DropsEntitlement) GetLastUpdated ¶
func (datatype DropsEntitlement) GetLastUpdated() time.Time
func (DropsEntitlement) GetTimestamp ¶
func (datatype DropsEntitlement) GetTimestamp() time.Time
func (DropsEntitlement) GetUserId ¶
func (datatype DropsEntitlement) GetUserId() string
type DropsEntitlementFulfillmentStatus ¶
type DropsEntitlementFulfillmentStatus string
DropsEntitlementFulfillmentStatus The entitlement’s fulfillment status. Possible values are:
* CLAIMED * FULFILLED
const ( DropsEntitlementFulfillmentStatusCLAIMED DropsEntitlementFulfillmentStatus = "CLAIMED" DropsEntitlementFulfillmentStatusFULFILLED DropsEntitlementFulfillmentStatus = "FULFILLED" )
Defines values for DropsEntitlementFulfillmentStatus.
type DropsEntitlementUpdated ¶
type DropsEntitlementUpdated struct { // Ids The list of entitlements that the status in the `status` field applies to. Ids []string `json:"ids"` // Status A string that indicates whether the status of the entitlements in the `ids` field were successfully updated. Possible values are: // // * INVALID\_ID — The entitlement IDs in the `ids` field are not valid. // * NOT\_FOUND — The entitlement IDs in the `ids` field were not found. // * SUCCESS — The status of the entitlements in the `ids` field were successfully updated. // * UNAUTHORIZED — The user or organization identified by the user access token is not authorized to update the entitlements. // * UPDATE\_FAILED — The update failed. These are considered transient errors and the request should be retried later. Status DropsEntitlementUpdatedStatus `json:"status"` }
DropsEntitlementUpdated defines model for DropsEntitlementUpdated.
func (DropsEntitlementUpdated) GetIds ¶
func (datatype DropsEntitlementUpdated) GetIds() []string
func (DropsEntitlementUpdated) GetStatus ¶
func (datatype DropsEntitlementUpdated) GetStatus() DropsEntitlementUpdatedStatus
type DropsEntitlementUpdatedStatus ¶
type DropsEntitlementUpdatedStatus string
DropsEntitlementUpdatedStatus A string that indicates whether the status of the entitlements in the `ids` field were successfully updated. Possible values are:
* INVALID\_ID — The entitlement IDs in the `ids` field are not valid. * NOT\_FOUND — The entitlement IDs in the `ids` field were not found. * SUCCESS — The status of the entitlements in the `ids` field were successfully updated. * UNAUTHORIZED — The user or organization identified by the user access token is not authorized to update the entitlements. * UPDATE\_FAILED — The update failed. These are considered transient errors and the request should be retried later.
const ( INVALIDID DropsEntitlementUpdatedStatus = "INVALID_ID" NOTFOUND DropsEntitlementUpdatedStatus = "NOT_FOUND" SUCCESS DropsEntitlementUpdatedStatus = "SUCCESS" UNAUTHORIZED DropsEntitlementUpdatedStatus = "UNAUTHORIZED" UPDATEFAILED DropsEntitlementUpdatedStatus = "UPDATE_FAILED" )
Defines values for DropsEntitlementUpdatedStatus.
type Emote ¶
type Emote struct { // EmoteSetId An ID that identifies the emote set that the emote belongs to. EmoteSetId string `json:"emote_set_id"` // EmoteType The type of emote. The possible values are: // // * bitstier — A Bits tier emote. // * follower — A follower emote. // * subscriptions — A subscriber emote. EmoteType EmoteEmoteType `json:"emote_type"` // Format The formats that the emote is available in. For example, if the emote is available only as a static PNG, the array contains only `static`. But if the emote is available as a static PNG and an animated GIF, the array contains `static` and `animated`. The possible formats are: // // * animated — An animated GIF is available for this emote. // * static — A static PNG file is available for this emote. Format []EmoteFormat `json:"format"` // Id An ID that uniquely identifies this emote. Id string `json:"id"` // Images The image URLs for the emote. These image URLs always provide a static, non-animated emote image with a light background. // // **NOTE:** You should use the templated URL in the `template` field to fetch the image instead of using these URLs. Images struct { // Url1x A URL to the small version (28px x 28px) of the emote. Url1x string `json:"url_1x"` // Url2x A URL to the medium version (56px x 56px) of the emote. Url2x string `json:"url_2x"` // Url4x A URL to the large version (112px x 112px) of the emote. Url4x string `json:"url_4x"` } `json:"images"` // Name The name of the emote. This is the name that viewers type in the chat window to get the emote to appear. Name string `json:"name"` // OwnerId The ID of the broadcaster who owns the emote. OwnerId string `json:"owner_id"` // Scale The sizes that the emote is available in. For example, if the emote is available in small and medium sizes, the array contains 1.0 and 2.0\. Possible sizes are: // // * 1.0 — A small version (28px x 28px) is available. // * 2.0 — A medium version (56px x 56px) is available. // * 3.0 — A large version (112px x 112px) is available. Scale []EmoteScale `json:"scale"` // ThemeMode The background themes that the emote is available in. Possible themes are: // // * dark // * light ThemeMode []EmoteThemeMode `json:"theme_mode"` }
Emote defines model for Emote.
func (Emote) GetEmoteSetId ¶
func (Emote) GetEmoteType ¶
func (datatype Emote) GetEmoteType() EmoteEmoteType
func (Emote) GetFormat ¶
func (datatype Emote) GetFormat() []EmoteFormat
func (Emote) GetImages ¶
func (datatype Emote) GetImages() struct { // Url1x A URL to the small version (28px x 28px) of the emote. Url1x string `json:"url_1x"` // Url2x A URL to the medium version (56px x 56px) of the emote. Url2x string `json:"url_2x"` // Url4x A URL to the large version (112px x 112px) of the emote. Url4x string `json:"url_4x"` }
func (Emote) GetOwnerId ¶
func (Emote) GetScale ¶
func (datatype Emote) GetScale() []EmoteScale
func (Emote) GetThemeMode ¶
func (datatype Emote) GetThemeMode() []EmoteThemeMode
type EmoteEmoteType ¶
type EmoteEmoteType string
EmoteEmoteType The type of emote. The possible values are:
* bitstier — A Bits tier emote. * follower — A follower emote. * subscriptions — A subscriber emote.
const ( EmoteEmoteTypeBitstier EmoteEmoteType = "bitstier" EmoteEmoteTypeFollower EmoteEmoteType = "follower" EmoteEmoteTypeSubscriptions EmoteEmoteType = "subscriptions" )
Defines values for EmoteEmoteType.
type EmoteFormat ¶
type EmoteFormat string
EmoteFormat defines model for Emote.Format.
const ( EmoteFormatAnimated EmoteFormat = "animated" EmoteFormatStatic EmoteFormat = "static" )
Defines values for EmoteFormat.
type EmoteScale ¶
type EmoteScale string
EmoteScale defines model for Emote.Scale.
const ( EmoteScaleN10 EmoteScale = "1.0" EmoteScaleN20 EmoteScale = "2.0" EmoteScaleN30 EmoteScale = "3.0" )
Defines values for EmoteScale.
type EmoteThemeMode ¶
type EmoteThemeMode string
EmoteThemeMode defines model for Emote.ThemeMode.
const ( EmoteThemeModeDark EmoteThemeMode = "dark" EmoteThemeModeLight EmoteThemeMode = "light" )
Defines values for EmoteThemeMode.
type EndGuestStarSessionHTTPResponse ¶
func ParseEndGuestStarSessionHTTPResponse ¶
func ParseEndGuestStarSessionHTTPResponse(rsp *http.Response) (*EndGuestStarSessionHTTPResponse, error)
ParseEndGuestStarSessionHTTPResponse parses an HTTP response from a EndGuestStarSessionWithResponse call
func (EndGuestStarSessionHTTPResponse) Status ¶
func (r EndGuestStarSessionHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (EndGuestStarSessionHTTPResponse) StatusCode ¶
func (r EndGuestStarSessionHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EndGuestStarSessionParams ¶
type EndGuestStarSessionParams struct { // BroadcasterId The ID of the broadcaster you want to end a Guest Star session for. Provided `broadcaster_id` must match the `user_id` in the auth token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // SessionId ID for the session to end on behalf of the broadcaster. SessionId string `form:"session_id" json:"session_id"` }
EndGuestStarSessionParams defines parameters for EndGuestStarSession.
type EndGuestStarSessionResponse ¶
type EndGuestStarSessionResponse struct { // Data Summary of the session details when the session was ended. Data []GuestStarSession `json:"data"` }
EndGuestStarSessionResponse defines model for EndGuestStarSessionResponse.
func (EndGuestStarSessionResponse) GetData ¶
func (datatype EndGuestStarSessionResponse) GetData() []GuestStarSession
type EndPollBody ¶
type EndPollBody struct { // BroadcasterId The ID of the broadcaster that’s running the poll. This ID must match the user ID in the user access token. BroadcasterId string `json:"broadcaster_id"` // Id The ID of the poll to update. Id string `json:"id"` // Status The status to set the poll to. Possible case-sensitive values are: // // * TERMINATED — Ends the poll before the poll is scheduled to end. The poll remains publicly visible. // * ARCHIVED — Ends the poll before the poll is scheduled to end, and then archives it so it's no longer publicly visible. Status EndPollBodyStatus `json:"status"` }
EndPollBody defines model for EndPollBody.
func (EndPollBody) GetBroadcasterId ¶
func (datatype EndPollBody) GetBroadcasterId() string
func (EndPollBody) GetId ¶
func (datatype EndPollBody) GetId() string
func (EndPollBody) GetStatus ¶
func (datatype EndPollBody) GetStatus() EndPollBodyStatus
type EndPollBodyStatus ¶
type EndPollBodyStatus string
EndPollBodyStatus The status to set the poll to. Possible case-sensitive values are:
* TERMINATED — Ends the poll before the poll is scheduled to end. The poll remains publicly visible. * ARCHIVED — Ends the poll before the poll is scheduled to end, and then archives it so it's no longer publicly visible.
const ( EndPollBodyStatusARCHIVED EndPollBodyStatus = "ARCHIVED" EndPollBodyStatusTERMINATED EndPollBodyStatus = "TERMINATED" )
Defines values for EndPollBodyStatus.
type EndPollHTTPResponse ¶
type EndPollHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *EndPollResponse }
func ParseEndPollHTTPResponse ¶
func ParseEndPollHTTPResponse(rsp *http.Response) (*EndPollHTTPResponse, error)
ParseEndPollHTTPResponse parses an HTTP response from a EndPollWithResponse call
func (EndPollHTTPResponse) Status ¶
func (r EndPollHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (EndPollHTTPResponse) StatusCode ¶
func (r EndPollHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EndPollJSONRequestBody ¶
type EndPollJSONRequestBody = EndPollBody
EndPollJSONRequestBody defines body for EndPoll for application/json ContentType.
type EndPollResponse ¶
type EndPollResponse struct { // Data A list that contains the poll that you ended. Data []Poll `json:"data"` }
EndPollResponse defines model for EndPollResponse.
func (EndPollResponse) GetData ¶
func (datatype EndPollResponse) GetData() []Poll
type EndPredictionBody ¶
type EndPredictionBody struct { // BroadcasterId The ID of the broadcaster that’s running the prediction. This ID must match the user ID in the user access token. BroadcasterId string `json:"broadcaster_id"` // Id The ID of the prediction to update. Id string `json:"id"` // Status The status to set the prediction to. Possible case-sensitive values are: // // * RESOLVED — The winning outcome is determined and the Channel Points are distributed to the viewers who predicted the correct outcome. // * CANCELED — The broadcaster is canceling the prediction and sending refunds to the participants. // * LOCKED — The broadcaster is locking the prediction, which means viewers may no longer make predictions. // // The broadcaster can update an active prediction to LOCKED, RESOLVED, or CANCELED; and update a locked prediction to RESOLVED or CANCELED. // // The broadcaster has up to 24 hours after the prediction window closes to resolve the prediction. If not, Twitch sets the status to CANCELED and returns the points. Status EndPredictionBodyStatus `json:"status"` // WinningOutcomeId The ID of the winning outcome. You must set this parameter if you set `status` to RESOLVED. WinningOutcomeId *string `json:"winning_outcome_id,omitempty"` }
EndPredictionBody defines model for EndPredictionBody.
func (EndPredictionBody) GetBroadcasterId ¶
func (datatype EndPredictionBody) GetBroadcasterId() string
func (EndPredictionBody) GetId ¶
func (datatype EndPredictionBody) GetId() string
func (EndPredictionBody) GetStatus ¶
func (datatype EndPredictionBody) GetStatus() EndPredictionBodyStatus
func (EndPredictionBody) GetWinningOutcomeId ¶
func (datatype EndPredictionBody) GetWinningOutcomeId() string
type EndPredictionBodyStatus ¶
type EndPredictionBodyStatus string
EndPredictionBodyStatus The status to set the prediction to. Possible case-sensitive values are:
* RESOLVED — The winning outcome is determined and the Channel Points are distributed to the viewers who predicted the correct outcome. * CANCELED — The broadcaster is canceling the prediction and sending refunds to the participants. * LOCKED — The broadcaster is locking the prediction, which means viewers may no longer make predictions.
The broadcaster can update an active prediction to LOCKED, RESOLVED, or CANCELED; and update a locked prediction to RESOLVED or CANCELED.
The broadcaster has up to 24 hours after the prediction window closes to resolve the prediction. If not, Twitch sets the status to CANCELED and returns the points.
const ( EndPredictionBodyStatusCANCELED EndPredictionBodyStatus = "CANCELED" EndPredictionBodyStatusLOCKED EndPredictionBodyStatus = "LOCKED" EndPredictionBodyStatusRESOLVED EndPredictionBodyStatus = "RESOLVED" )
Defines values for EndPredictionBodyStatus.
type EndPredictionHTTPResponse ¶
type EndPredictionHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *EndPredictionResponse }
func ParseEndPredictionHTTPResponse ¶
func ParseEndPredictionHTTPResponse(rsp *http.Response) (*EndPredictionHTTPResponse, error)
ParseEndPredictionHTTPResponse parses an HTTP response from a EndPredictionWithResponse call
func (EndPredictionHTTPResponse) Status ¶
func (r EndPredictionHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (EndPredictionHTTPResponse) StatusCode ¶
func (r EndPredictionHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EndPredictionJSONRequestBody ¶
type EndPredictionJSONRequestBody = EndPredictionBody
EndPredictionJSONRequestBody defines body for EndPrediction for application/json ContentType.
type EndPredictionResponse ¶
type EndPredictionResponse struct { // Data A list that contains the single prediction that you updated. Data []Prediction `json:"data"` }
EndPredictionResponse defines model for EndPredictionResponse.
func (EndPredictionResponse) GetData ¶
func (datatype EndPredictionResponse) GetData() []Prediction
type EventSubSubscription ¶
type EventSubSubscription struct { // Condition The subscription's parameter values. This is a string-encoded JSON object whose contents are determined by the subscription type. Condition map[string]interface{} `json:"condition"` // Cost The amount that the subscription counts against your limit. [Learn More](https://dev.twitch.tv/docs/eventsub/manage-subscriptions/#subscription-limits) Cost int32 `json:"cost"` // CreatedAt The date and time (in RFC3339 format) of when the subscription was created. CreatedAt time.Time `json:"created_at"` // Id An ID that identifies the subscription. Id string `json:"id"` // Status The subscription's status. The subscriber receives events only for **enabled** subscriptions. Possible values are: // // * enabled — The subscription is enabled. // * webhook\_callback\_verification\_pending — The subscription is pending verification of the specified callback URL. // * webhook\_callback\_verification\_failed — The specified callback URL failed verification. // * notification\_failures\_exceeded — The notification delivery failure rate was too high. // * authorization\_revoked — The authorization was revoked for one or more users specified in the **Condition** object. // * moderator\_removed — The moderator that authorized the subscription is no longer one of the broadcaster's moderators. // * user\_removed — One of the users specified in the **Condition** object was removed. // * version\_removed — The subscription to subscription type and version is no longer supported. // * beta\_maintenance — The subscription to the beta subscription type was removed due to maintenance. // * websocket\_disconnected — The client closed the connection. // * websocket\_failed\_ping\_pong — The client failed to respond to a ping message. // * websocket\_received\_inbound\_traffic — The client sent a non-pong message. Clients may only send pong messages (and only in response to a ping message). // * websocket\_connection\_unused — The client failed to subscribe to events within the required time. // * websocket\_internal\_error — The Twitch WebSocket server experienced an unexpected error. // * websocket\_network\_timeout — The Twitch WebSocket server timed out writing the message to the client. // * websocket\_network\_error — The Twitch WebSocket server experienced a network error writing the message to the client. Status EventSubSubscriptionStatus `json:"status"` // Transport The transport details used to send the notifications. Transport struct { // Callback The callback URL where the notifications are sent. Included only if `method` is set to **webhook**. Callback *string `json:"callback,omitempty"` // ConnectedAt The UTC date and time that the WebSocket connection was established. Included only if `method` is set to **websocket**. ConnectedAt *time.Time `json:"connected_at,omitempty"` // DisconnectedAt The UTC date and time that the WebSocket connection was lost. Included only if `method` is set to **websocket**. DisconnectedAt *time.Time `json:"disconnected_at,omitempty"` // Method The transport method. Possible values are: // // * webhook // * websocket Method EventSubSubscriptionTransportMethod `json:"method"` // SessionId An ID that identifies the WebSocket that notifications are sent to. Included only if `method` is set to **websocket**. SessionId *string `json:"session_id,omitempty"` } `json:"transport"` // Type The subscription's type. See [Subscription Types](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#subscription-types). Type EventSubSubscriptionType `json:"type"` // Version The version number that identifies this definition of the subscription's data. Version string `json:"version"` }
EventSubSubscription defines model for EventSubSubscription.
func (EventSubSubscription) GetCondition ¶
func (datatype EventSubSubscription) GetCondition() map[string]interface{}
func (EventSubSubscription) GetCost ¶
func (datatype EventSubSubscription) GetCost() int32
func (EventSubSubscription) GetCreatedAt ¶
func (datatype EventSubSubscription) GetCreatedAt() time.Time
func (EventSubSubscription) GetId ¶
func (datatype EventSubSubscription) GetId() string
func (EventSubSubscription) GetStatus ¶
func (datatype EventSubSubscription) GetStatus() EventSubSubscriptionStatus
func (EventSubSubscription) GetTransport ¶
func (datatype EventSubSubscription) GetTransport() struct { // Callback The callback URL where the notifications are sent. Included only if `method` is set to **webhook**. Callback *string `json:"callback,omitempty"` // ConnectedAt The UTC date and time that the WebSocket connection was established. Included only if `method` is set to **websocket**. ConnectedAt *time.Time `json:"connected_at,omitempty"` // DisconnectedAt The UTC date and time that the WebSocket connection was lost. Included only if `method` is set to **websocket**. DisconnectedAt *time.Time `json:"disconnected_at,omitempty"` // Method The transport method. Possible values are: // // * webhook // * websocket Method EventSubSubscriptionTransportMethod `json:"method"` // SessionId An ID that identifies the WebSocket that notifications are sent to. Included only if `method` is set to **websocket**. SessionId *string `json:"session_id,omitempty"` }
func (EventSubSubscription) GetType ¶
func (datatype EventSubSubscription) GetType() EventSubSubscriptionType
func (EventSubSubscription) GetVersion ¶
func (datatype EventSubSubscription) GetVersion() string
type EventSubSubscriptionStatus ¶
type EventSubSubscriptionStatus string
EventSubSubscriptionStatus The subscription's status. The subscriber receives events only for **enabled** subscriptions. Possible values are:
* enabled — The subscription is enabled. * webhook\_callback\_verification\_pending — The subscription is pending verification of the specified callback URL. * webhook\_callback\_verification\_failed — The specified callback URL failed verification. * notification\_failures\_exceeded — The notification delivery failure rate was too high. * authorization\_revoked — The authorization was revoked for one or more users specified in the **Condition** object. * moderator\_removed — The moderator that authorized the subscription is no longer one of the broadcaster's moderators. * user\_removed — One of the users specified in the **Condition** object was removed. * version\_removed — The subscription to subscription type and version is no longer supported. * beta\_maintenance — The subscription to the beta subscription type was removed due to maintenance. * websocket\_disconnected — The client closed the connection. * websocket\_failed\_ping\_pong — The client failed to respond to a ping message. * websocket\_received\_inbound\_traffic — The client sent a non-pong message. Clients may only send pong messages (and only in response to a ping message). * websocket\_connection\_unused — The client failed to subscribe to events within the required time. * websocket\_internal\_error — The Twitch WebSocket server experienced an unexpected error. * websocket\_network\_timeout — The Twitch WebSocket server timed out writing the message to the client. * websocket\_network\_error — The Twitch WebSocket server experienced a network error writing the message to the client.
const ( EventSubSubscriptionStatusAuthorizationRevoked EventSubSubscriptionStatus = "authorization_revoked" EventSubSubscriptionStatusBetaMaintenance EventSubSubscriptionStatus = "beta_maintenance" EventSubSubscriptionStatusEnabled EventSubSubscriptionStatus = "enabled" EventSubSubscriptionStatusModeratorRemoved EventSubSubscriptionStatus = "moderator_removed" EventSubSubscriptionStatusNotificationFailuresExceeded EventSubSubscriptionStatus = "notification_failures_exceeded" EventSubSubscriptionStatusUserRemoved EventSubSubscriptionStatus = "user_removed" EventSubSubscriptionStatusVersionRemoved EventSubSubscriptionStatus = "version_removed" EventSubSubscriptionStatusWebhookCallbackVerificationFailed EventSubSubscriptionStatus = "webhook_callback_verification_failed" EventSubSubscriptionStatusWebhookCallbackVerificationPending EventSubSubscriptionStatus = "webhook_callback_verification_pending" EventSubSubscriptionStatusWebsocketConnectionUnused EventSubSubscriptionStatus = "websocket_connection_unused" EventSubSubscriptionStatusWebsocketDisconnected EventSubSubscriptionStatus = "websocket_disconnected" EventSubSubscriptionStatusWebsocketFailedPingPong EventSubSubscriptionStatus = "websocket_failed_ping_pong" EventSubSubscriptionStatusWebsocketInternalError EventSubSubscriptionStatus = "websocket_internal_error" EventSubSubscriptionStatusWebsocketNetworkError EventSubSubscriptionStatus = "websocket_network_error" EventSubSubscriptionStatusWebsocketNetworkTimeout EventSubSubscriptionStatus = "websocket_network_timeout" EventSubSubscriptionStatusWebsocketReceivedInboundTraffic EventSubSubscriptionStatus = "websocket_received_inbound_traffic" )
Defines values for EventSubSubscriptionStatus.
type EventSubSubscriptionTransportMethod ¶
type EventSubSubscriptionTransportMethod string
EventSubSubscriptionTransportMethod The transport method. Possible values are:
* webhook * websocket
const ( EventSubSubscriptionTransportMethodWebhook EventSubSubscriptionTransportMethod = "webhook" EventSubSubscriptionTransportMethodWebsocket EventSubSubscriptionTransportMethod = "websocket" )
Defines values for EventSubSubscriptionTransportMethod.
type EventSubSubscriptionType ¶
type EventSubSubscriptionType string
EventSubSubscriptionType The subscription's type. See [Subscription Types](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#subscription-types).
const ( EventSubSubscriptionTypeAutomodMessageHold EventSubSubscriptionType = "automod.message.hold" EventSubSubscriptionTypeAutomodMessageUpdate EventSubSubscriptionType = "automod.message.update" EventSubSubscriptionTypeAutomodSettingsUpdate EventSubSubscriptionType = "automod.settings.update" EventSubSubscriptionTypeAutomodTermsUpdate EventSubSubscriptionType = "automod.terms.update" EventSubSubscriptionTypeChannelAdBreakBegin EventSubSubscriptionType = "channel.ad_break.begin" EventSubSubscriptionTypeChannelBan EventSubSubscriptionType = "channel.ban" EventSubSubscriptionTypeChannelChannelPointsAutomaticRewardRedemptionAdd EventSubSubscriptionType = "channel.channel_points_automatic_reward_redemption.add" EventSubSubscriptionTypeChannelChannelPointsCustomRewardAdd EventSubSubscriptionType = "channel.channel_points_custom_reward.add" EventSubSubscriptionTypeChannelChannelPointsCustomRewardRedemptionAdd EventSubSubscriptionType = "channel.channel_points_custom_reward_redemption.add" EventSubSubscriptionTypeChannelChannelPointsCustomRewardRedemptionUpdate EventSubSubscriptionType = "channel.channel_points_custom_reward_redemption.update" EventSubSubscriptionTypeChannelChannelPointsCustomRewardRemove EventSubSubscriptionType = "channel.channel_points_custom_reward.remove" EventSubSubscriptionTypeChannelChannelPointsCustomRewardUpdate EventSubSubscriptionType = "channel.channel_points_custom_reward.update" EventSubSubscriptionTypeChannelCharityCampaignDonate EventSubSubscriptionType = "channel.charity_campaign.donate" EventSubSubscriptionTypeChannelCharityCampaignProgress EventSubSubscriptionType = "channel.charity_campaign.progress" EventSubSubscriptionTypeChannelCharityCampaignStart EventSubSubscriptionType = "channel.charity_campaign.start" EventSubSubscriptionTypeChannelCharityCampaignStop EventSubSubscriptionType = "channel.charity_campaign.stop" EventSubSubscriptionTypeChannelChatClear EventSubSubscriptionType = "channel.chat.clear" EventSubSubscriptionTypeChannelChatClearUserMessages EventSubSubscriptionType = "channel.chat.clear_user_messages" EventSubSubscriptionTypeChannelChatMessage EventSubSubscriptionType = "channel.chat.message" EventSubSubscriptionTypeChannelChatMessageDelete EventSubSubscriptionType = "channel.chat.message_delete" EventSubSubscriptionTypeChannelChatNotification EventSubSubscriptionType = "channel.chat.notification" EventSubSubscriptionTypeChannelChatSettingsUpdate EventSubSubscriptionType = "channel.chat_settings.update" EventSubSubscriptionTypeChannelChatUserMessageHold EventSubSubscriptionType = "channel.chat.user_message_hold" EventSubSubscriptionTypeChannelChatUserMessageUpdate EventSubSubscriptionType = "channel.chat.user_message_update" EventSubSubscriptionTypeChannelCheer EventSubSubscriptionType = "channel.cheer" EventSubSubscriptionTypeChannelFollow EventSubSubscriptionType = "channel.follow" EventSubSubscriptionTypeChannelGoalBegin EventSubSubscriptionType = "channel.goal.begin" EventSubSubscriptionTypeChannelGoalEnd EventSubSubscriptionType = "channel.goal.end" EventSubSubscriptionTypeChannelGoalProgress EventSubSubscriptionType = "channel.goal.progress" EventSubSubscriptionTypeChannelGuestStarGuestUpdate EventSubSubscriptionType = "channel.guest_star_guest.update" EventSubSubscriptionTypeChannelGuestStarSessionBegin EventSubSubscriptionType = "channel.guest_star_session.begin" EventSubSubscriptionTypeChannelGuestStarSessionEnd EventSubSubscriptionType = "channel.guest_star_session.end" EventSubSubscriptionTypeChannelGuestStarSettingsUpdate EventSubSubscriptionType = "channel.guest_star_settings.update" EventSubSubscriptionTypeChannelHypeTrainBegin EventSubSubscriptionType = "channel.hype_train.begin" EventSubSubscriptionTypeChannelHypeTrainEnd EventSubSubscriptionType = "channel.hype_train.end" EventSubSubscriptionTypeChannelHypeTrainProgress EventSubSubscriptionType = "channel.hype_train.progress" EventSubSubscriptionTypeChannelModerate EventSubSubscriptionType = "channel.moderate" EventSubSubscriptionTypeChannelModeratorAdd EventSubSubscriptionType = "channel.moderator.add" EventSubSubscriptionTypeChannelModeratorRemove EventSubSubscriptionType = "channel.moderator.remove" EventSubSubscriptionTypeChannelPollBegin EventSubSubscriptionType = "channel.poll.begin" EventSubSubscriptionTypeChannelPollEnd EventSubSubscriptionType = "channel.poll.end" EventSubSubscriptionTypeChannelPollProgress EventSubSubscriptionType = "channel.poll.progress" EventSubSubscriptionTypeChannelPredictionBegin EventSubSubscriptionType = "channel.prediction.begin" EventSubSubscriptionTypeChannelPredictionEnd EventSubSubscriptionType = "channel.prediction.end" EventSubSubscriptionTypeChannelPredictionLock EventSubSubscriptionType = "channel.prediction.lock" EventSubSubscriptionTypeChannelPredictionProgress EventSubSubscriptionType = "channel.prediction.progress" EventSubSubscriptionTypeChannelRaid EventSubSubscriptionType = "channel.raid" EventSubSubscriptionTypeChannelShieldModeBegin EventSubSubscriptionType = "channel.shield_mode.begin" EventSubSubscriptionTypeChannelShieldModeEnd EventSubSubscriptionType = "channel.shield_mode.end" EventSubSubscriptionTypeChannelShoutoutCreate EventSubSubscriptionType = "channel.shoutout.create" EventSubSubscriptionTypeChannelShoutoutReceive EventSubSubscriptionType = "channel.shoutout.receive" EventSubSubscriptionTypeChannelSubscribe EventSubSubscriptionType = "channel.subscribe" EventSubSubscriptionTypeChannelSubscriptionEnd EventSubSubscriptionType = "channel.subscription.end" EventSubSubscriptionTypeChannelSubscriptionGift EventSubSubscriptionType = "channel.subscription.gift" EventSubSubscriptionTypeChannelSubscriptionMessage EventSubSubscriptionType = "channel.subscription.message" EventSubSubscriptionTypeChannelSuspiciousUserMessage EventSubSubscriptionType = "channel.suspicious_user.message" EventSubSubscriptionTypeChannelSuspiciousUserUpdate EventSubSubscriptionType = "channel.suspicious_user.update" EventSubSubscriptionTypeChannelUnban EventSubSubscriptionType = "channel.unban" EventSubSubscriptionTypeChannelUnbanRequestCreate EventSubSubscriptionType = "channel.unban_request.create" EventSubSubscriptionTypeChannelUnbanRequestResolve EventSubSubscriptionType = "channel.unban_request.resolve" EventSubSubscriptionTypeChannelUpdate EventSubSubscriptionType = "channel.update" EventSubSubscriptionTypeChannelVipAdd EventSubSubscriptionType = "channel.vip.add" EventSubSubscriptionTypeChannelVipRemove EventSubSubscriptionType = "channel.vip.remove" EventSubSubscriptionTypeChannelWarningAcknowledge EventSubSubscriptionType = "channel.warning.acknowledge" EventSubSubscriptionTypeChannelWarningSend EventSubSubscriptionType = "channel.warning.send" EventSubSubscriptionTypeConduitShardDisabled EventSubSubscriptionType = "conduit.shard.disabled" EventSubSubscriptionTypeDropEntitlementGrant EventSubSubscriptionType = "drop.entitlement.grant" EventSubSubscriptionTypeExtensionBitsTransactionCreate EventSubSubscriptionType = "extension.bits_transaction.create" EventSubSubscriptionTypeStreamOffline EventSubSubscriptionType = "stream.offline" EventSubSubscriptionTypeStreamOnline EventSubSubscriptionType = "stream.online" EventSubSubscriptionTypeUserAuthorizationGrant EventSubSubscriptionType = "user.authorization.grant" EventSubSubscriptionTypeUserAuthorizationRevoke EventSubSubscriptionType = "user.authorization.revoke" EventSubSubscriptionTypeUserUpdate EventSubSubscriptionType = "user.update" EventSubSubscriptionTypeUserWhisperMessage EventSubSubscriptionType = "user.whisper.message" )
Defines values for EventSubSubscriptionType.
type Extension ¶
type Extension struct { // AllowlistedConfigUrls Allowlisted configuration URLs for displaying the extension (the allowlist is configured on Twitch’s [developer site](https://dev.twitch.tv/console/extensions) under the **Extensions** \-> **Extension** \-> **Version** \-> **Capabilities**). AllowlistedConfigUrls []string `json:"allowlisted_config_urls"` // AllowlistedPanelUrls Allowlisted panel URLs for displaying the extension (the allowlist is configured on Twitch’s [developer site](https://dev.twitch.tv/console/extensions) under the **Extensions** \-> **Extension** \-> **Version** \-> **Capabilities**). AllowlistedPanelUrls []string `json:"allowlisted_panel_urls"` // AuthorName The name of the user or organization that owns the extension. AuthorName string `json:"author_name"` // BitsEnabled A Boolean value that determines whether the extension has features that use Bits. Is **true** if the extension has features that use Bits. BitsEnabled bool `json:"bits_enabled"` // CanInstall A Boolean value that determines whether a user can install the extension on their channel. Is **true** if a user can install the extension. // // Typically, this is set to **false** if the extension is currently in testing mode and requires users to be allowlisted (the allowlist is configured on Twitch’s [developer site](https://dev.twitch.tv/console/extensions) under the **Extensions** \-> **Extension** \-> **Version** \-> **Access**). CanInstall bool `json:"can_install"` // ConfigurationLocation The location of where the extension’s configuration is stored. Possible values are: // // * hosted — The Extensions Configuration Service hosts the configuration. // * custom — The Extension Backend Service (EBS) hosts the configuration. // * none — The extension doesn't require configuration. ConfigurationLocation ExtensionConfigurationLocation `json:"configuration_location"` // Description A longer description of the extension. It appears on the details page. Description string `json:"description"` // EulaTosUrl A URL to the extension’s Terms of Service. EulaTosUrl string `json:"eula_tos_url"` // HasChatSupport A Boolean value that determines whether the extension can communicate with the installed channel’s chat. Is **true** if the extension can communicate with the channel’s chat room. HasChatSupport bool `json:"has_chat_support"` // IconUrl A URL to the default icon that’s displayed in the Extensions directory. IconUrl string `json:"icon_url"` // IconUrls A dictionary that contains URLs to different sizes of the default icon. The dictionary’s key identifies the icon’s size (for example, 24x24), and the dictionary’s value contains the URL to the icon. IconUrls ExtensionIconUrls `json:"icon_urls"` // Id The extension’s ID. Id string `json:"id"` // Name The extension’s name. Name string `json:"name"` // PrivacyPolicyUrl A URL to the extension’s privacy policy. PrivacyPolicyUrl string `json:"privacy_policy_url"` // RequestIdentityLink A Boolean value that determines whether the extension wants to explicitly ask viewers to link their Twitch identity. RequestIdentityLink bool `json:"request_identity_link"` // ScreenshotUrls A list of URLs to screenshots that are shown in the Extensions marketplace. ScreenshotUrls []string `json:"screenshot_urls"` // State The extension’s state. Possible values are: // // * Approved // * AssetsUploaded // * Deleted // * Deprecated // * InReview // * InTest // * PendingAction // * Rejected // * Released State ExtensionState `json:"state"` // SubscriptionsSupportLevel Indicates whether the extension can view the user’s subscription level on the channel that the extension is installed on. Possible values are: // // * none — The extension can't view the user’s subscription level. // * optional — The extension can view the user’s subscription level. SubscriptionsSupportLevel ExtensionSubscriptionsSupportLevel `json:"subscriptions_support_level"` // Summary A short description of the extension that streamers see when hovering over the discovery splash screen in the Extensions manager. Summary string `json:"summary"` // SupportEmail The email address that users use to get support for the extension. SupportEmail string `json:"support_email"` // Version The extension’s version number. Version string `json:"version"` // ViewerSummary A brief description displayed on the channel to explain how the extension works. ViewerSummary string `json:"viewer_summary"` // Views Describes all views-related information such as how the extension is displayed on mobile devices. Views struct { // Component Describes how the extension is rendered if the extension may be activated as a video-component extension. Component struct { // AspectRatioX The width value of the ratio (width : height) which determines the extension’s width, and how the extension’s iframe will resize in different video player environments. AspectRatioX int32 `json:"aspect_ratio_x"` // AspectRatioY The height value of the ratio (width : height) which determines the extension’s height, and how the extension’s iframe will resize in different video player environments. AspectRatioY int32 `json:"aspect_ratio_y"` // Autoscale A Boolean value that determines whether to apply CSS zoom. If **true**, a CSS zoom is applied such that the size of the extension is variable but the inner dimensions are fixed based on Scale Pixels. This allows your extension to render as if it is of fixed width and height. If **false**, the inner dimensions of the extension iframe are variable, meaning your extension must implement responsiveness. Autoscale bool `json:"autoscale"` // CanLinkExternalContent A Boolean value that determines whether the extension can link to non-Twitch domains. CanLinkExternalContent bool `json:"can_link_external_content"` // ScalePixels The base width, in pixels, of the extension to use when scaling (see `autoscale`). This value is ignored if `autoscale` is **false**. ScalePixels int32 `json:"scale_pixels"` // TargetHeight The height as a percent of the maximum height of a video component extension. Values are between 1% - 100%. TargetHeight int32 `json:"target_height"` // ViewerUrl The HTML file that is shown to viewers on the channel page when the extension is activated in a Video - Component slot. ViewerUrl string `json:"viewer_url"` } `json:"component"` // Config Describes the view that is shown to broadcasters while they are configuring your extension within the Extension Manager. Config struct { // CanLinkExternalContent A Boolean value that determines whether the extension can link to non-Twitch domains. CanLinkExternalContent bool `json:"can_link_external_content"` // ViewerUrl The HTML file shown to broadcasters while they are configuring your extension within the Extension Manager. ViewerUrl string `json:"viewer_url"` } `json:"config"` // Mobile Describes how the extension is displayed on mobile devices. Mobile struct { // ViewerUrl The HTML file that is shown to viewers on mobile devices. This page is presented to viewers as a panel behind the chat area of the mobile app. ViewerUrl string `json:"viewer_url"` } `json:"mobile"` // Panel Describes how the extension is rendered if the extension may be activated as a panel extension. Panel struct { // CanLinkExternalContent A Boolean value that determines whether the extension can link to non-Twitch domains. CanLinkExternalContent bool `json:"can_link_external_content"` // Height The height, in pixels, of the panel component that the extension is rendered in. Height int32 `json:"height"` // ViewerUrl The HTML file that is shown to viewers on the channel page when the extension is activated in a Panel slot. ViewerUrl string `json:"viewer_url"` } `json:"panel"` // VideoOverlay Describes how the extension is rendered if the extension may be activated as a video-overlay extension. VideoOverlay struct { // CanLinkExternalContent A Boolean value that determines whether the extension can link to non-Twitch domains. CanLinkExternalContent bool `json:"can_link_external_content"` // ViewerUrl The HTML file that is shown to viewers on the channel page when the extension is activated on the Video - Overlay slot. ViewerUrl string `json:"viewer_url"` } `json:"video_overlay"` } `json:"views"` }
Extension defines model for Extension.
func (Extension) GetAllowlistedConfigUrls ¶
func (Extension) GetAllowlistedPanelUrls ¶
func (Extension) GetAuthorName ¶
func (Extension) GetBitsEnabled ¶
func (Extension) GetCanInstall ¶
func (Extension) GetConfigurationLocation ¶
func (datatype Extension) GetConfigurationLocation() ExtensionConfigurationLocation
func (Extension) GetDescription ¶
func (Extension) GetEulaTosUrl ¶
func (Extension) GetHasChatSupport ¶
func (Extension) GetIconUrl ¶
func (Extension) GetIconUrls ¶
func (datatype Extension) GetIconUrls() ExtensionIconUrls
func (Extension) GetPrivacyPolicyUrl ¶
func (Extension) GetRequestIdentityLink ¶
func (Extension) GetScreenshotUrls ¶
func (Extension) GetState ¶
func (datatype Extension) GetState() ExtensionState
func (Extension) GetSubscriptionsSupportLevel ¶
func (datatype Extension) GetSubscriptionsSupportLevel() ExtensionSubscriptionsSupportLevel
func (Extension) GetSummary ¶
func (Extension) GetSupportEmail ¶
func (Extension) GetVersion ¶
func (Extension) GetViewerSummary ¶
func (Extension) GetViews ¶
func (datatype Extension) GetViews() struct { // Component Describes how the extension is rendered if the extension may be activated as a video-component extension. Component struct { // AspectRatioX The width value of the ratio (width : height) which determines the extension’s width, and how the extension’s iframe will resize in different video player environments. AspectRatioX int32 `json:"aspect_ratio_x"` // AspectRatioY The height value of the ratio (width : height) which determines the extension’s height, and how the extension’s iframe will resize in different video player environments. AspectRatioY int32 `json:"aspect_ratio_y"` // Autoscale A Boolean value that determines whether to apply CSS zoom. If **true**, a CSS zoom is applied such that the size of the extension is variable but the inner dimensions are fixed based on Scale Pixels. This allows your extension to render as if it is of fixed width and height. If **false**, the inner dimensions of the extension iframe are variable, meaning your extension must implement responsiveness. Autoscale bool `json:"autoscale"` // CanLinkExternalContent A Boolean value that determines whether the extension can link to non-Twitch domains. CanLinkExternalContent bool `json:"can_link_external_content"` // ScalePixels The base width, in pixels, of the extension to use when scaling (see `autoscale`). This value is ignored if `autoscale` is **false**. ScalePixels int32 `json:"scale_pixels"` // TargetHeight The height as a percent of the maximum height of a video component extension. Values are between 1% - 100%. TargetHeight int32 `json:"target_height"` // ViewerUrl The HTML file that is shown to viewers on the channel page when the extension is activated in a Video - Component slot. ViewerUrl string `json:"viewer_url"` } `json:"component"` // Config Describes the view that is shown to broadcasters while they are configuring your extension within the Extension Manager. Config struct { // CanLinkExternalContent A Boolean value that determines whether the extension can link to non-Twitch domains. CanLinkExternalContent bool `json:"can_link_external_content"` // ViewerUrl The HTML file shown to broadcasters while they are configuring your extension within the Extension Manager. ViewerUrl string `json:"viewer_url"` } `json:"config"` // Mobile Describes how the extension is displayed on mobile devices. Mobile struct { // ViewerUrl The HTML file that is shown to viewers on mobile devices. This page is presented to viewers as a panel behind the chat area of the mobile app. ViewerUrl string `json:"viewer_url"` } `json:"mobile"` // Panel Describes how the extension is rendered if the extension may be activated as a panel extension. Panel struct { // CanLinkExternalContent A Boolean value that determines whether the extension can link to non-Twitch domains. CanLinkExternalContent bool `json:"can_link_external_content"` // Height The height, in pixels, of the panel component that the extension is rendered in. Height int32 `json:"height"` // ViewerUrl The HTML file that is shown to viewers on the channel page when the extension is activated in a Panel slot. ViewerUrl string `json:"viewer_url"` } `json:"panel"` // VideoOverlay Describes how the extension is rendered if the extension may be activated as a video-overlay extension. VideoOverlay struct { // CanLinkExternalContent A Boolean value that determines whether the extension can link to non-Twitch domains. CanLinkExternalContent bool `json:"can_link_external_content"` // ViewerUrl The HTML file that is shown to viewers on the channel page when the extension is activated on the Video - Overlay slot. ViewerUrl string `json:"viewer_url"` } `json:"video_overlay"` }
type ExtensionAnalytics ¶
type ExtensionAnalytics struct { // URL The URL that you use to download the report. The URL is valid for 5 minutes. URL string `json:"URL"` // DateRange The reporting window’s start and end dates, in RFC3339 format. DateRange struct { // EndedAt The reporting window’s end date. EndedAt time.Time `json:"ended_at"` // StartedAt The reporting window’s start date. StartedAt time.Time `json:"started_at"` } `json:"date_range"` // ExtensionId An ID that identifies the extension that the report was generated for. ExtensionId string `json:"extension_id"` // Type The type of report. Type string `json:"type"` }
ExtensionAnalytics defines model for ExtensionAnalytics.
func (ExtensionAnalytics) GetDateRange ¶
func (datatype ExtensionAnalytics) GetDateRange() struct { // EndedAt The reporting window’s end date. EndedAt time.Time `json:"ended_at"` // StartedAt The reporting window’s start date. StartedAt time.Time `json:"started_at"` }
func (ExtensionAnalytics) GetExtensionId ¶
func (datatype ExtensionAnalytics) GetExtensionId() string
func (ExtensionAnalytics) GetType ¶
func (datatype ExtensionAnalytics) GetType() string
func (ExtensionAnalytics) GetURL ¶
func (datatype ExtensionAnalytics) GetURL() string
type ExtensionBitsProduct ¶
type ExtensionBitsProduct struct { // Cost An object that contains the product's cost information. Cost struct { // Amount The product's price. Amount int32 `json:"amount"` // Type The type of currency. Possible values are: // // * bits Type ExtensionBitsProductCostType `json:"type"` } `json:"cost"` // DisplayName The product's name as displayed in the extension. DisplayName string `json:"display_name"` // Expiration The date and time, in RFC3339 format, when the product expires. Expiration time.Time `json:"expiration"` // InDevelopment A Boolean value that indicates whether the product is in development. If **true**, the product is not available for public use. InDevelopment bool `json:"in_development"` // IsBroadcast A Boolean value that determines whether Bits product purchase events are broadcast to all instances of an extension on a channel. The events are broadcast via the `onTransactionComplete` helper callback. Is **true** if the event is broadcast to all instances. IsBroadcast bool `json:"is_broadcast"` // Sku The product's SKU. The SKU is unique across an extension's products. Sku string `json:"sku"` }
ExtensionBitsProduct defines model for ExtensionBitsProduct.
func (ExtensionBitsProduct) GetCost ¶
func (datatype ExtensionBitsProduct) GetCost() struct { // Amount The product's price. Amount int32 `json:"amount"` // Type The type of currency. Possible values are: // // * bits Type ExtensionBitsProductCostType `json:"type"` }
func (ExtensionBitsProduct) GetDisplayName ¶
func (datatype ExtensionBitsProduct) GetDisplayName() string
func (ExtensionBitsProduct) GetExpiration ¶
func (datatype ExtensionBitsProduct) GetExpiration() time.Time
func (ExtensionBitsProduct) GetInDevelopment ¶
func (datatype ExtensionBitsProduct) GetInDevelopment() bool
func (ExtensionBitsProduct) GetIsBroadcast ¶
func (datatype ExtensionBitsProduct) GetIsBroadcast() bool
func (ExtensionBitsProduct) GetSku ¶
func (datatype ExtensionBitsProduct) GetSku() string
type ExtensionBitsProductCostType ¶
type ExtensionBitsProductCostType string
ExtensionBitsProductCostType The type of currency. Possible values are:
* bits
const (
ExtensionBitsProductCostTypeBits ExtensionBitsProductCostType = "bits"
)
Defines values for ExtensionBitsProductCostType.
type ExtensionConfigurationLocation ¶
type ExtensionConfigurationLocation string
ExtensionConfigurationLocation The location of where the extension’s configuration is stored. Possible values are:
* hosted — The Extensions Configuration Service hosts the configuration. * custom — The Extension Backend Service (EBS) hosts the configuration. * none — The extension doesn't require configuration.
const ( ExtensionConfigurationLocationCustom ExtensionConfigurationLocation = "custom" ExtensionConfigurationLocationHosted ExtensionConfigurationLocation = "hosted" ExtensionConfigurationLocationNone ExtensionConfigurationLocation = "none" )
Defines values for ExtensionConfigurationLocation.
type ExtensionConfigurationSegment ¶
type ExtensionConfigurationSegment struct { // BroadcasterId The ID of the broadcaster that installed the extension. The object includes this field only if the `segment` query parameter is set to developer or broadcaster. BroadcasterId *string `json:"broadcaster_id,omitempty"` // Content The contents of the segment. This string may be a plain-text string or a string-encoded JSON object. Content string `json:"content"` // Segment The type of segment. Possible values are: // // * broadcaster // * developer // * global Segment ExtensionConfigurationSegmentSegment `json:"segment"` // Version The version number that identifies this definition of the segment’s data. Version string `json:"version"` }
ExtensionConfigurationSegment defines model for ExtensionConfigurationSegment.
func (ExtensionConfigurationSegment) GetBroadcasterId ¶
func (datatype ExtensionConfigurationSegment) GetBroadcasterId() string
func (ExtensionConfigurationSegment) GetContent ¶
func (datatype ExtensionConfigurationSegment) GetContent() string
func (ExtensionConfigurationSegment) GetSegment ¶
func (datatype ExtensionConfigurationSegment) GetSegment() ExtensionConfigurationSegmentSegment
func (ExtensionConfigurationSegment) GetVersion ¶
func (datatype ExtensionConfigurationSegment) GetVersion() string
type ExtensionConfigurationSegmentSegment ¶
type ExtensionConfigurationSegmentSegment string
ExtensionConfigurationSegmentSegment The type of segment. Possible values are:
* broadcaster * developer * global
const ( ExtensionConfigurationSegmentSegmentBroadcaster ExtensionConfigurationSegmentSegment = "broadcaster" ExtensionConfigurationSegmentSegmentDeveloper ExtensionConfigurationSegmentSegment = "developer" ExtensionConfigurationSegmentSegmentGlobal ExtensionConfigurationSegmentSegment = "global" )
Defines values for ExtensionConfigurationSegmentSegment.
type ExtensionIconUrls ¶
type ExtensionIconUrls struct { N100x100 *string `json:"100x100,omitempty"` N24x24 *string `json:"24x24,omitempty"` N300x200 *string `json:"300x200,omitempty"` }
ExtensionIconUrls A dictionary that contains URLs to different sizes of the default icon. The dictionary’s key identifies the icon’s size (for example, 24x24), and the dictionary’s value contains the URL to the icon.
func (ExtensionIconUrls) GetN100x100 ¶
func (datatype ExtensionIconUrls) GetN100x100() string
func (ExtensionIconUrls) GetN24x24 ¶
func (datatype ExtensionIconUrls) GetN24x24() string
func (ExtensionIconUrls) GetN300x200 ¶
func (datatype ExtensionIconUrls) GetN300x200() string
type ExtensionLiveChannel ¶
type ExtensionLiveChannel struct { // BroadcasterId The ID of the broadcaster that is streaming live and has installed or activated the extension. BroadcasterId string `json:"broadcaster_id"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // GameId The ID of the category or game being streamed. GameId string `json:"game_id"` // GameName The name of the category or game being streamed. GameName string `json:"game_name"` // Title The title of the broadcaster’s stream. May be an empty string if not specified. Title string `json:"title"` }
ExtensionLiveChannel defines model for ExtensionLiveChannel.
func (ExtensionLiveChannel) GetBroadcasterId ¶
func (datatype ExtensionLiveChannel) GetBroadcasterId() string
func (ExtensionLiveChannel) GetBroadcasterName ¶
func (datatype ExtensionLiveChannel) GetBroadcasterName() string
func (ExtensionLiveChannel) GetGameId ¶
func (datatype ExtensionLiveChannel) GetGameId() string
func (ExtensionLiveChannel) GetGameName ¶
func (datatype ExtensionLiveChannel) GetGameName() string
func (ExtensionLiveChannel) GetTitle ¶
func (datatype ExtensionLiveChannel) GetTitle() string
type ExtensionSecret ¶
type ExtensionSecret struct { // FormatVersion The version number that identifies this definition of the secret’s data. FormatVersion int32 `json:"format_version"` // Secrets The list of secrets. Secrets []struct { // ActiveAt The UTC date and time (in RFC3339 format) that you may begin using this secret to sign a JWT. ActiveAt time.Time `json:"active_at"` // Content The raw secret that you use with JWT encoding. Content string `json:"content"` // ExpiresAt The UTC date and time (in RFC3339 format) that you must stop using this secret to decode a JWT. ExpiresAt time.Time `json:"expires_at"` } `json:"secrets"` }
ExtensionSecret defines model for ExtensionSecret.
func (ExtensionSecret) GetFormatVersion ¶
func (datatype ExtensionSecret) GetFormatVersion() int32
func (ExtensionSecret) GetSecrets ¶
func (datatype ExtensionSecret) GetSecrets() []struct { // ActiveAt The UTC date and time (in RFC3339 format) that you may begin using this secret to sign a JWT. ActiveAt time.Time `json:"active_at"` // Content The raw secret that you use with JWT encoding. Content string `json:"content"` // ExpiresAt The UTC date and time (in RFC3339 format) that you must stop using this secret to decode a JWT. ExpiresAt time.Time `json:"expires_at"` }
type ExtensionState ¶
type ExtensionState string
ExtensionState The extension’s state. Possible values are:
* Approved * AssetsUploaded * Deleted * Deprecated * InReview * InTest * PendingAction * Rejected * Released
const ( Approved ExtensionState = "Approved" AssetsUploaded ExtensionState = "AssetsUploaded" Deleted ExtensionState = "Deleted" Deprecated ExtensionState = "Deprecated" InReview ExtensionState = "InReview" InTest ExtensionState = "InTest" PendingAction ExtensionState = "PendingAction" Rejected ExtensionState = "Rejected" Released ExtensionState = "Released" )
Defines values for ExtensionState.
type ExtensionSubscriptionsSupportLevel ¶
type ExtensionSubscriptionsSupportLevel string
ExtensionSubscriptionsSupportLevel Indicates whether the extension can view the user’s subscription level on the channel that the extension is installed on. Possible values are:
* none — The extension can't view the user’s subscription level. * optional — The extension can view the user’s subscription level.
const ( ExtensionSubscriptionsSupportLevelNone ExtensionSubscriptionsSupportLevel = "none" ExtensionSubscriptionsSupportLevelOptional ExtensionSubscriptionsSupportLevel = "optional" )
Defines values for ExtensionSubscriptionsSupportLevel.
type ExtensionTransaction ¶
type ExtensionTransaction struct { // BroadcasterId The ID of the broadcaster that owns the channel where the transaction occurred. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // Id An ID that identifies the transaction. Id string `json:"id"` // ProductData Contains details about the digital product. ProductData struct { // Broadcast A Boolean value that determines whether the data was broadcast to all instances of the extension. Is **true** if the data was broadcast to all instances. Broadcast bool `json:"broadcast"` // Cost Contains details about the digital product’s cost. Cost struct { // Amount The amount exchanged for the digital product. Amount int32 `json:"amount"` // Type The type of currency exchanged. Possible values are: // // * bits Type ExtensionTransactionProductDataCostType `json:"type"` } `json:"cost"` // DisplayName The name of the digital product. DisplayName string `json:"displayName"` // Domain Set to `twitch.ext.` \+ `<the extension's ID>`. Domain string `json:"domain"` // Expiration This field is always empty since you may purchase only unexpired products. Expiration string `json:"expiration"` // InDevelopment A Boolean value that determines whether the product is in development. Is **true** if the digital product is in development and cannot be exchanged. InDevelopment bool `json:"inDevelopment"` // Sku An ID that identifies the digital product. Sku string `json:"sku"` } `json:"product_data"` // ProductType The type of transaction. Possible values are: // // * BITS\_IN\_EXTENSION ProductType ExtensionTransactionProductType `json:"product_type"` // Timestamp The UTC date and time (in RFC3339 format) of the transaction. Timestamp time.Time `json:"timestamp"` // UserId The ID of the user that purchased the digital product. UserId string `json:"user_id"` // UserLogin The user’s login name. UserLogin string `json:"user_login"` // UserName The user’s display name. UserName string `json:"user_name"` }
ExtensionTransaction defines model for ExtensionTransaction.
func (ExtensionTransaction) GetBroadcasterId ¶
func (datatype ExtensionTransaction) GetBroadcasterId() string
func (ExtensionTransaction) GetBroadcasterLogin ¶
func (datatype ExtensionTransaction) GetBroadcasterLogin() string
func (ExtensionTransaction) GetBroadcasterName ¶
func (datatype ExtensionTransaction) GetBroadcasterName() string
func (ExtensionTransaction) GetId ¶
func (datatype ExtensionTransaction) GetId() string
func (ExtensionTransaction) GetProductData ¶
func (datatype ExtensionTransaction) GetProductData() struct { // Broadcast A Boolean value that determines whether the data was broadcast to all instances of the extension. Is **true** if the data was broadcast to all instances. Broadcast bool `json:"broadcast"` // Cost Contains details about the digital product’s cost. Cost struct { // Amount The amount exchanged for the digital product. Amount int32 `json:"amount"` // Type The type of currency exchanged. Possible values are: // // * bits Type ExtensionTransactionProductDataCostType `json:"type"` } `json:"cost"` // DisplayName The name of the digital product. DisplayName string `json:"displayName"` // Domain Set to `twitch.ext.` \+ `<the extension's ID>`. Domain string `json:"domain"` // Expiration This field is always empty since you may purchase only unexpired products. Expiration string `json:"expiration"` // InDevelopment A Boolean value that determines whether the product is in development. Is **true** if the digital product is in development and cannot be exchanged. InDevelopment bool `json:"inDevelopment"` // Sku An ID that identifies the digital product. Sku string `json:"sku"` }
func (ExtensionTransaction) GetProductType ¶
func (datatype ExtensionTransaction) GetProductType() ExtensionTransactionProductType
func (ExtensionTransaction) GetTimestamp ¶
func (datatype ExtensionTransaction) GetTimestamp() time.Time
func (ExtensionTransaction) GetUserId ¶
func (datatype ExtensionTransaction) GetUserId() string
func (ExtensionTransaction) GetUserLogin ¶
func (datatype ExtensionTransaction) GetUserLogin() string
func (ExtensionTransaction) GetUserName ¶
func (datatype ExtensionTransaction) GetUserName() string
type ExtensionTransactionProductDataCostType ¶
type ExtensionTransactionProductDataCostType string
ExtensionTransactionProductDataCostType The type of currency exchanged. Possible values are:
* bits
const (
ExtensionTransactionProductDataCostTypeBits ExtensionTransactionProductDataCostType = "bits"
)
Defines values for ExtensionTransactionProductDataCostType.
type ExtensionTransactionProductType ¶
type ExtensionTransactionProductType string
ExtensionTransactionProductType The type of transaction. Possible values are:
* BITS\_IN\_EXTENSION
const (
BITSINEXTENSION ExtensionTransactionProductType = "BITS_IN_EXTENSION"
)
Defines values for ExtensionTransactionProductType.
type Game ¶
type Game struct { // BoxArtUrl A URL to the category’s or game’s box art. You must replace the `{width}x{height}` placeholder with the size of image you want. BoxArtUrl string `json:"box_art_url"` // Id An ID that identifies the category or game. Id string `json:"id"` // IgdbId The ID that [IGDB](https://www.igdb.com/) uses to identify this game. If the IGDB ID is not available to Twitch, this field is set to an empty string. IgdbId string `json:"igdb_id"` // Name The category’s or game’s name. Name string `json:"name"` }
Game defines model for Game.
func (Game) GetBoxArtUrl ¶
type GameAnalytics ¶
type GameAnalytics struct { // URL The URL that you use to download the report. The URL is valid for 5 minutes. URL string `json:"URL"` // DateRange The reporting window’s start and end dates, in RFC3339 format. DateRange struct { // EndedAt The reporting window’s end date. EndedAt time.Time `json:"ended_at"` // StartedAt The reporting window’s start date. StartedAt time.Time `json:"started_at"` } `json:"date_range"` // GameId An ID that identifies the game that the report was generated for. GameId string `json:"game_id"` // Type The type of report. Type string `json:"type"` }
GameAnalytics defines model for GameAnalytics.
func (GameAnalytics) GetDateRange ¶
func (datatype GameAnalytics) GetDateRange() struct { // EndedAt The reporting window’s end date. EndedAt time.Time `json:"ended_at"` // StartedAt The reporting window’s start date. StartedAt time.Time `json:"started_at"` }
func (GameAnalytics) GetGameId ¶
func (datatype GameAnalytics) GetGameId() string
func (GameAnalytics) GetType ¶
func (datatype GameAnalytics) GetType() string
func (GameAnalytics) GetURL ¶
func (datatype GameAnalytics) GetURL() string
type GetAdScheduleHTTPResponse ¶
type GetAdScheduleHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetAdScheduleResponse }
func ParseGetAdScheduleHTTPResponse ¶
func ParseGetAdScheduleHTTPResponse(rsp *http.Response) (*GetAdScheduleHTTPResponse, error)
ParseGetAdScheduleHTTPResponse parses an HTTP response from a GetAdScheduleWithResponse call
func (GetAdScheduleHTTPResponse) Status ¶
func (r GetAdScheduleHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetAdScheduleHTTPResponse) StatusCode ¶
func (r GetAdScheduleHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAdScheduleParams ¶
type GetAdScheduleParams struct { // BroadcasterId Provided `broadcaster_id` must match the `user_id` in the auth token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
GetAdScheduleParams defines parameters for GetAdSchedule.
type GetAdScheduleResponse ¶
type GetAdScheduleResponse struct { // Data A list that contains information related to the channel’s ad schedule. Data []struct { // Duration The length in seconds of the scheduled upcoming ad break. Duration int32 `json:"duration"` // LastAdAt The UTC timestamp of the broadcaster’s last ad-break, in RFC3339 format. Empty if the channel has not run an ad or is not live. LastAdAt time.Time `json:"last_ad_at"` // NextAdAt The UTC timestamp of the broadcaster’s next scheduled ad, in RFC3339 format. Empty if the channel has no ad scheduled or is not live. NextAdAt time.Time `json:"next_ad_at"` // PrerollFreeTime The amount of pre-roll free time remaining for the channel in seconds. Returns 0 if they are currently not pre-roll free. PrerollFreeTime int32 `json:"preroll_free_time"` // SnoozeCount The number of snoozes available for the broadcaster. SnoozeCount int32 `json:"snooze_count"` // SnoozeRefreshAt The UTC timestamp when the broadcaster will gain an additional snooze, in RFC3339 format. SnoozeRefreshAt time.Time `json:"snooze_refresh_at"` } `json:"data"` }
GetAdScheduleResponse defines model for GetAdScheduleResponse.
func (GetAdScheduleResponse) GetData ¶
func (datatype GetAdScheduleResponse) GetData() []struct { // Duration The length in seconds of the scheduled upcoming ad break. Duration int32 `json:"duration"` // LastAdAt The UTC timestamp of the broadcaster’s last ad-break, in RFC3339 format. Empty if the channel has not run an ad or is not live. LastAdAt time.Time `json:"last_ad_at"` // NextAdAt The UTC timestamp of the broadcaster’s next scheduled ad, in RFC3339 format. Empty if the channel has no ad scheduled or is not live. NextAdAt time.Time `json:"next_ad_at"` // PrerollFreeTime The amount of pre-roll free time remaining for the channel in seconds. Returns 0 if they are currently not pre-roll free. PrerollFreeTime int32 `json:"preroll_free_time"` // SnoozeCount The number of snoozes available for the broadcaster. SnoozeCount int32 `json:"snooze_count"` // SnoozeRefreshAt The UTC timestamp when the broadcaster will gain an additional snooze, in RFC3339 format. SnoozeRefreshAt time.Time `json:"snooze_refresh_at"` }
type GetAllStreamTagsHTTPResponse ¶
type GetAllStreamTagsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetAllStreamTagsResponse }
func ParseGetAllStreamTagsHTTPResponse ¶
func ParseGetAllStreamTagsHTTPResponse(rsp *http.Response) (*GetAllStreamTagsHTTPResponse, error)
ParseGetAllStreamTagsHTTPResponse parses an HTTP response from a GetAllStreamTagsWithResponse call
func (GetAllStreamTagsHTTPResponse) Status ¶
func (r GetAllStreamTagsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetAllStreamTagsHTTPResponse) StatusCode ¶
func (r GetAllStreamTagsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAllStreamTagsParams ¶
type GetAllStreamTagsParams struct { // TagId The ID of the tag to get. Used to filter the list of tags. To specify more than one tag, include the _tag\_id_ parameter for each tag to get. For example, `tag_id=1234&tag_id=5678`. The maximum number of IDs you may specify is 100\. Ignores invalid IDs but not duplicate IDs. TagId *[]string `form:"tag_id,omitempty" json:"tag_id,omitempty"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100\. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` }
GetAllStreamTagsParams defines parameters for GetAllStreamTags.
type GetAllStreamTagsResponse ¶
type GetAllStreamTagsResponse struct { // Data The list of stream tags that the broadcaster can apply to their channel. Data []StreamTag `json:"data"` // Pagination The information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Set the request’s _after_ query parameter to this value to page forwards through the results. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetAllStreamTagsResponse defines model for GetAllStreamTagsResponse.
func (GetAllStreamTagsResponse) GetData ¶
func (datatype GetAllStreamTagsResponse) GetData() []StreamTag
func (GetAllStreamTagsResponse) GetPagination ¶
func (datatype GetAllStreamTagsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Set the request’s _after_ query parameter to this value to page forwards through the results. Cursor *string `json:"cursor,omitempty"` }
type GetAutoModSettingsResponse ¶
type GetAutoModSettingsResponse struct { // Data The list of AutoMod settings. The list contains a single object that contains all the AutoMod settings. Data []AutoModSettings `json:"data"` }
GetAutoModSettingsResponse defines model for GetAutoModSettingsResponse.
func (GetAutoModSettingsResponse) GetData ¶
func (datatype GetAutoModSettingsResponse) GetData() []AutoModSettings
type GetAutomodSettingsHTTPResponse ¶
type GetAutomodSettingsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetAutoModSettingsResponse }
func ParseGetAutomodSettingsHTTPResponse ¶
func ParseGetAutomodSettingsHTTPResponse(rsp *http.Response) (*GetAutomodSettingsHTTPResponse, error)
ParseGetAutomodSettingsHTTPResponse parses an HTTP response from a GetAutomodSettingsWithResponse call
func (GetAutomodSettingsHTTPResponse) Status ¶
func (r GetAutomodSettingsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetAutomodSettingsHTTPResponse) StatusCode ¶
func (r GetAutomodSettingsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAutomodSettingsParams ¶
type GetAutomodSettingsParams struct { // BroadcasterId The ID of the broadcaster whose AutoMod settings you want to get. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s chat room. This ID must match the user ID in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` }
GetAutomodSettingsParams defines parameters for GetAutomodSettings.
type GetBannedUsersHTTPResponse ¶
type GetBannedUsersHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetBannedUsersResponse }
func ParseGetBannedUsersHTTPResponse ¶
func ParseGetBannedUsersHTTPResponse(rsp *http.Response) (*GetBannedUsersHTTPResponse, error)
ParseGetBannedUsersHTTPResponse parses an HTTP response from a GetBannedUsersWithResponse call
func (GetBannedUsersHTTPResponse) Status ¶
func (r GetBannedUsersHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetBannedUsersHTTPResponse) StatusCode ¶
func (r GetBannedUsersHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBannedUsersParams ¶
type GetBannedUsersParams struct { // BroadcasterId The ID of the broadcaster whose list of banned users you want to get. This ID must match the user ID in the access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // UserId A list of user IDs used to filter the results. To specify more than one ID, include this parameter for each user you want to get. For example, `user_id=1234&user_id=5678`. You may specify a maximum of 100 IDs. // // The returned list includes only those users that were banned or put in a timeout. The list is returned in the same order that you specified the IDs. UserId *[]string `form:"user_id,omitempty" json:"user_id,omitempty"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` // Before The cursor used to get the previous page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Before *string `form:"before,omitempty" json:"before,omitempty"` }
GetBannedUsersParams defines parameters for GetBannedUsers.
type GetBannedUsersResponse ¶
type GetBannedUsersResponse struct { // Data The list of users that were banned or put in a timeout. Data []BannedUser `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetBannedUsersResponse defines model for GetBannedUsersResponse.
func (GetBannedUsersResponse) GetData ¶
func (datatype GetBannedUsersResponse) GetData() []BannedUser
func (GetBannedUsersResponse) GetPagination ¶
func (datatype GetBannedUsersResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` }
type GetBitsLeaderboardHTTPResponse ¶
type GetBitsLeaderboardHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetBitsLeaderboardResponse }
func ParseGetBitsLeaderboardHTTPResponse ¶
func ParseGetBitsLeaderboardHTTPResponse(rsp *http.Response) (*GetBitsLeaderboardHTTPResponse, error)
ParseGetBitsLeaderboardHTTPResponse parses an HTTP response from a GetBitsLeaderboardWithResponse call
func (GetBitsLeaderboardHTTPResponse) Status ¶
func (r GetBitsLeaderboardHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetBitsLeaderboardHTTPResponse) StatusCode ¶
func (r GetBitsLeaderboardHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBitsLeaderboardParams ¶
type GetBitsLeaderboardParams struct { // Count The number of results to return. The minimum count is 1 and the maximum is 100\. The default is 10. Count *int32 `form:"count,omitempty" json:"count,omitempty"` // Period The time period over which data is aggregated (uses the PST time zone). Possible values are: // // * day — A day spans from 00:00:00 on the day specified in _started\_at_ and runs through 00:00:00 of the next day. // * week — A week spans from 00:00:00 on the Monday of the week specified in _started\_at_ and runs through 00:00:00 of the next Monday. // * month — A month spans from 00:00:00 on the first day of the month specified in _started\_at_ and runs through 00:00:00 of the first day of the next month. // * year — A year spans from 00:00:00 on the first day of the year specified in _started\_at_ and runs through 00:00:00 of the first day of the next year. // * all — Default. The lifetime of the broadcaster's channel. Period *GetBitsLeaderboardParamsPeriod `form:"period,omitempty" json:"period,omitempty"` // StartedAt The start date, in RFC3339 format, used for determining the aggregation period. Specify this parameter only if you specify the _period_ query parameter. The start date is ignored if _period_ is all. // // Note that the date is converted to PST before being used, so if you set the start time to `2022-01-01T00:00:00.0Z` and _period_ to month, the actual reporting period is December 2021, not January 2022\. If you want the reporting period to be January 2022, you must set the start time to `2022-01-01T08:00:00.0Z` or `2022-01-01T00:00:00.0-08:00`. // // If your start date uses the ‘+’ offset operator (for example, `2022-01-01T00:00:00.0+05:00`), you must URL encode the start date. StartedAt *time.Time `form:"started_at,omitempty" json:"started_at,omitempty"` // UserId An ID that identifies a user that cheered bits in the channel. If _count_ is greater than 1, the response may include users ranked above and below the specified user. To get the leaderboard’s top leaders, don’t specify a user ID. UserId *string `form:"user_id,omitempty" json:"user_id,omitempty"` }
GetBitsLeaderboardParams defines parameters for GetBitsLeaderboard.
type GetBitsLeaderboardParamsPeriod ¶
type GetBitsLeaderboardParamsPeriod string
GetBitsLeaderboardParamsPeriod defines parameters for GetBitsLeaderboard.
const ( GetBitsLeaderboardParamsPeriodAll GetBitsLeaderboardParamsPeriod = "all" GetBitsLeaderboardParamsPeriodDay GetBitsLeaderboardParamsPeriod = "day" GetBitsLeaderboardParamsPeriodMonth GetBitsLeaderboardParamsPeriod = "month" GetBitsLeaderboardParamsPeriodWeek GetBitsLeaderboardParamsPeriod = "week" GetBitsLeaderboardParamsPeriodYear GetBitsLeaderboardParamsPeriod = "year" )
Defines values for GetBitsLeaderboardParamsPeriod.
type GetBitsLeaderboardResponse ¶
type GetBitsLeaderboardResponse struct { // Data A list of leaderboard leaders. The leaders are returned in rank order by how much they’ve cheered. The array is empty if nobody has cheered bits. Data []BitsLeaderboard `json:"data"` // DateRange The reporting window’s start and end dates, in RFC3339 format. The dates are calculated by using the _started\_at_ and _period_ query parameters. If you don’t specify the _started\_at_ query parameter, the fields contain empty strings. DateRange struct { // EndedAt The reporting window’s end date. EndedAt time.Time `json:"ended_at"` // StartedAt The reporting window’s start date. StartedAt time.Time `json:"started_at"` } `json:"date_range"` // Total The number of ranked users in `data`. This is the value in the _count_ query parameter or the total number of entries on the leaderboard, whichever is less. Total int32 `json:"total"` }
GetBitsLeaderboardResponse defines model for GetBitsLeaderboardResponse.
func (GetBitsLeaderboardResponse) GetData ¶
func (datatype GetBitsLeaderboardResponse) GetData() []BitsLeaderboard
func (GetBitsLeaderboardResponse) GetDateRange ¶
func (datatype GetBitsLeaderboardResponse) GetDateRange() struct { // EndedAt The reporting window’s end date. EndedAt time.Time `json:"ended_at"` // StartedAt The reporting window’s start date. StartedAt time.Time `json:"started_at"` }
func (GetBitsLeaderboardResponse) GetTotal ¶
func (datatype GetBitsLeaderboardResponse) GetTotal() int32
type GetBlockedTermsHTTPResponse ¶
type GetBlockedTermsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetBlockedTermsResponse }
func ParseGetBlockedTermsHTTPResponse ¶
func ParseGetBlockedTermsHTTPResponse(rsp *http.Response) (*GetBlockedTermsHTTPResponse, error)
ParseGetBlockedTermsHTTPResponse parses an HTTP response from a GetBlockedTermsWithResponse call
func (GetBlockedTermsHTTPResponse) Status ¶
func (r GetBlockedTermsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetBlockedTermsHTTPResponse) StatusCode ¶
func (r GetBlockedTermsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBlockedTermsParams ¶
type GetBlockedTermsParams struct { // BroadcasterId The ID of the broadcaster whose blocked terms you’re getting. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s chat room. This ID must match the user ID in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. After *string `form:"after,omitempty" json:"after,omitempty"` }
GetBlockedTermsParams defines parameters for GetBlockedTerms.
type GetBlockedTermsResponse ¶
type GetBlockedTermsResponse struct { // Data The list of blocked terms. The list is in descending order of when they were created (see the `created_at` timestamp). Data []BlockedTerm `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetBlockedTermsResponse defines model for GetBlockedTermsResponse.
func (GetBlockedTermsResponse) GetData ¶
func (datatype GetBlockedTermsResponse) GetData() []BlockedTerm
func (GetBlockedTermsResponse) GetPagination ¶
func (datatype GetBlockedTermsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` }
type GetBroadcasterSubscriptionsHTTPResponse ¶
type GetBroadcasterSubscriptionsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetBroadcasterSubscriptionsResponse }
func ParseGetBroadcasterSubscriptionsHTTPResponse ¶
func ParseGetBroadcasterSubscriptionsHTTPResponse(rsp *http.Response) (*GetBroadcasterSubscriptionsHTTPResponse, error)
ParseGetBroadcasterSubscriptionsHTTPResponse parses an HTTP response from a GetBroadcasterSubscriptionsWithResponse call
func (GetBroadcasterSubscriptionsHTTPResponse) Status ¶
func (r GetBroadcasterSubscriptionsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetBroadcasterSubscriptionsHTTPResponse) StatusCode ¶
func (r GetBroadcasterSubscriptionsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBroadcasterSubscriptionsParams ¶
type GetBroadcasterSubscriptionsParams struct { // BroadcasterId The broadcaster’s ID. This ID must match the user ID in the access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // UserId Filters the list to include only the specified subscribers. To specify more than one subscriber, include this parameter for each subscriber. For example, `&user_id=1234&user_id=5678`. You may specify a maximum of 100 subscribers. UserId *[]string `form:"user_id,omitempty" json:"user_id,omitempty"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 20. First *string `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. Do not specify if you set the _user\_id_ query parameter. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` // Before The cursor used to get the previous page of results. Do not specify if you set the _user\_id_ query parameter. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Before *string `form:"before,omitempty" json:"before,omitempty"` }
GetBroadcasterSubscriptionsParams defines parameters for GetBroadcasterSubscriptions.
type GetBroadcasterSubscriptionsResponse ¶
type GetBroadcasterSubscriptionsResponse struct { // Data The list of users that subscribe to the broadcaster. The list is empty if the broadcaster has no subscribers. Data []BroadcasterSubscription `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next or previous page of results. Use the cursor to set the request’s _after_ or _before_ query parameter depending on whether you’re paging forwards or backwards. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` // Points The current number of subscriber points earned by this broadcaster. Points are based on the subscription tier of each user that subscribes to this broadcaster. For example, a Tier 1 subscription is worth 1 point, Tier 2 is worth 2 points, and Tier 3 is worth 6 points. The number of points determines the number of emote slots that are unlocked for the broadcaster (see [Subscriber Emote Slots](https://help.twitch.tv/s/article/subscriber-emote-guide#emoteslots)). Points int32 `json:"points"` // Total The total number of users that subscribe to this broadcaster. Total int32 `json:"total"` }
GetBroadcasterSubscriptionsResponse defines model for GetBroadcasterSubscriptionsResponse.
func (GetBroadcasterSubscriptionsResponse) GetData ¶
func (datatype GetBroadcasterSubscriptionsResponse) GetData() []BroadcasterSubscription
func (GetBroadcasterSubscriptionsResponse) GetPagination ¶
func (datatype GetBroadcasterSubscriptionsResponse) GetPagination() struct { // Cursor The cursor used to get the next or previous page of results. Use the cursor to set the request’s _after_ or _before_ query parameter depending on whether you’re paging forwards or backwards. Cursor *string `json:"cursor,omitempty"` }
func (GetBroadcasterSubscriptionsResponse) GetPoints ¶
func (datatype GetBroadcasterSubscriptionsResponse) GetPoints() int32
func (GetBroadcasterSubscriptionsResponse) GetTotal ¶
func (datatype GetBroadcasterSubscriptionsResponse) GetTotal() int32
type GetChannelChatBadgesHTTPResponse ¶
type GetChannelChatBadgesHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetChannelChatBadgesResponse }
func ParseGetChannelChatBadgesHTTPResponse ¶
func ParseGetChannelChatBadgesHTTPResponse(rsp *http.Response) (*GetChannelChatBadgesHTTPResponse, error)
ParseGetChannelChatBadgesHTTPResponse parses an HTTP response from a GetChannelChatBadgesWithResponse call
func (GetChannelChatBadgesHTTPResponse) Status ¶
func (r GetChannelChatBadgesHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetChannelChatBadgesHTTPResponse) StatusCode ¶
func (r GetChannelChatBadgesHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChannelChatBadgesParams ¶
type GetChannelChatBadgesParams struct { // BroadcasterId The ID of the broadcaster whose chat badges you want to get. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
GetChannelChatBadgesParams defines parameters for GetChannelChatBadges.
type GetChannelChatBadgesResponse ¶
type GetChannelChatBadgesResponse struct { // Data The list of chat badges. The list is sorted in ascending order by `set_id`, and within a set, the list is sorted in ascending order by `id`. Data []ChatBadge `json:"data"` }
GetChannelChatBadgesResponse defines model for GetChannelChatBadgesResponse.
func (GetChannelChatBadgesResponse) GetData ¶
func (datatype GetChannelChatBadgesResponse) GetData() []ChatBadge
type GetChannelEditorsHTTPResponse ¶
type GetChannelEditorsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetChannelEditorsResponse }
func ParseGetChannelEditorsHTTPResponse ¶
func ParseGetChannelEditorsHTTPResponse(rsp *http.Response) (*GetChannelEditorsHTTPResponse, error)
ParseGetChannelEditorsHTTPResponse parses an HTTP response from a GetChannelEditorsWithResponse call
func (GetChannelEditorsHTTPResponse) Status ¶
func (r GetChannelEditorsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetChannelEditorsHTTPResponse) StatusCode ¶
func (r GetChannelEditorsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChannelEditorsParams ¶
type GetChannelEditorsParams struct { // BroadcasterId The ID of the broadcaster that owns the channel. This ID must match the user ID in the access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
GetChannelEditorsParams defines parameters for GetChannelEditors.
type GetChannelEditorsResponse ¶
type GetChannelEditorsResponse struct { // Data A list of users that are editors for the specified broadcaster. The list is empty if the broadcaster doesn’t have editors. Data []ChannelEditor `json:"data"` }
GetChannelEditorsResponse defines model for GetChannelEditorsResponse.
func (GetChannelEditorsResponse) GetData ¶
func (datatype GetChannelEditorsResponse) GetData() []ChannelEditor
type GetChannelEmotesHTTPResponse ¶
type GetChannelEmotesHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetChannelEmotesResponse }
func ParseGetChannelEmotesHTTPResponse ¶
func ParseGetChannelEmotesHTTPResponse(rsp *http.Response) (*GetChannelEmotesHTTPResponse, error)
ParseGetChannelEmotesHTTPResponse parses an HTTP response from a GetChannelEmotesWithResponse call
func (GetChannelEmotesHTTPResponse) Status ¶
func (r GetChannelEmotesHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetChannelEmotesHTTPResponse) StatusCode ¶
func (r GetChannelEmotesHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChannelEmotesParams ¶
type GetChannelEmotesParams struct { // BroadcasterId An ID that identifies the broadcaster whose emotes you want to get. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
GetChannelEmotesParams defines parameters for GetChannelEmotes.
type GetChannelEmotesResponse ¶
type GetChannelEmotesResponse struct { // Data The list of emotes that the specified broadcaster created. If the broadcaster hasn't created custom emotes, the list is empty. Data []ChannelEmote `json:"data"` // Template A templated URL. Use the values from the `id`, `format`, `scale`, and `theme_mode` fields to replace the like-named placeholder strings in the templated URL to create a CDN (content delivery network) URL that you use to fetch the emote. For information about what the template looks like and how to use it to fetch emotes, see [Emote CDN URL format](https://dev.twitch.tv/docs/irc/emotes#cdn-template). You should use this template instead of using the URLs in the `images` object. Template string `json:"template"` }
GetChannelEmotesResponse defines model for GetChannelEmotesResponse.
func (GetChannelEmotesResponse) GetData ¶
func (datatype GetChannelEmotesResponse) GetData() []ChannelEmote
func (GetChannelEmotesResponse) GetTemplate ¶
func (datatype GetChannelEmotesResponse) GetTemplate() string
type GetChannelFollowersHTTPResponse ¶
type GetChannelFollowersHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetChannelFollowersResponse }
func ParseGetChannelFollowersHTTPResponse ¶
func ParseGetChannelFollowersHTTPResponse(rsp *http.Response) (*GetChannelFollowersHTTPResponse, error)
ParseGetChannelFollowersHTTPResponse parses an HTTP response from a GetChannelFollowersWithResponse call
func (GetChannelFollowersHTTPResponse) Status ¶
func (r GetChannelFollowersHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetChannelFollowersHTTPResponse) StatusCode ¶
func (r GetChannelFollowersHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChannelFollowersParams ¶
type GetChannelFollowersParams struct { // UserId A user’s ID. Use this parameter to see whether the user follows this broadcaster. If specified, the response contains this user if they follow the broadcaster. If not specified, the response contains all users that follow the broadcaster. // // Using this parameter requires both a user access token with the **moderator:read:followers** scope and the user ID in the access token match the broadcaster\_id or be the user ID for a moderator of the specified broadcaster. UserId *string `form:"user_id,omitempty" json:"user_id,omitempty"` // BroadcasterId The broadcaster’s ID. Returns the list of users that follow this broadcaster. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100\. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read more](https://dev.twitch.tv/docs/api/guide#pagination). After *string `form:"after,omitempty" json:"after,omitempty"` }
GetChannelFollowersParams defines parameters for GetChannelFollowers.
type GetChannelFollowersResponse ¶
type GetChannelFollowersResponse struct { // Data The list of users that follow the specified broadcaster. The list is in descending order by `followed_at` (with the most recent follower first). The list is empty if nobody follows the broadcaster, the specified `user_id` isn’t in the follower list, the user access token is missing the **moderator:read:followers** scope, or the user isn’t the broadcaster or moderator for the channel. Data []struct { // FollowedAt The UTC timestamp when the user started following the broadcaster. FollowedAt time.Time `json:"followed_at"` // UserId An ID that uniquely identifies the user that’s following the broadcaster. UserId string `json:"user_id"` // UserLogin The user’s login name. UserLogin string `json:"user_login"` // UserName The user’s display name. UserName string `json:"user_name"` } `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read more](https://dev.twitch.tv/docs/api/guide#pagination). Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` // Total The total number of users that follow this broadcaster. As someone pages through the list, the number of users may change as users follow or unfollow the broadcaster. Total int32 `json:"total"` }
GetChannelFollowersResponse defines model for GetChannelFollowersResponse.
func (GetChannelFollowersResponse) GetData ¶
func (datatype GetChannelFollowersResponse) GetData() []struct { // FollowedAt The UTC timestamp when the user started following the broadcaster. FollowedAt time.Time `json:"followed_at"` // UserId An ID that uniquely identifies the user that’s following the broadcaster. UserId string `json:"user_id"` // UserLogin The user’s login name. UserLogin string `json:"user_login"` // UserName The user’s display name. UserName string `json:"user_name"` }
func (GetChannelFollowersResponse) GetPagination ¶
func (datatype GetChannelFollowersResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` }
func (GetChannelFollowersResponse) GetTotal ¶
func (datatype GetChannelFollowersResponse) GetTotal() int32
type GetChannelGuestStarSettingsHTTPResponse ¶
type GetChannelGuestStarSettingsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetChannelGuestStarSettingsResponse }
func ParseGetChannelGuestStarSettingsHTTPResponse ¶
func ParseGetChannelGuestStarSettingsHTTPResponse(rsp *http.Response) (*GetChannelGuestStarSettingsHTTPResponse, error)
ParseGetChannelGuestStarSettingsHTTPResponse parses an HTTP response from a GetChannelGuestStarSettingsWithResponse call
func (GetChannelGuestStarSettingsHTTPResponse) Status ¶
func (r GetChannelGuestStarSettingsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetChannelGuestStarSettingsHTTPResponse) StatusCode ¶
func (r GetChannelGuestStarSettingsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChannelGuestStarSettingsParams ¶
type GetChannelGuestStarSettingsParams struct { // BroadcasterId The ID of the broadcaster you want to get guest star settings for. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s chat room. This ID must match the user ID in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` }
GetChannelGuestStarSettingsParams defines parameters for GetChannelGuestStarSettings.
type GetChannelGuestStarSettingsResponse ¶
type GetChannelGuestStarSettingsResponse struct { // BrowserSourceToken View only token to generate browser source URLs BrowserSourceToken string `json:"browser_source_token"` // GroupLayout This setting determines how the guests within a session should be laid out within the browser source. Can be one of the following values: // // * `TILED_LAYOUT`: All live guests are tiled within the browser source with the same size. // * `SCREENSHARE_LAYOUT`: All live guests are tiled within the browser source with the same size. If there is an active screen share, it is sized larger than the other guests. GroupLayout GetChannelGuestStarSettingsResponseGroupLayout `json:"group_layout"` // IsBrowserSourceAudioEnabled Flag determining if Browser Sources subscribed to sessions on this channel should output audio IsBrowserSourceAudioEnabled bool `json:"is_browser_source_audio_enabled"` // IsModeratorSendLiveEnabled Flag determining if Guest Star moderators have access to control whether a guest is live once assigned to a slot. IsModeratorSendLiveEnabled bool `json:"is_moderator_send_live_enabled"` // SlotCount Number of slots the Guest Star call interface will allow the host to add to a call. Required to be between 1 and 6. SlotCount int32 `json:"slot_count"` }
GetChannelGuestStarSettingsResponse defines model for GetChannelGuestStarSettingsResponse.
func (GetChannelGuestStarSettingsResponse) GetBrowserSourceToken ¶
func (datatype GetChannelGuestStarSettingsResponse) GetBrowserSourceToken() string
func (GetChannelGuestStarSettingsResponse) GetGroupLayout ¶
func (datatype GetChannelGuestStarSettingsResponse) GetGroupLayout() GetChannelGuestStarSettingsResponseGroupLayout
func (GetChannelGuestStarSettingsResponse) GetIsBrowserSourceAudioEnabled ¶
func (datatype GetChannelGuestStarSettingsResponse) GetIsBrowserSourceAudioEnabled() bool
func (GetChannelGuestStarSettingsResponse) GetIsModeratorSendLiveEnabled ¶
func (datatype GetChannelGuestStarSettingsResponse) GetIsModeratorSendLiveEnabled() bool
func (GetChannelGuestStarSettingsResponse) GetSlotCount ¶
func (datatype GetChannelGuestStarSettingsResponse) GetSlotCount() int32
type GetChannelGuestStarSettingsResponseGroupLayout ¶
type GetChannelGuestStarSettingsResponseGroupLayout string
GetChannelGuestStarSettingsResponseGroupLayout This setting determines how the guests within a session should be laid out within the browser source. Can be one of the following values:
* `TILED_LAYOUT`: All live guests are tiled within the browser source with the same size. * `SCREENSHARE_LAYOUT`: All live guests are tiled within the browser source with the same size. If there is an active screen share, it is sized larger than the other guests.
const ( GetChannelGuestStarSettingsResponseGroupLayoutSCREENSHARELAYOUT GetChannelGuestStarSettingsResponseGroupLayout = "SCREENSHARE_LAYOUT" GetChannelGuestStarSettingsResponseGroupLayoutTILEDLAYOUT GetChannelGuestStarSettingsResponseGroupLayout = "TILED_LAYOUT" )
Defines values for GetChannelGuestStarSettingsResponseGroupLayout.
type GetChannelIcalendarHTTPResponse ¶
func ParseGetChannelIcalendarHTTPResponse ¶
func ParseGetChannelIcalendarHTTPResponse(rsp *http.Response) (*GetChannelIcalendarHTTPResponse, error)
ParseGetChannelIcalendarHTTPResponse parses an HTTP response from a GetChannelIcalendarWithResponse call
func (GetChannelIcalendarHTTPResponse) Status ¶
func (r GetChannelIcalendarHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetChannelIcalendarHTTPResponse) StatusCode ¶
func (r GetChannelIcalendarHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChannelIcalendarParams ¶
type GetChannelIcalendarParams struct { // BroadcasterId The ID of the broadcaster that owns the streaming schedule you want to get. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
GetChannelIcalendarParams defines parameters for GetChannelIcalendar.
type GetChannelInformationHTTPResponse ¶
type GetChannelInformationHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetChannelInformationResponse }
func ParseGetChannelInformationHTTPResponse ¶
func ParseGetChannelInformationHTTPResponse(rsp *http.Response) (*GetChannelInformationHTTPResponse, error)
ParseGetChannelInformationHTTPResponse parses an HTTP response from a GetChannelInformationWithResponse call
func (GetChannelInformationHTTPResponse) Status ¶
func (r GetChannelInformationHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetChannelInformationHTTPResponse) StatusCode ¶
func (r GetChannelInformationHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChannelInformationParams ¶
type GetChannelInformationParams struct { // BroadcasterId The ID of the broadcaster whose channel you want to get. To specify more than one ID, include this parameter for each broadcaster you want to get. For example, `broadcaster_id=1234&broadcaster_id=5678`. You may specify a maximum of 100 IDs. The API ignores duplicate IDs and IDs that are not found. BroadcasterId []string `form:"broadcaster_id" json:"broadcaster_id"` }
GetChannelInformationParams defines parameters for GetChannelInformation.
type GetChannelInformationResponse ¶
type GetChannelInformationResponse struct { // Data A list that contains information about the specified channels. The list is empty if the specified channels weren’t found. Data []ChannelInformation `json:"data"` }
GetChannelInformationResponse defines model for GetChannelInformationResponse.
func (GetChannelInformationResponse) GetData ¶
func (datatype GetChannelInformationResponse) GetData() []ChannelInformation
type GetChannelStreamScheduleHTTPResponse ¶
type GetChannelStreamScheduleHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetChannelStreamScheduleResponse }
func ParseGetChannelStreamScheduleHTTPResponse ¶
func ParseGetChannelStreamScheduleHTTPResponse(rsp *http.Response) (*GetChannelStreamScheduleHTTPResponse, error)
ParseGetChannelStreamScheduleHTTPResponse parses an HTTP response from a GetChannelStreamScheduleWithResponse call
func (GetChannelStreamScheduleHTTPResponse) Status ¶
func (r GetChannelStreamScheduleHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetChannelStreamScheduleHTTPResponse) StatusCode ¶
func (r GetChannelStreamScheduleHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChannelStreamScheduleParams ¶
type GetChannelStreamScheduleParams struct { // BroadcasterId The ID of the broadcaster that owns the streaming schedule you want to get. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // Id The ID of the scheduled segment to return. To specify more than one segment, include the ID of each segment you want to get. For example, `id=1234&id=5678`. You may specify a maximum of 100 IDs. Id *[]string `form:"id,omitempty" json:"id,omitempty"` // StartTime The UTC date and time that identifies when in the broadcaster’s schedule to start returning segments. If not specified, the request returns segments starting after the current UTC date and time. Specify the date and time in RFC3339 format (for example, `2022-09-01T00:00:00Z`). StartTime *time.Time `form:"start_time,omitempty" json:"start_time,omitempty"` // UtcOffset Not supported. UtcOffset *string `form:"utc_offset,omitempty" json:"utc_offset,omitempty"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 25 items per page. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` }
GetChannelStreamScheduleParams defines parameters for GetChannelStreamSchedule.
type GetChannelStreamScheduleResponse ¶
type GetChannelStreamScheduleResponse struct { // Data The broadcaster’s streaming schedule. Data struct { // BroadcasterId The ID of the broadcaster that owns the broadcast schedule. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // Pagination The information used to page through a list of results. The object is empty if there are no more pages left to page through. [Read more](https://dev.twitch.tv/docs/api/guide#pagination). Pagination *struct { // Cursor The cursor used to get the next page of results. Set the request’s _after_ query parameter to this value. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` // Segments The list of broadcasts in the broadcaster’s streaming schedule. Segments []ChannelStreamScheduleSegment `json:"segments"` // Vacation The dates when the broadcaster is on vacation and not streaming. Is set to **null** if vacation mode is not enabled. Vacation struct { // EndTime The UTC date and time (in RFC3339 format) of when the broadcaster’s vacation ends. EndTime time.Time `json:"end_time"` // StartTime The UTC date and time (in RFC3339 format) of when the broadcaster’s vacation starts. StartTime time.Time `json:"start_time"` } `json:"vacation"` } `json:"data"` }
GetChannelStreamScheduleResponse defines model for GetChannelStreamScheduleResponse.
func (GetChannelStreamScheduleResponse) GetData ¶
func (datatype GetChannelStreamScheduleResponse) GetData() struct { // BroadcasterId The ID of the broadcaster that owns the broadcast schedule. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // Pagination The information used to page through a list of results. The object is empty if there are no more pages left to page through. [Read more](https://dev.twitch.tv/docs/api/guide#pagination). Pagination *struct { // Cursor The cursor used to get the next page of results. Set the request’s _after_ query parameter to this value. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` // Segments The list of broadcasts in the broadcaster’s streaming schedule. Segments []ChannelStreamScheduleSegment `json:"segments"` // Vacation The dates when the broadcaster is on vacation and not streaming. Is set to **null** if vacation mode is not enabled. Vacation struct { // EndTime The UTC date and time (in RFC3339 format) of when the broadcaster’s vacation ends. EndTime time.Time `json:"end_time"` // StartTime The UTC date and time (in RFC3339 format) of when the broadcaster’s vacation starts. StartTime time.Time `json:"start_time"` } `json:"vacation"` }
type GetChannelTeamsHTTPResponse ¶
type GetChannelTeamsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetChannelTeamsResponse }
func ParseGetChannelTeamsHTTPResponse ¶
func ParseGetChannelTeamsHTTPResponse(rsp *http.Response) (*GetChannelTeamsHTTPResponse, error)
ParseGetChannelTeamsHTTPResponse parses an HTTP response from a GetChannelTeamsWithResponse call
func (GetChannelTeamsHTTPResponse) Status ¶
func (r GetChannelTeamsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetChannelTeamsHTTPResponse) StatusCode ¶
func (r GetChannelTeamsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChannelTeamsParams ¶
type GetChannelTeamsParams struct { // BroadcasterId The ID of the broadcaster whose teams you want to get. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
GetChannelTeamsParams defines parameters for GetChannelTeams.
type GetChannelTeamsResponse ¶
type GetChannelTeamsResponse struct { // Data The list of teams that the broadcaster is a member of. Returns an empty array if the broadcaster is not a member of a team. Data []ChannelTeam `json:"data"` }
GetChannelTeamsResponse defines model for GetChannelTeamsResponse.
func (GetChannelTeamsResponse) GetData ¶
func (datatype GetChannelTeamsResponse) GetData() []ChannelTeam
type GetCharityCampaignDonationsHTTPResponse ¶
type GetCharityCampaignDonationsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetCharityCampaignDonationsResponse }
func ParseGetCharityCampaignDonationsHTTPResponse ¶
func ParseGetCharityCampaignDonationsHTTPResponse(rsp *http.Response) (*GetCharityCampaignDonationsHTTPResponse, error)
ParseGetCharityCampaignDonationsHTTPResponse parses an HTTP response from a GetCharityCampaignDonationsWithResponse call
func (GetCharityCampaignDonationsHTTPResponse) Status ¶
func (r GetCharityCampaignDonationsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetCharityCampaignDonationsHTTPResponse) StatusCode ¶
func (r GetCharityCampaignDonationsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCharityCampaignDonationsParams ¶
type GetCharityCampaignDonationsParams struct { // BroadcasterId The ID of the broadcaster that’s currently running a charity campaign. This ID must match the user ID in the access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100\. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` }
GetCharityCampaignDonationsParams defines parameters for GetCharityCampaignDonations.
type GetCharityCampaignDonationsResponse ¶
type GetCharityCampaignDonationsResponse struct { // Data A list that contains the donations that users have made to the broadcaster’s charity campaign. The list is empty if the broadcaster is not currently running a charity campaign; the donation information is not available after the campaign ends. Data []CharityCampaignDonation `json:"data"` // Pagination An object that contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetCharityCampaignDonationsResponse defines model for GetCharityCampaignDonationsResponse.
func (GetCharityCampaignDonationsResponse) GetData ¶
func (datatype GetCharityCampaignDonationsResponse) GetData() []CharityCampaignDonation
func (GetCharityCampaignDonationsResponse) GetPagination ¶
func (datatype GetCharityCampaignDonationsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` }
type GetCharityCampaignHTTPResponse ¶
type GetCharityCampaignHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetCharityCampaignResponse }
func ParseGetCharityCampaignHTTPResponse ¶
func ParseGetCharityCampaignHTTPResponse(rsp *http.Response) (*GetCharityCampaignHTTPResponse, error)
ParseGetCharityCampaignHTTPResponse parses an HTTP response from a GetCharityCampaignWithResponse call
func (GetCharityCampaignHTTPResponse) Status ¶
func (r GetCharityCampaignHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetCharityCampaignHTTPResponse) StatusCode ¶
func (r GetCharityCampaignHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCharityCampaignParams ¶
type GetCharityCampaignParams struct { // BroadcasterId The ID of the broadcaster that’s currently running a charity campaign. This ID must match the user ID in the access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
GetCharityCampaignParams defines parameters for GetCharityCampaign.
type GetCharityCampaignResponse ¶
type GetCharityCampaignResponse struct { // Data A list that contains the charity campaign that the broadcaster is currently running. The list is empty if the broadcaster is not running a charity campaign; the campaign information is not available after the campaign ends. Data []CharityCampaign `json:"data"` }
GetCharityCampaignResponse defines model for GetCharityCampaignResponse.
func (GetCharityCampaignResponse) GetData ¶
func (datatype GetCharityCampaignResponse) GetData() []CharityCampaign
type GetChatSettingsHTTPResponse ¶
type GetChatSettingsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetChatSettingsResponse }
func ParseGetChatSettingsHTTPResponse ¶
func ParseGetChatSettingsHTTPResponse(rsp *http.Response) (*GetChatSettingsHTTPResponse, error)
ParseGetChatSettingsHTTPResponse parses an HTTP response from a GetChatSettingsWithResponse call
func (GetChatSettingsHTTPResponse) Status ¶
func (r GetChatSettingsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetChatSettingsHTTPResponse) StatusCode ¶
func (r GetChatSettingsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChatSettingsParams ¶
type GetChatSettingsParams struct { // BroadcasterId The ID of the broadcaster whose chat settings you want to get. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or one of the broadcaster’s moderators. // // This field is required only if you want to include the `non_moderator_chat_delay` and `non_moderator_chat_delay_duration` settings in the response. // // If you specify this field, this ID must match the user ID in the user access token. ModeratorId *string `form:"moderator_id,omitempty" json:"moderator_id,omitempty"` }
GetChatSettingsParams defines parameters for GetChatSettings.
type GetChatSettingsResponse ¶
type GetChatSettingsResponse struct { // Data The list of chat settings. The list contains a single object with all the settings. Data []ChatSettings `json:"data"` }
GetChatSettingsResponse defines model for GetChatSettingsResponse.
func (GetChatSettingsResponse) GetData ¶
func (datatype GetChatSettingsResponse) GetData() []ChatSettings
type GetChattersHTTPResponse ¶
type GetChattersHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetChattersResponse }
func ParseGetChattersHTTPResponse ¶
func ParseGetChattersHTTPResponse(rsp *http.Response) (*GetChattersHTTPResponse, error)
ParseGetChattersHTTPResponse parses an HTTP response from a GetChattersWithResponse call
func (GetChattersHTTPResponse) Status ¶
func (r GetChattersHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetChattersHTTPResponse) StatusCode ¶
func (r GetChattersHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChattersParams ¶
type GetChattersParams struct { // BroadcasterId The ID of the broadcaster whose list of chatters you want to get. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or one of the broadcaster’s moderators. This ID must match the user ID in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 1,000\. The default is 100. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` }
GetChattersParams defines parameters for GetChatters.
type GetChattersResponse ¶
type GetChattersResponse struct { // Data The list of users that are connected to the broadcaster’s chat room. The list is empty if no users are connected to the chat room. Data []Chatter `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` // Total The total number of users that are connected to the broadcaster’s chat room. As you page through the list, the number of users may change as users join and leave the chat room. Total int32 `json:"total"` }
GetChattersResponse defines model for GetChattersResponse.
func (GetChattersResponse) GetData ¶
func (datatype GetChattersResponse) GetData() []Chatter
func (GetChattersResponse) GetPagination ¶
func (datatype GetChattersResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` }
func (GetChattersResponse) GetTotal ¶
func (datatype GetChattersResponse) GetTotal() int32
type GetCheermotesHTTPResponse ¶
type GetCheermotesHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetCheermotesResponse }
func ParseGetCheermotesHTTPResponse ¶
func ParseGetCheermotesHTTPResponse(rsp *http.Response) (*GetCheermotesHTTPResponse, error)
ParseGetCheermotesHTTPResponse parses an HTTP response from a GetCheermotesWithResponse call
func (GetCheermotesHTTPResponse) Status ¶
func (r GetCheermotesHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetCheermotesHTTPResponse) StatusCode ¶
func (r GetCheermotesHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCheermotesParams ¶
type GetCheermotesParams struct { // BroadcasterId The ID of the broadcaster whose custom Cheermotes you want to get. Specify the broadcaster’s ID if you want to include the broadcaster’s Cheermotes in the response (not all broadcasters upload Cheermotes). If not specified, the response contains only global Cheermotes. // // If the broadcaster uploaded Cheermotes, the `type` field in the response is set to **channel\_custom**. BroadcasterId *string `form:"broadcaster_id,omitempty" json:"broadcaster_id,omitempty"` }
GetCheermotesParams defines parameters for GetCheermotes.
type GetCheermotesResponse ¶
type GetCheermotesResponse struct { // Data The list of Cheermotes. The list is in ascending order by the `order` field’s value. Data []Cheermote `json:"data"` }
GetCheermotesResponse defines model for GetCheermotesResponse.
func (GetCheermotesResponse) GetData ¶
func (datatype GetCheermotesResponse) GetData() []Cheermote
type GetClipsHTTPResponse ¶
type GetClipsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetClipsResponse }
func ParseGetClipsHTTPResponse ¶
func ParseGetClipsHTTPResponse(rsp *http.Response) (*GetClipsHTTPResponse, error)
ParseGetClipsHTTPResponse parses an HTTP response from a GetClipsWithResponse call
func (GetClipsHTTPResponse) Status ¶
func (r GetClipsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetClipsHTTPResponse) StatusCode ¶
func (r GetClipsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetClipsParams ¶
type GetClipsParams struct { // BroadcasterId An ID that identifies the broadcaster whose video clips you want to get. Use this parameter to get clips that were captured from the broadcaster’s streams. BroadcasterId *string `form:"broadcaster_id,omitempty" json:"broadcaster_id,omitempty"` // GameId An ID that identifies the game whose clips you want to get. Use this parameter to get clips that were captured from streams that were playing this game. GameId *string `form:"game_id,omitempty" json:"game_id,omitempty"` // Id An ID that identifies the clip to get. To specify more than one ID, include this parameter for each clip you want to get. For example, `id=foo&id=bar`. You may specify a maximum of 100 IDs. The API ignores duplicate IDs and IDs that aren’t found. Id *[]string `form:"id,omitempty" json:"id,omitempty"` // StartedAt The start date used to filter clips. The API returns only clips within the start and end date window. Specify the date and time in RFC3339 format. StartedAt *time.Time `form:"started_at,omitempty" json:"started_at,omitempty"` // EndedAt The end date used to filter clips. If not specified, the time window is the start date plus one week. Specify the date and time in RFC3339 format. EndedAt *time.Time `form:"ended_at,omitempty" json:"ended_at,omitempty"` // First The maximum number of clips to return per page in the response. The minimum page size is 1 clip per page and the maximum is 100\. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` // Before The cursor used to get the previous page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Before *string `form:"before,omitempty" json:"before,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` // IsFeatured A Boolean value that determines whether the response includes featured clips. If **true**, returns only clips that are featured. If **false**, returns only clips that aren’t featured. All clips are returned if this parameter is not present. IsFeatured *bool `form:"is_featured,omitempty" json:"is_featured,omitempty"` }
GetClipsParams defines parameters for GetClips.
type GetClipsResponse ¶
type GetClipsResponse struct { // Data The list of video clips. For clips returned by _game\_id_ or _broadcaster\_id_, the list is in descending order by view count. For lists returned by _id_, the list is in the same order as the input IDs. Data []Clip `json:"data"` // Pagination The information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Set the request’s _after_ or _before_ query parameter to this value depending on whether you’re paging forwards or backwards. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetClipsResponse defines model for GetClipsResponse.
func (GetClipsResponse) GetData ¶
func (datatype GetClipsResponse) GetData() []Clip
func (GetClipsResponse) GetPagination ¶
func (datatype GetClipsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Set the request’s _after_ or _before_ query parameter to this value depending on whether you’re paging forwards or backwards. Cursor *string `json:"cursor,omitempty"` }
type GetConduitShardsHTTPResponse ¶
type GetConduitShardsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetConduitShardsResponse }
func ParseGetConduitShardsHTTPResponse ¶
func ParseGetConduitShardsHTTPResponse(rsp *http.Response) (*GetConduitShardsHTTPResponse, error)
ParseGetConduitShardsHTTPResponse parses an HTTP response from a GetConduitShardsWithResponse call
func (GetConduitShardsHTTPResponse) Status ¶
func (r GetConduitShardsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetConduitShardsHTTPResponse) StatusCode ¶
func (r GetConduitShardsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetConduitShardsParams ¶
type GetConduitShardsParams struct { // ConduitId Conduit ID. ConduitId string `form:"conduit_id" json:"conduit_id"` // Status Status to filter by. Status *string `form:"status,omitempty" json:"status,omitempty"` // After The cursor used to get the next page of results. The pagination object in the response contains the cursor’s value. After *string `form:"after,omitempty" json:"after,omitempty"` }
GetConduitShardsParams defines parameters for GetConduitShards.
type GetConduitShardsResponse ¶
type GetConduitShardsResponse struct { // Data List of information about a conduit's shards. Data []struct { // Id Shard ID. Id string `json:"id"` // Status The shard status. The subscriber receives events only for enabled shards. Possible values are: // // * enabled — The shard is enabled. // * webhook\_callback\_verification\_pending — The shard is pending verification of the specified callback URL. // * webhook\_callback\_verification\_failed — The specified callback URL failed verification. // * notification\_failures\_exceeded — The notification delivery failure rate was too high. // * websocket\_disconnected — The client closed the connection. // * websocket\_failed\_ping\_pong — The client failed to respond to a ping message. // * websocket\_received\_inbound\_traffic — The client sent a non-pong message. Clients may only send pong messages (and only in response to a ping message). // * websocket\_internal\_error — The Twitch WebSocket server experienced an unexpected error. // * websocket\_network\_timeout — The Twitch WebSocket server timed out writing the message to the client. // * websocket\_network\_error — The Twitch WebSocket server experienced a network error writing the message to the client. // * websocket\_failed\_to\_reconnect - The client failed to reconnect to the Twitch WebSocket server within the required time after a Reconnect Message. Status GetConduitShardsResponseDataStatus `json:"status"` // Transport The transport details used to send the notifications. Transport struct { // Callback The callback URL where the notifications are sent. Included only if method is set to webhook. Callback *string `json:"callback,omitempty"` // ConnectedAt The UTC date and time that the WebSocket connection was established. Included only if method is set to websocket. ConnectedAt *time.Time `json:"connected_at,omitempty"` // DisconnectedAt The UTC date and time that the WebSocket connection was lost. Included only if method is set to websocket. DisconnectedAt *time.Time `json:"disconnected_at,omitempty"` // Method The transport method. Possible values are: // // * webhook // * websocket Method GetConduitShardsResponseDataTransportMethod `json:"method"` // SessionId An ID that identifies the WebSocket that notifications are sent to. Included only if method is set to websocket. SessionId *string `json:"session_id,omitempty"` } `json:"transport"` } `json:"data"` // Pagination Contains information used to page through a list of results. The object is empty if there are no more pages left to page through. Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s after query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetConduitShardsResponse defines model for GetConduitShardsResponse.
func (GetConduitShardsResponse) GetData ¶
func (datatype GetConduitShardsResponse) GetData() []struct { // Id Shard ID. Id string `json:"id"` // Status The shard status. The subscriber receives events only for enabled shards. Possible values are: // // * enabled — The shard is enabled. // * webhook\_callback\_verification\_pending — The shard is pending verification of the specified callback URL. // * webhook\_callback\_verification\_failed — The specified callback URL failed verification. // * notification\_failures\_exceeded — The notification delivery failure rate was too high. // * websocket\_disconnected — The client closed the connection. // * websocket\_failed\_ping\_pong — The client failed to respond to a ping message. // * websocket\_received\_inbound\_traffic — The client sent a non-pong message. Clients may only send pong messages (and only in response to a ping message). // * websocket\_internal\_error — The Twitch WebSocket server experienced an unexpected error. // * websocket\_network\_timeout — The Twitch WebSocket server timed out writing the message to the client. // * websocket\_network\_error — The Twitch WebSocket server experienced a network error writing the message to the client. // * websocket\_failed\_to\_reconnect - The client failed to reconnect to the Twitch WebSocket server within the required time after a Reconnect Message. Status GetConduitShardsResponseDataStatus `json:"status"` // Transport The transport details used to send the notifications. Transport struct { // Callback The callback URL where the notifications are sent. Included only if method is set to webhook. Callback *string `json:"callback,omitempty"` // ConnectedAt The UTC date and time that the WebSocket connection was established. Included only if method is set to websocket. ConnectedAt *time.Time `json:"connected_at,omitempty"` // DisconnectedAt The UTC date and time that the WebSocket connection was lost. Included only if method is set to websocket. DisconnectedAt *time.Time `json:"disconnected_at,omitempty"` // Method The transport method. Possible values are: // // * webhook // * websocket Method GetConduitShardsResponseDataTransportMethod `json:"method"` // SessionId An ID that identifies the WebSocket that notifications are sent to. Included only if method is set to websocket. SessionId *string `json:"session_id,omitempty"` } `json:"transport"` }
func (GetConduitShardsResponse) GetPagination ¶
func (datatype GetConduitShardsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s after query parameter. Cursor *string `json:"cursor,omitempty"` }
type GetConduitShardsResponseDataStatus ¶
type GetConduitShardsResponseDataStatus string
GetConduitShardsResponseDataStatus The shard status. The subscriber receives events only for enabled shards. Possible values are:
* enabled — The shard is enabled. * webhook\_callback\_verification\_pending — The shard is pending verification of the specified callback URL. * webhook\_callback\_verification\_failed — The specified callback URL failed verification. * notification\_failures\_exceeded — The notification delivery failure rate was too high. * websocket\_disconnected — The client closed the connection. * websocket\_failed\_ping\_pong — The client failed to respond to a ping message. * websocket\_received\_inbound\_traffic — The client sent a non-pong message. Clients may only send pong messages (and only in response to a ping message). * websocket\_internal\_error — The Twitch WebSocket server experienced an unexpected error. * websocket\_network\_timeout — The Twitch WebSocket server timed out writing the message to the client. * websocket\_network\_error — The Twitch WebSocket server experienced a network error writing the message to the client. * websocket\_failed\_to\_reconnect - The client failed to reconnect to the Twitch WebSocket server within the required time after a Reconnect Message.
const ( GetConduitShardsResponseDataStatusEnabled GetConduitShardsResponseDataStatus = "enabled" GetConduitShardsResponseDataStatusNotificationFailuresExceeded GetConduitShardsResponseDataStatus = "notification_failures_exceeded" GetConduitShardsResponseDataStatusWebhookCallbackVerificationFailed GetConduitShardsResponseDataStatus = "webhook_callback_verification_failed" GetConduitShardsResponseDataStatusWebhookCallbackVerificationPending GetConduitShardsResponseDataStatus = "webhook_callback_verification_pending" GetConduitShardsResponseDataStatusWebsocketDisconnected GetConduitShardsResponseDataStatus = "websocket_disconnected" GetConduitShardsResponseDataStatusWebsocketFailedPingPong GetConduitShardsResponseDataStatus = "websocket_failed_ping_pong" GetConduitShardsResponseDataStatusWebsocketFailedToReconnect GetConduitShardsResponseDataStatus = "websocket_failed_to_reconnect" GetConduitShardsResponseDataStatusWebsocketInternalError GetConduitShardsResponseDataStatus = "websocket_internal_error" GetConduitShardsResponseDataStatusWebsocketNetworkError GetConduitShardsResponseDataStatus = "websocket_network_error" GetConduitShardsResponseDataStatusWebsocketNetworkTimeout GetConduitShardsResponseDataStatus = "websocket_network_timeout" GetConduitShardsResponseDataStatusWebsocketReceivedInboundTraffic GetConduitShardsResponseDataStatus = "websocket_received_inbound_traffic" )
Defines values for GetConduitShardsResponseDataStatus.
type GetConduitShardsResponseDataTransportMethod ¶
type GetConduitShardsResponseDataTransportMethod string
GetConduitShardsResponseDataTransportMethod The transport method. Possible values are:
* webhook * websocket
const ( GetConduitShardsResponseDataTransportMethodWebhook GetConduitShardsResponseDataTransportMethod = "webhook" GetConduitShardsResponseDataTransportMethodWebsocket GetConduitShardsResponseDataTransportMethod = "websocket" )
Defines values for GetConduitShardsResponseDataTransportMethod.
type GetConduitsHTTPResponse ¶
type GetConduitsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetConduitsResponse }
func ParseGetConduitsHTTPResponse ¶
func ParseGetConduitsHTTPResponse(rsp *http.Response) (*GetConduitsHTTPResponse, error)
ParseGetConduitsHTTPResponse parses an HTTP response from a GetConduitsWithResponse call
func (GetConduitsHTTPResponse) Status ¶
func (r GetConduitsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetConduitsHTTPResponse) StatusCode ¶
func (r GetConduitsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetConduitsResponse ¶
type GetConduitsResponse struct { // Data List of information about the client’s conduits. Data []struct { // Id Conduit ID. Id string `json:"id"` // ShardCount Number of shards associated with this conduit. ShardCount int32 `json:"shard_count"` } `json:"data"` }
GetConduitsResponse defines model for GetConduitsResponse.
func (GetConduitsResponse) GetData ¶
func (datatype GetConduitsResponse) GetData() []struct { // Id Conduit ID. Id string `json:"id"` // ShardCount Number of shards associated with this conduit. ShardCount int32 `json:"shard_count"` }
type GetContentClassificationLabelsHTTPResponse ¶
type GetContentClassificationLabelsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetContentClassificationLabelsResponse }
func ParseGetContentClassificationLabelsHTTPResponse ¶
func ParseGetContentClassificationLabelsHTTPResponse(rsp *http.Response) (*GetContentClassificationLabelsHTTPResponse, error)
ParseGetContentClassificationLabelsHTTPResponse parses an HTTP response from a GetContentClassificationLabelsWithResponse call
func (GetContentClassificationLabelsHTTPResponse) Status ¶
func (r GetContentClassificationLabelsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetContentClassificationLabelsHTTPResponse) StatusCode ¶
func (r GetContentClassificationLabelsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetContentClassificationLabelsParams ¶
type GetContentClassificationLabelsParams struct { // Locale Locale for the Content Classification Labels. You may specify a maximum of 1 locale. Default: `“en-US”` // Supported locales: `"bg-BG", "cs-CZ", "da-DK", "da-DK", "de-DE", "el-GR", "en-GB", "en-US", "es-ES", "es-MX", "fi-FI", "fr-FR", "hu-HU", "it-IT", "ja-JP", "ko-KR", "nl-NL", "no-NO", "pl-PL", "pt-BT", "pt-PT", "ro-RO", "ru-RU", "sk-SK", "sv-SE", "th-TH", "tr-TR", "vi-VN", "zh-CN", "zh-TW"` Locale *string `form:"locale,omitempty" json:"locale,omitempty"` }
GetContentClassificationLabelsParams defines parameters for GetContentClassificationLabels.
type GetContentClassificationLabelsResponse ¶
type GetContentClassificationLabelsResponse struct { // Data A list that contains information about the available content classification labels. Data []ContentClassificationLabel `json:"data"` }
GetContentClassificationLabelsResponse defines model for GetContentClassificationLabelsResponse.
func (GetContentClassificationLabelsResponse) GetData ¶
func (datatype GetContentClassificationLabelsResponse) GetData() []ContentClassificationLabel
type GetCreatorGoalsHTTPResponse ¶
type GetCreatorGoalsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetCreatorGoalsResponse }
func ParseGetCreatorGoalsHTTPResponse ¶
func ParseGetCreatorGoalsHTTPResponse(rsp *http.Response) (*GetCreatorGoalsHTTPResponse, error)
ParseGetCreatorGoalsHTTPResponse parses an HTTP response from a GetCreatorGoalsWithResponse call
func (GetCreatorGoalsHTTPResponse) Status ¶
func (r GetCreatorGoalsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetCreatorGoalsHTTPResponse) StatusCode ¶
func (r GetCreatorGoalsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCreatorGoalsParams ¶
type GetCreatorGoalsParams struct { // BroadcasterId The ID of the broadcaster that created the goals. This ID must match the user ID in the user access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
GetCreatorGoalsParams defines parameters for GetCreatorGoals.
type GetCreatorGoalsResponse ¶
type GetCreatorGoalsResponse struct { // Data The list of goals. The list is empty if the broadcaster hasn’t created goals. Data []CreatorGoal `json:"data"` }
GetCreatorGoalsResponse defines model for GetCreatorGoalsResponse.
func (GetCreatorGoalsResponse) GetData ¶
func (datatype GetCreatorGoalsResponse) GetData() []CreatorGoal
type GetCustomRewardHTTPResponse ¶
type GetCustomRewardHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetCustomRewardResponse }
func ParseGetCustomRewardHTTPResponse ¶
func ParseGetCustomRewardHTTPResponse(rsp *http.Response) (*GetCustomRewardHTTPResponse, error)
ParseGetCustomRewardHTTPResponse parses an HTTP response from a GetCustomRewardWithResponse call
func (GetCustomRewardHTTPResponse) Status ¶
func (r GetCustomRewardHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetCustomRewardHTTPResponse) StatusCode ¶
func (r GetCustomRewardHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCustomRewardParams ¶
type GetCustomRewardParams struct { // BroadcasterId The ID of the broadcaster whose custom rewards you want to get. This ID must match the user ID found in the OAuth token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // Id A list of IDs to filter the rewards by. To specify more than one ID, include this parameter for each reward you want to get. For example, `id=1234&id=5678`. You may specify a maximum of 50 IDs. // // Duplicate IDs are ignored. The response contains only the IDs that were found. If none of the IDs were found, the response is 404 Not Found. Id *[]string `form:"id,omitempty" json:"id,omitempty"` // OnlyManageableRewards A Boolean value that determines whether the response contains only the custom rewards that the app may manage (the app is identified by the ID in the Client-Id header). Set to **true** to get only the custom rewards that the app may manage. The default is **false**. OnlyManageableRewards *bool `form:"only_manageable_rewards,omitempty" json:"only_manageable_rewards,omitempty"` }
GetCustomRewardParams defines parameters for GetCustomReward.
type GetCustomRewardRedemptionHTTPResponse ¶
type GetCustomRewardRedemptionHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetCustomRewardRedemptionResponse }
func ParseGetCustomRewardRedemptionHTTPResponse ¶
func ParseGetCustomRewardRedemptionHTTPResponse(rsp *http.Response) (*GetCustomRewardRedemptionHTTPResponse, error)
ParseGetCustomRewardRedemptionHTTPResponse parses an HTTP response from a GetCustomRewardRedemptionWithResponse call
func (GetCustomRewardRedemptionHTTPResponse) Status ¶
func (r GetCustomRewardRedemptionHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetCustomRewardRedemptionHTTPResponse) StatusCode ¶
func (r GetCustomRewardRedemptionHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCustomRewardRedemptionParams ¶
type GetCustomRewardRedemptionParams struct { // BroadcasterId The ID of the broadcaster that owns the custom reward. This ID must match the user ID found in the user OAuth token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // RewardId The ID that identifies the custom reward whose redemptions you want to get. RewardId string `form:"reward_id" json:"reward_id"` // Status The status of the redemptions to return. The possible case-sensitive values are: // // * CANCELED // * FULFILLED // * UNFULFILLED // // **NOTE**: This field is required only if you don’t specify the _id_ query parameter. // // **NOTE**: Canceled and fulfilled redemptions are returned for only a few days after they’re canceled or fulfilled. Status *GetCustomRewardRedemptionParamsStatus `form:"status,omitempty" json:"status,omitempty"` // Id A list of IDs to filter the redemptions by. To specify more than one ID, include this parameter for each redemption you want to get. For example, `id=1234&id=5678`. You may specify a maximum of 50 IDs. // // Duplicate IDs are ignored. The response contains only the IDs that were found. If none of the IDs were found, the response is 404 Not Found. Id *[]string `form:"id,omitempty" json:"id,omitempty"` // Sort The order to sort redemptions by. The possible case-sensitive values are: // // * OLDEST // * NEWEST // // The default is OLDEST. Sort *GetCustomRewardRedemptionParamsSort `form:"sort,omitempty" json:"sort,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read more](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` // First The maximum number of redemptions to return per page in the response. The minimum page size is 1 redemption per page and the maximum is 50\. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` }
GetCustomRewardRedemptionParams defines parameters for GetCustomRewardRedemption.
type GetCustomRewardRedemptionParamsSort ¶
type GetCustomRewardRedemptionParamsSort string
GetCustomRewardRedemptionParamsSort defines parameters for GetCustomRewardRedemption.
const ( NEWEST GetCustomRewardRedemptionParamsSort = "NEWEST" OLDEST GetCustomRewardRedemptionParamsSort = "OLDEST" )
Defines values for GetCustomRewardRedemptionParamsSort.
type GetCustomRewardRedemptionParamsStatus ¶
type GetCustomRewardRedemptionParamsStatus string
GetCustomRewardRedemptionParamsStatus defines parameters for GetCustomRewardRedemption.
const ( GetCustomRewardRedemptionParamsStatusCANCELED GetCustomRewardRedemptionParamsStatus = "CANCELED" GetCustomRewardRedemptionParamsStatusFULFILLED GetCustomRewardRedemptionParamsStatus = "FULFILLED" GetCustomRewardRedemptionParamsStatusUNFULFILLED GetCustomRewardRedemptionParamsStatus = "UNFULFILLED" )
Defines values for GetCustomRewardRedemptionParamsStatus.
type GetCustomRewardRedemptionResponse ¶
type GetCustomRewardRedemptionResponse struct { // Data The list of redemptions for the specified reward. The list is empty if there are no redemptions that match the redemption criteria. Data []CustomRewardRedemption `json:"data"` }
GetCustomRewardRedemptionResponse defines model for GetCustomRewardRedemptionResponse.
func (GetCustomRewardRedemptionResponse) GetData ¶
func (datatype GetCustomRewardRedemptionResponse) GetData() []CustomRewardRedemption
type GetCustomRewardResponse ¶
type GetCustomRewardResponse struct { // Data A list of custom rewards. The list is in ascending order by `id`. If the broadcaster hasn’t created custom rewards, the list is empty. Data []CustomReward `json:"data"` }
GetCustomRewardResponse defines model for GetCustomRewardResponse.
func (GetCustomRewardResponse) GetData ¶
func (datatype GetCustomRewardResponse) GetData() []CustomReward
type GetDropsEntitlementsHTTPResponse ¶
type GetDropsEntitlementsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetDropsEntitlementsResponse }
func ParseGetDropsEntitlementsHTTPResponse ¶
func ParseGetDropsEntitlementsHTTPResponse(rsp *http.Response) (*GetDropsEntitlementsHTTPResponse, error)
ParseGetDropsEntitlementsHTTPResponse parses an HTTP response from a GetDropsEntitlementsWithResponse call
func (GetDropsEntitlementsHTTPResponse) Status ¶
func (r GetDropsEntitlementsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetDropsEntitlementsHTTPResponse) StatusCode ¶
func (r GetDropsEntitlementsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDropsEntitlementsParams ¶
type GetDropsEntitlementsParams struct { // Id An ID that identifies the entitlement to get. Include this parameter for each entitlement you want to get. For example, `id=1234&id=5678`. You may specify a maximum of 100 IDs. Id *[]string `form:"id,omitempty" json:"id,omitempty"` // UserId An ID that identifies a user that was granted entitlements. UserId *string `form:"user_id,omitempty" json:"user_id,omitempty"` // GameId An ID that identifies a game that offered entitlements. GameId *string `form:"game_id,omitempty" json:"game_id,omitempty"` // FulfillmentStatus The entitlement’s fulfillment status. Used to filter the list to only those with the specified status. Possible values are: // // * CLAIMED // * FULFILLED FulfillmentStatus *GetDropsEntitlementsParamsFulfillmentStatus `form:"fulfillment_status,omitempty" json:"fulfillment_status,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` // First The maximum number of entitlements to return per page in the response. The minimum page size is 1 entitlement per page and the maximum is 1000\. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` }
GetDropsEntitlementsParams defines parameters for GetDropsEntitlements.
type GetDropsEntitlementsParamsFulfillmentStatus ¶
type GetDropsEntitlementsParamsFulfillmentStatus string
GetDropsEntitlementsParamsFulfillmentStatus defines parameters for GetDropsEntitlements.
const ( GetDropsEntitlementsParamsFulfillmentStatusCLAIMED GetDropsEntitlementsParamsFulfillmentStatus = "CLAIMED" GetDropsEntitlementsParamsFulfillmentStatusFULFILLED GetDropsEntitlementsParamsFulfillmentStatus = "FULFILLED" )
Defines values for GetDropsEntitlementsParamsFulfillmentStatus.
type GetDropsEntitlementsResponse ¶
type GetDropsEntitlementsResponse struct { // Data The list of entitlements. Data []DropsEntitlement `json:"data"` // Pagination The information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Set the request’s _after_ query parameter to this value to page forward through the results. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetDropsEntitlementsResponse defines model for GetDropsEntitlementsResponse.
func (GetDropsEntitlementsResponse) GetData ¶
func (datatype GetDropsEntitlementsResponse) GetData() []DropsEntitlement
func (GetDropsEntitlementsResponse) GetPagination ¶
func (datatype GetDropsEntitlementsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Set the request’s _after_ query parameter to this value to page forward through the results. Cursor *string `json:"cursor,omitempty"` }
type GetEmoteSetsHTTPResponse ¶
type GetEmoteSetsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetEmoteSetsResponse }
func ParseGetEmoteSetsHTTPResponse ¶
func ParseGetEmoteSetsHTTPResponse(rsp *http.Response) (*GetEmoteSetsHTTPResponse, error)
ParseGetEmoteSetsHTTPResponse parses an HTTP response from a GetEmoteSetsWithResponse call
func (GetEmoteSetsHTTPResponse) Status ¶
func (r GetEmoteSetsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetEmoteSetsHTTPResponse) StatusCode ¶
func (r GetEmoteSetsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEmoteSetsParams ¶
type GetEmoteSetsParams struct { // EmoteSetId An ID that identifies the emote set to get. Include this parameter for each emote set you want to get. For example, `emote_set_id=1234&emote_set_id=5678`. You may specify a maximum of 25 IDs. The response contains only the IDs that were found and ignores duplicate IDs. // // To get emote set IDs, use the [Get Channel Emotes](https://dev.twitch.tv/docs/api/reference#get-channel-emotes) API. EmoteSetId []string `form:"emote_set_id" json:"emote_set_id"` }
GetEmoteSetsParams defines parameters for GetEmoteSets.
type GetEmoteSetsResponse ¶
type GetEmoteSetsResponse struct { // Data The list of emotes found in the specified emote sets. The list is empty if none of the IDs were found. The list is in the same order as the set IDs specified in the request. Each set contains one or more emoticons. Data []Emote `json:"data"` // Template A templated URL. Use the values from the `id`, `format`, `scale`, and `theme_mode` fields to replace the like-named placeholder strings in the templated URL to create a CDN (content delivery network) URL that you use to fetch the emote. For information about what the template looks like and how to use it to fetch emotes, see [Emote CDN URL format](https://dev.twitch.tv/docs/irc/emotes#cdn-template). You should use this template instead of using the URLs in the `images` object. Template string `json:"template"` }
GetEmoteSetsResponse defines model for GetEmoteSetsResponse.
func (GetEmoteSetsResponse) GetData ¶
func (datatype GetEmoteSetsResponse) GetData() []Emote
func (GetEmoteSetsResponse) GetTemplate ¶
func (datatype GetEmoteSetsResponse) GetTemplate() string
type GetEventSubSubscriptionsResponse ¶
type GetEventSubSubscriptionsResponse struct { // Data The list of subscriptions. The list is ordered by the oldest subscription first. The list is empty if the client hasn't created subscriptions or there are no subscriptions that match the specified filter criteria. Data []EventSubSubscription `json:"data"` // MaxTotalCost The maximum total cost that you're allowed to incur for all subscriptions that you create. MaxTotalCost int32 `json:"max_total_cost"` // Pagination An object that contains the cursor used to get the next page of subscriptions. The object is empty if there are no more pages to get. The number of subscriptions returned per page is undertermined. Pagination *struct { // Cursor The cursor value that you set the _after_ query parameter to. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` // Total The total number of subscriptions that you've created. Total int32 `json:"total"` // TotalCost The sum of all of your subscription costs. [Learn More](https://dev.twitch.tv/docs/eventsub/manage-subscriptions/#subscription-limits) TotalCost int32 `json:"total_cost"` }
GetEventSubSubscriptionsResponse defines model for GetEventSubSubscriptionsResponse.
func (GetEventSubSubscriptionsResponse) GetData ¶
func (datatype GetEventSubSubscriptionsResponse) GetData() []EventSubSubscription
func (GetEventSubSubscriptionsResponse) GetMaxTotalCost ¶
func (datatype GetEventSubSubscriptionsResponse) GetMaxTotalCost() int32
func (GetEventSubSubscriptionsResponse) GetPagination ¶
func (datatype GetEventSubSubscriptionsResponse) GetPagination() struct { // Cursor The cursor value that you set the _after_ query parameter to. Cursor *string `json:"cursor,omitempty"` }
func (GetEventSubSubscriptionsResponse) GetTotal ¶
func (datatype GetEventSubSubscriptionsResponse) GetTotal() int32
func (GetEventSubSubscriptionsResponse) GetTotalCost ¶
func (datatype GetEventSubSubscriptionsResponse) GetTotalCost() int32
type GetEventsubSubscriptionsHTTPResponse ¶
type GetEventsubSubscriptionsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetEventSubSubscriptionsResponse }
func ParseGetEventsubSubscriptionsHTTPResponse ¶
func ParseGetEventsubSubscriptionsHTTPResponse(rsp *http.Response) (*GetEventsubSubscriptionsHTTPResponse, error)
ParseGetEventsubSubscriptionsHTTPResponse parses an HTTP response from a GetEventsubSubscriptionsWithResponse call
func (GetEventsubSubscriptionsHTTPResponse) Status ¶
func (r GetEventsubSubscriptionsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetEventsubSubscriptionsHTTPResponse) StatusCode ¶
func (r GetEventsubSubscriptionsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEventsubSubscriptionsParams ¶
type GetEventsubSubscriptionsParams struct { // Status Filter subscriptions by its status. Possible values are: // // * enabled — The subscription is enabled. // * webhook\_callback\_verification\_pending — The subscription is pending verification of the specified callback URL. // * webhook\_callback\_verification\_failed — The specified callback URL failed verification. // * notification\_failures\_exceeded — The notification delivery failure rate was too high. // * authorization\_revoked — The authorization was revoked for one or more users specified in the **Condition** object. // * moderator\_removed — The moderator that authorized the subscription is no longer one of the broadcaster's moderators. // * user\_removed — One of the users specified in the **Condition** object was removed. // * chat\_user\_banned - The user specified in the **Condition** object was banned from the broadcaster's chat. // * version\_removed — The subscription to subscription type and version is no longer supported. // * beta\_maintenance — The subscription to the beta subscription type was removed due to maintenance. // * websocket\_disconnected — The client closed the connection. // * websocket\_failed\_ping\_pong — The client failed to respond to a ping message. // * websocket\_received\_inbound\_traffic — The client sent a non-pong message. Clients may only send pong messages (and only in response to a ping message). // * websocket\_connection\_unused — The client failed to subscribe to events within the required time. // * websocket\_internal\_error — The Twitch WebSocket server experienced an unexpected error. // * websocket\_network\_timeout — The Twitch WebSocket server timed out writing the message to the client. // * websocket\_network\_error — The Twitch WebSocket server experienced a network error writing the message to the client. // * websocket\_failed\_to\_reconnect - The client failed to reconnect to the Twitch WebSocket server within the required time after a Reconnect Message. Status *GetEventsubSubscriptionsParamsStatus `form:"status,omitempty" json:"status,omitempty"` // Type Filter subscriptions by subscription type. For a list of subscription types, see [Subscription Types](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#subscription-types). Type *GetEventsubSubscriptionsParamsType `form:"type,omitempty" json:"type,omitempty"` // UserId Filter subscriptions by user ID. The response contains subscriptions where this ID matches a user ID that you specified in the **Condition** object when you [created the subscription](https://dev.twitch.tv/docs/api/reference#create-eventsub-subscription). UserId *string `form:"user_id,omitempty" json:"user_id,omitempty"` // After The cursor used to get the next page of results. The `pagination` object in the response contains the cursor's value. After *string `form:"after,omitempty" json:"after,omitempty"` }
GetEventsubSubscriptionsParams defines parameters for GetEventsubSubscriptions.
type GetEventsubSubscriptionsParamsStatus ¶
type GetEventsubSubscriptionsParamsStatus string
GetEventsubSubscriptionsParamsStatus defines parameters for GetEventsubSubscriptions.
const ( GetEventsubSubscriptionsParamsStatusAuthorizationRevoked GetEventsubSubscriptionsParamsStatus = "authorization_revoked" GetEventsubSubscriptionsParamsStatusBetaMaintenance GetEventsubSubscriptionsParamsStatus = "beta_maintenance" GetEventsubSubscriptionsParamsStatusChatUserBanned GetEventsubSubscriptionsParamsStatus = "chat_user_banned" GetEventsubSubscriptionsParamsStatusEnabled GetEventsubSubscriptionsParamsStatus = "enabled" GetEventsubSubscriptionsParamsStatusModeratorRemoved GetEventsubSubscriptionsParamsStatus = "moderator_removed" GetEventsubSubscriptionsParamsStatusNotificationFailuresExceeded GetEventsubSubscriptionsParamsStatus = "notification_failures_exceeded" GetEventsubSubscriptionsParamsStatusUserRemoved GetEventsubSubscriptionsParamsStatus = "user_removed" GetEventsubSubscriptionsParamsStatusVersionRemoved GetEventsubSubscriptionsParamsStatus = "version_removed" GetEventsubSubscriptionsParamsStatusWebhookCallbackVerificationFailed GetEventsubSubscriptionsParamsStatus = "webhook_callback_verification_failed" GetEventsubSubscriptionsParamsStatusWebhookCallbackVerificationPending GetEventsubSubscriptionsParamsStatus = "webhook_callback_verification_pending" GetEventsubSubscriptionsParamsStatusWebsocketConnectionUnused GetEventsubSubscriptionsParamsStatus = "websocket_connection_unused" GetEventsubSubscriptionsParamsStatusWebsocketDisconnected GetEventsubSubscriptionsParamsStatus = "websocket_disconnected" GetEventsubSubscriptionsParamsStatusWebsocketFailedPingPong GetEventsubSubscriptionsParamsStatus = "websocket_failed_ping_pong" GetEventsubSubscriptionsParamsStatusWebsocketFailedToReconnect GetEventsubSubscriptionsParamsStatus = "websocket_failed_to_reconnect" GetEventsubSubscriptionsParamsStatusWebsocketInternalError GetEventsubSubscriptionsParamsStatus = "websocket_internal_error" GetEventsubSubscriptionsParamsStatusWebsocketNetworkError GetEventsubSubscriptionsParamsStatus = "websocket_network_error" GetEventsubSubscriptionsParamsStatusWebsocketNetworkTimeout GetEventsubSubscriptionsParamsStatus = "websocket_network_timeout" GetEventsubSubscriptionsParamsStatusWebsocketReceivedInboundTraffic GetEventsubSubscriptionsParamsStatus = "websocket_received_inbound_traffic" )
Defines values for GetEventsubSubscriptionsParamsStatus.
type GetEventsubSubscriptionsParamsType ¶
type GetEventsubSubscriptionsParamsType string
GetEventsubSubscriptionsParamsType defines parameters for GetEventsubSubscriptions.
const ( AutomodMessageHold GetEventsubSubscriptionsParamsType = "automod.message.hold" AutomodMessageUpdate GetEventsubSubscriptionsParamsType = "automod.message.update" AutomodSettingsUpdate GetEventsubSubscriptionsParamsType = "automod.settings.update" AutomodTermsUpdate GetEventsubSubscriptionsParamsType = "automod.terms.update" ChannelAdBreakBegin GetEventsubSubscriptionsParamsType = "channel.ad_break.begin" ChannelBan GetEventsubSubscriptionsParamsType = "channel.ban" ChannelChannelPointsAutomaticRewardRedemptionAdd GetEventsubSubscriptionsParamsType = "channel.channel_points_automatic_reward_redemption.add" ChannelChannelPointsCustomRewardAdd GetEventsubSubscriptionsParamsType = "channel.channel_points_custom_reward.add" ChannelChannelPointsCustomRewardRedemptionAdd GetEventsubSubscriptionsParamsType = "channel.channel_points_custom_reward_redemption.add" ChannelChannelPointsCustomRewardRedemptionUpdate GetEventsubSubscriptionsParamsType = "channel.channel_points_custom_reward_redemption.update" ChannelChannelPointsCustomRewardRemove GetEventsubSubscriptionsParamsType = "channel.channel_points_custom_reward.remove" ChannelChannelPointsCustomRewardUpdate GetEventsubSubscriptionsParamsType = "channel.channel_points_custom_reward.update" ChannelCharityCampaignDonate GetEventsubSubscriptionsParamsType = "channel.charity_campaign.donate" ChannelCharityCampaignProgress GetEventsubSubscriptionsParamsType = "channel.charity_campaign.progress" ChannelCharityCampaignStart GetEventsubSubscriptionsParamsType = "channel.charity_campaign.start" ChannelCharityCampaignStop GetEventsubSubscriptionsParamsType = "channel.charity_campaign.stop" ChannelChatClear GetEventsubSubscriptionsParamsType = "channel.chat.clear" ChannelChatClearUserMessages GetEventsubSubscriptionsParamsType = "channel.chat.clear_user_messages" ChannelChatMessage GetEventsubSubscriptionsParamsType = "channel.chat.message" ChannelChatMessageDelete GetEventsubSubscriptionsParamsType = "channel.chat.message_delete" ChannelChatNotification GetEventsubSubscriptionsParamsType = "channel.chat.notification" ChannelChatSettingsUpdate GetEventsubSubscriptionsParamsType = "channel.chat_settings.update" ChannelChatUserMessageHold GetEventsubSubscriptionsParamsType = "channel.chat.user_message_hold" ChannelChatUserMessageUpdate GetEventsubSubscriptionsParamsType = "channel.chat.user_message_update" ChannelCheer GetEventsubSubscriptionsParamsType = "channel.cheer" ChannelFollow GetEventsubSubscriptionsParamsType = "channel.follow" ChannelGoalBegin GetEventsubSubscriptionsParamsType = "channel.goal.begin" ChannelGoalEnd GetEventsubSubscriptionsParamsType = "channel.goal.end" ChannelGoalProgress GetEventsubSubscriptionsParamsType = "channel.goal.progress" ChannelGuestStarGuestUpdate GetEventsubSubscriptionsParamsType = "channel.guest_star_guest.update" ChannelGuestStarSessionBegin GetEventsubSubscriptionsParamsType = "channel.guest_star_session.begin" ChannelGuestStarSessionEnd GetEventsubSubscriptionsParamsType = "channel.guest_star_session.end" ChannelGuestStarSettingsUpdate GetEventsubSubscriptionsParamsType = "channel.guest_star_settings.update" ChannelHypeTrainBegin GetEventsubSubscriptionsParamsType = "channel.hype_train.begin" ChannelHypeTrainEnd GetEventsubSubscriptionsParamsType = "channel.hype_train.end" ChannelHypeTrainProgress GetEventsubSubscriptionsParamsType = "channel.hype_train.progress" ChannelModerate GetEventsubSubscriptionsParamsType = "channel.moderate" ChannelModeratorAdd GetEventsubSubscriptionsParamsType = "channel.moderator.add" ChannelModeratorRemove GetEventsubSubscriptionsParamsType = "channel.moderator.remove" ChannelPollBegin GetEventsubSubscriptionsParamsType = "channel.poll.begin" ChannelPollEnd GetEventsubSubscriptionsParamsType = "channel.poll.end" ChannelPollProgress GetEventsubSubscriptionsParamsType = "channel.poll.progress" ChannelPredictionBegin GetEventsubSubscriptionsParamsType = "channel.prediction.begin" ChannelPredictionEnd GetEventsubSubscriptionsParamsType = "channel.prediction.end" ChannelPredictionLock GetEventsubSubscriptionsParamsType = "channel.prediction.lock" ChannelPredictionProgress GetEventsubSubscriptionsParamsType = "channel.prediction.progress" ChannelRaid GetEventsubSubscriptionsParamsType = "channel.raid" ChannelShieldModeBegin GetEventsubSubscriptionsParamsType = "channel.shield_mode.begin" ChannelShieldModeEnd GetEventsubSubscriptionsParamsType = "channel.shield_mode.end" ChannelShoutoutCreate GetEventsubSubscriptionsParamsType = "channel.shoutout.create" ChannelShoutoutReceive GetEventsubSubscriptionsParamsType = "channel.shoutout.receive" ChannelSubscribe GetEventsubSubscriptionsParamsType = "channel.subscribe" ChannelSubscriptionEnd GetEventsubSubscriptionsParamsType = "channel.subscription.end" ChannelSubscriptionGift GetEventsubSubscriptionsParamsType = "channel.subscription.gift" ChannelSubscriptionMessage GetEventsubSubscriptionsParamsType = "channel.subscription.message" ChannelSuspiciousUserMessage GetEventsubSubscriptionsParamsType = "channel.suspicious_user.message" ChannelSuspiciousUserUpdate GetEventsubSubscriptionsParamsType = "channel.suspicious_user.update" ChannelUnban GetEventsubSubscriptionsParamsType = "channel.unban" ChannelUnbanRequestCreate GetEventsubSubscriptionsParamsType = "channel.unban_request.create" ChannelUnbanRequestResolve GetEventsubSubscriptionsParamsType = "channel.unban_request.resolve" ChannelUpdate GetEventsubSubscriptionsParamsType = "channel.update" ChannelVipAdd GetEventsubSubscriptionsParamsType = "channel.vip.add" ChannelVipRemove GetEventsubSubscriptionsParamsType = "channel.vip.remove" ChannelWarningAcknowledge GetEventsubSubscriptionsParamsType = "channel.warning.acknowledge" ChannelWarningSend GetEventsubSubscriptionsParamsType = "channel.warning.send" ConduitShardDisabled GetEventsubSubscriptionsParamsType = "conduit.shard.disabled" DropEntitlementGrant GetEventsubSubscriptionsParamsType = "drop.entitlement.grant" ExtensionBitsTransactionCreate GetEventsubSubscriptionsParamsType = "extension.bits_transaction.create" StreamOffline GetEventsubSubscriptionsParamsType = "stream.offline" StreamOnline GetEventsubSubscriptionsParamsType = "stream.online" UserAuthorizationGrant GetEventsubSubscriptionsParamsType = "user.authorization.grant" UserAuthorizationRevoke GetEventsubSubscriptionsParamsType = "user.authorization.revoke" UserUpdate GetEventsubSubscriptionsParamsType = "user.update" UserWhisperMessage GetEventsubSubscriptionsParamsType = "user.whisper.message" )
Defines values for GetEventsubSubscriptionsParamsType.
type GetExtensionAnalyticsHTTPResponse ¶
type GetExtensionAnalyticsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetExtensionAnalyticsResponse }
func ParseGetExtensionAnalyticsHTTPResponse ¶
func ParseGetExtensionAnalyticsHTTPResponse(rsp *http.Response) (*GetExtensionAnalyticsHTTPResponse, error)
ParseGetExtensionAnalyticsHTTPResponse parses an HTTP response from a GetExtensionAnalyticsWithResponse call
func (GetExtensionAnalyticsHTTPResponse) Status ¶
func (r GetExtensionAnalyticsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetExtensionAnalyticsHTTPResponse) StatusCode ¶
func (r GetExtensionAnalyticsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetExtensionAnalyticsParams ¶
type GetExtensionAnalyticsParams struct { // ExtensionId The extension's client ID. If specified, the response contains a report for the specified extension. If not specified, the response includes a report for each extension that the authenticated user owns. ExtensionId *string `form:"extension_id,omitempty" json:"extension_id,omitempty"` // Type The type of analytics report to get. Possible values are: // // * overview\_v2 Type *GetExtensionAnalyticsParamsType `form:"type,omitempty" json:"type,omitempty"` // StartedAt The reporting window's start date, in RFC3339 format. Set the time portion to zeroes (for example, 2021-10-22T00:00:00Z). // // The start date must be on or after January 31, 2018\. If you specify an earlier date, the API ignores it and uses January 31, 2018\. If you specify a start date, you must specify an end date. If you don't specify a start and end date, the report includes all available data since January 31, 2018. // // The report contains one row of data for each day in the reporting window. StartedAt *time.Time `form:"started_at,omitempty" json:"started_at,omitempty"` // EndedAt The reporting window's end date, in RFC3339 format. Set the time portion to zeroes (for example, 2021-10-27T00:00:00Z). The report is inclusive of the end date. // // Specify an end date only if you provide a start date. Because it can take up to two days for the data to be available, you must specify an end date that's earlier than today minus one to two days. If not, the API ignores your end date and uses an end date that is today minus one to two days. EndedAt *time.Time `form:"ended_at,omitempty" json:"ended_at,omitempty"` // First The maximum number of report URLs to return per page in the response. The minimum page size is 1 URL per page and the maximum is 100 URLs per page. The default is 20. // // **NOTE**: While you may specify a maximum value of 100, the response will contain at most 20 URLs per page. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) // // This parameter is ignored if the _extension\_id_ parameter is set. After *string `form:"after,omitempty" json:"after,omitempty"` }
GetExtensionAnalyticsParams defines parameters for GetExtensionAnalytics.
type GetExtensionAnalyticsParamsType ¶
type GetExtensionAnalyticsParamsType string
GetExtensionAnalyticsParamsType defines parameters for GetExtensionAnalytics.
const (
GetExtensionAnalyticsParamsTypeOverviewV2 GetExtensionAnalyticsParamsType = "overview_v2"
)
Defines values for GetExtensionAnalyticsParamsType.
type GetExtensionAnalyticsResponse ¶
type GetExtensionAnalyticsResponse struct { // Data A list of reports. The reports are returned in no particular order; however, the data within each report is in ascending order by date (newest first). The report contains one row of data per day of the reporting window; the report contains rows for only those days that the extension was used. The array is empty if there are no reports. Data []ExtensionAnalytics `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetExtensionAnalyticsResponse defines model for GetExtensionAnalyticsResponse.
func (GetExtensionAnalyticsResponse) GetData ¶
func (datatype GetExtensionAnalyticsResponse) GetData() []ExtensionAnalytics
func (GetExtensionAnalyticsResponse) GetPagination ¶
func (datatype GetExtensionAnalyticsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` }
type GetExtensionBitsProductsHTTPResponse ¶
type GetExtensionBitsProductsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetExtensionBitsProductsResponse }
func ParseGetExtensionBitsProductsHTTPResponse ¶
func ParseGetExtensionBitsProductsHTTPResponse(rsp *http.Response) (*GetExtensionBitsProductsHTTPResponse, error)
ParseGetExtensionBitsProductsHTTPResponse parses an HTTP response from a GetExtensionBitsProductsWithResponse call
func (GetExtensionBitsProductsHTTPResponse) Status ¶
func (r GetExtensionBitsProductsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetExtensionBitsProductsHTTPResponse) StatusCode ¶
func (r GetExtensionBitsProductsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetExtensionBitsProductsParams ¶
type GetExtensionBitsProductsParams struct { // ShouldIncludeAll A Boolean value that determines whether to include disabled or expired Bits products in the response. The default is **false**. ShouldIncludeAll *bool `form:"should_include_all,omitempty" json:"should_include_all,omitempty"` }
GetExtensionBitsProductsParams defines parameters for GetExtensionBitsProducts.
type GetExtensionBitsProductsResponse ¶
type GetExtensionBitsProductsResponse struct { // Data A list of Bits products that the extension created. The list is in ascending SKU order. The list is empty if the extension hasn’t created any products or they’re all expired or disabled. Data []ExtensionBitsProduct `json:"data"` }
GetExtensionBitsProductsResponse defines model for GetExtensionBitsProductsResponse.
func (GetExtensionBitsProductsResponse) GetData ¶
func (datatype GetExtensionBitsProductsResponse) GetData() []ExtensionBitsProduct
type GetExtensionConfigurationSegmentHTTPResponse ¶
type GetExtensionConfigurationSegmentHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetExtensionConfigurationSegmentResponse }
func ParseGetExtensionConfigurationSegmentHTTPResponse ¶
func ParseGetExtensionConfigurationSegmentHTTPResponse(rsp *http.Response) (*GetExtensionConfigurationSegmentHTTPResponse, error)
ParseGetExtensionConfigurationSegmentHTTPResponse parses an HTTP response from a GetExtensionConfigurationSegmentWithResponse call
func (GetExtensionConfigurationSegmentHTTPResponse) Status ¶
func (r GetExtensionConfigurationSegmentHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetExtensionConfigurationSegmentHTTPResponse) StatusCode ¶
func (r GetExtensionConfigurationSegmentHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetExtensionConfigurationSegmentParams ¶
type GetExtensionConfigurationSegmentParams struct { // BroadcasterId The ID of the broadcaster that installed the extension. This parameter is required if you set the _segment_ parameter to broadcaster or developer. Do not specify this parameter if you set _segment_ to global. BroadcasterId *string `form:"broadcaster_id,omitempty" json:"broadcaster_id,omitempty"` // ExtensionId The ID of the extension that contains the configuration segment you want to get. ExtensionId string `form:"extension_id" json:"extension_id"` // Segment The type of configuration segment to get. Possible case-sensitive values are: // // * broadcaster // * developer // * global // // You may specify one or more segments. To specify multiple segments, include the `segment` parameter for each segment to get. For example, `segment=broadcaster&segment=developer`. Ignores duplicate segments. Segment GetExtensionConfigurationSegmentParamsSegment `form:"segment" json:"segment"` }
GetExtensionConfigurationSegmentParams defines parameters for GetExtensionConfigurationSegment.
type GetExtensionConfigurationSegmentParamsSegment ¶
type GetExtensionConfigurationSegmentParamsSegment string
GetExtensionConfigurationSegmentParamsSegment defines parameters for GetExtensionConfigurationSegment.
const ( GetExtensionConfigurationSegmentParamsSegmentBroadcaster GetExtensionConfigurationSegmentParamsSegment = "broadcaster" GetExtensionConfigurationSegmentParamsSegmentDeveloper GetExtensionConfigurationSegmentParamsSegment = "developer" GetExtensionConfigurationSegmentParamsSegmentGlobal GetExtensionConfigurationSegmentParamsSegment = "global" )
Defines values for GetExtensionConfigurationSegmentParamsSegment.
type GetExtensionConfigurationSegmentResponse ¶
type GetExtensionConfigurationSegmentResponse struct { // Data The list of requested configuration segments. The list is returned in the same order that you specified the list of segments in the request. Data []ExtensionConfigurationSegment `json:"data"` }
GetExtensionConfigurationSegmentResponse defines model for GetExtensionConfigurationSegmentResponse.
func (GetExtensionConfigurationSegmentResponse) GetData ¶
func (datatype GetExtensionConfigurationSegmentResponse) GetData() []ExtensionConfigurationSegment
type GetExtensionLiveChannelsHTTPResponse ¶
type GetExtensionLiveChannelsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetExtensionLiveChannelsResponse }
func ParseGetExtensionLiveChannelsHTTPResponse ¶
func ParseGetExtensionLiveChannelsHTTPResponse(rsp *http.Response) (*GetExtensionLiveChannelsHTTPResponse, error)
ParseGetExtensionLiveChannelsHTTPResponse parses an HTTP response from a GetExtensionLiveChannelsWithResponse call
func (GetExtensionLiveChannelsHTTPResponse) Status ¶
func (r GetExtensionLiveChannelsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetExtensionLiveChannelsHTTPResponse) StatusCode ¶
func (r GetExtensionLiveChannelsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetExtensionLiveChannelsParams ¶
type GetExtensionLiveChannelsParams struct { // ExtensionId The ID of the extension to get. Returns the list of broadcasters that are live and that have installed or activated this extension. ExtensionId string `form:"extension_id" json:"extension_id"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The `pagination` field in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` }
GetExtensionLiveChannelsParams defines parameters for GetExtensionLiveChannels.
type GetExtensionLiveChannelsResponse ¶
type GetExtensionLiveChannelsResponse struct { // Data The list of broadcasters that are streaming live and that have installed or activated the extension. Data []ExtensionLiveChannel `json:"data"` // Pagination This field contains the cursor used to page through the results. The field is empty if there are no more pages left to page through. Note that this field is a string compared to other endpoints that use a **Pagination** object. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *string `json:"pagination,omitempty"` }
GetExtensionLiveChannelsResponse defines model for GetExtensionLiveChannelsResponse.
func (GetExtensionLiveChannelsResponse) GetData ¶
func (datatype GetExtensionLiveChannelsResponse) GetData() []ExtensionLiveChannel
func (GetExtensionLiveChannelsResponse) GetPagination ¶
func (datatype GetExtensionLiveChannelsResponse) GetPagination() string
type GetExtensionSecretsHTTPResponse ¶
type GetExtensionSecretsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetExtensionSecretsResponse }
func ParseGetExtensionSecretsHTTPResponse ¶
func ParseGetExtensionSecretsHTTPResponse(rsp *http.Response) (*GetExtensionSecretsHTTPResponse, error)
ParseGetExtensionSecretsHTTPResponse parses an HTTP response from a GetExtensionSecretsWithResponse call
func (GetExtensionSecretsHTTPResponse) Status ¶
func (r GetExtensionSecretsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetExtensionSecretsHTTPResponse) StatusCode ¶
func (r GetExtensionSecretsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetExtensionSecretsResponse ¶
type GetExtensionSecretsResponse struct { // Data The list of shared secrets that the extension created. Data []ExtensionSecret `json:"data"` }
GetExtensionSecretsResponse defines model for GetExtensionSecretsResponse.
func (GetExtensionSecretsResponse) GetData ¶
func (datatype GetExtensionSecretsResponse) GetData() []ExtensionSecret
type GetExtensionTransactionsHTTPResponse ¶
type GetExtensionTransactionsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetExtensionTransactionsResponse }
func ParseGetExtensionTransactionsHTTPResponse ¶
func ParseGetExtensionTransactionsHTTPResponse(rsp *http.Response) (*GetExtensionTransactionsHTTPResponse, error)
ParseGetExtensionTransactionsHTTPResponse parses an HTTP response from a GetExtensionTransactionsWithResponse call
func (GetExtensionTransactionsHTTPResponse) Status ¶
func (r GetExtensionTransactionsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetExtensionTransactionsHTTPResponse) StatusCode ¶
func (r GetExtensionTransactionsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetExtensionTransactionsParams ¶
type GetExtensionTransactionsParams struct { // ExtensionId The ID of the extension whose list of transactions you want to get. ExtensionId string `form:"extension_id" json:"extension_id"` // Id A transaction ID used to filter the list of transactions. Specify this parameter for each transaction you want to get. For example, `id=1234&id=5678`. You may specify a maximum of 100 IDs. Id *[]string `form:"id,omitempty" json:"id,omitempty"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` }
GetExtensionTransactionsParams defines parameters for GetExtensionTransactions.
type GetExtensionTransactionsResponse ¶
type GetExtensionTransactionsResponse struct { // Data The list of transactions. Data []ExtensionTransaction `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetExtensionTransactionsResponse defines model for GetExtensionTransactionsResponse.
func (GetExtensionTransactionsResponse) GetData ¶
func (datatype GetExtensionTransactionsResponse) GetData() []ExtensionTransaction
func (GetExtensionTransactionsResponse) GetPagination ¶
func (datatype GetExtensionTransactionsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` }
type GetExtensionsHTTPResponse ¶
type GetExtensionsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetExtensionsResponse }
func ParseGetExtensionsHTTPResponse ¶
func ParseGetExtensionsHTTPResponse(rsp *http.Response) (*GetExtensionsHTTPResponse, error)
ParseGetExtensionsHTTPResponse parses an HTTP response from a GetExtensionsWithResponse call
func (GetExtensionsHTTPResponse) Status ¶
func (r GetExtensionsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetExtensionsHTTPResponse) StatusCode ¶
func (r GetExtensionsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetExtensionsParams ¶
type GetExtensionsParams struct { // ExtensionId The ID of the extension to get. ExtensionId string `form:"extension_id" json:"extension_id"` // ExtensionVersion The version of the extension to get. If not specified, it returns the latest, released version. If you don’t have a released version, you must specify a version; otherwise, the list is empty. ExtensionVersion *string `form:"extension_version,omitempty" json:"extension_version,omitempty"` }
GetExtensionsParams defines parameters for GetExtensions.
type GetExtensionsResponse ¶
type GetExtensionsResponse struct { // Data A list that contains the specified extension. Data []Extension `json:"data"` }
GetExtensionsResponse defines model for GetExtensionsResponse.
func (GetExtensionsResponse) GetData ¶
func (datatype GetExtensionsResponse) GetData() []Extension
type GetFollowedChannelsHTTPResponse ¶
type GetFollowedChannelsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetFollowedChannelsResponse }
func ParseGetFollowedChannelsHTTPResponse ¶
func ParseGetFollowedChannelsHTTPResponse(rsp *http.Response) (*GetFollowedChannelsHTTPResponse, error)
ParseGetFollowedChannelsHTTPResponse parses an HTTP response from a GetFollowedChannelsWithResponse call
func (GetFollowedChannelsHTTPResponse) Status ¶
func (r GetFollowedChannelsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetFollowedChannelsHTTPResponse) StatusCode ¶
func (r GetFollowedChannelsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFollowedChannelsParams ¶
type GetFollowedChannelsParams struct { // UserId A user’s ID. Returns the list of broadcasters that this user follows. This ID must match the user ID in the user OAuth token. UserId string `form:"user_id" json:"user_id"` // BroadcasterId A broadcaster’s ID. Use this parameter to see whether the user follows this broadcaster. If specified, the response contains this broadcaster if the user follows them. If not specified, the response contains all broadcasters that the user follows. BroadcasterId *string `form:"broadcaster_id,omitempty" json:"broadcaster_id,omitempty"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100\. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read more](https://dev.twitch.tv/docs/api/guide#pagination). After *string `form:"after,omitempty" json:"after,omitempty"` }
GetFollowedChannelsParams defines parameters for GetFollowedChannels.
type GetFollowedChannelsResponse ¶
type GetFollowedChannelsResponse struct { // Data The list of broadcasters that the user follows. The list is in descending order by `followed_at` (with the most recently followed broadcaster first). The list is empty if the user doesn’t follow anyone. Data []struct { // BroadcasterId An ID that uniquely identifies the broadcaster that this user is following. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // FollowedAt The UTC timestamp when the user started following the broadcaster. FollowedAt time.Time `json:"followed_at"` } `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read more](https://dev.twitch.tv/docs/api/guide#pagination). Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` // Total The total number of broadcasters that the user follows. As someone pages through the list, the number may change as the user follows or unfollows broadcasters. Total int32 `json:"total"` }
GetFollowedChannelsResponse defines model for GetFollowedChannelsResponse.
func (GetFollowedChannelsResponse) GetData ¶
func (datatype GetFollowedChannelsResponse) GetData() []struct { // BroadcasterId An ID that uniquely identifies the broadcaster that this user is following. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // FollowedAt The UTC timestamp when the user started following the broadcaster. FollowedAt time.Time `json:"followed_at"` }
func (GetFollowedChannelsResponse) GetPagination ¶
func (datatype GetFollowedChannelsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` }
func (GetFollowedChannelsResponse) GetTotal ¶
func (datatype GetFollowedChannelsResponse) GetTotal() int32
type GetFollowedStreamsHTTPResponse ¶
type GetFollowedStreamsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetFollowedStreamsResponse }
func ParseGetFollowedStreamsHTTPResponse ¶
func ParseGetFollowedStreamsHTTPResponse(rsp *http.Response) (*GetFollowedStreamsHTTPResponse, error)
ParseGetFollowedStreamsHTTPResponse parses an HTTP response from a GetFollowedStreamsWithResponse call
func (GetFollowedStreamsHTTPResponse) Status ¶
func (r GetFollowedStreamsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetFollowedStreamsHTTPResponse) StatusCode ¶
func (r GetFollowedStreamsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFollowedStreamsParams ¶
type GetFollowedStreamsParams struct { // UserId The ID of the user whose list of followed streams you want to get. This ID must match the user ID in the access token. UserId string `form:"user_id" json:"user_id"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 100. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` }
GetFollowedStreamsParams defines parameters for GetFollowedStreams.
type GetFollowedStreamsResponse ¶
type GetFollowedStreamsResponse struct { // Data The list of live streams of broadcasters that the specified user follows. The list is in descending order by the number of viewers watching the stream. Because viewers come and go during a stream, it’s possible to find duplicate or missing streams in the list as you page through the results. The list is empty if none of the followed broadcasters are streaming live. Data []Stream `json:"data"` // Pagination The information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Set the request’s _after_ query parameter to this value. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetFollowedStreamsResponse defines model for GetFollowedStreamsResponse.
func (GetFollowedStreamsResponse) GetData ¶
func (datatype GetFollowedStreamsResponse) GetData() []Stream
func (GetFollowedStreamsResponse) GetPagination ¶
func (datatype GetFollowedStreamsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Set the request’s _after_ query parameter to this value. Cursor *string `json:"cursor,omitempty"` }
type GetGameAnalyticsHTTPResponse ¶
type GetGameAnalyticsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetGameAnalyticsResponse }
func ParseGetGameAnalyticsHTTPResponse ¶
func ParseGetGameAnalyticsHTTPResponse(rsp *http.Response) (*GetGameAnalyticsHTTPResponse, error)
ParseGetGameAnalyticsHTTPResponse parses an HTTP response from a GetGameAnalyticsWithResponse call
func (GetGameAnalyticsHTTPResponse) Status ¶
func (r GetGameAnalyticsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetGameAnalyticsHTTPResponse) StatusCode ¶
func (r GetGameAnalyticsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetGameAnalyticsParams ¶
type GetGameAnalyticsParams struct { // GameId The game’s client ID. If specified, the response contains a report for the specified game. If not specified, the response includes a report for each of the authenticated user’s games. GameId *string `form:"game_id,omitempty" json:"game_id,omitempty"` // Type The type of analytics report to get. Possible values are: // // * overview\_v2 Type *GetGameAnalyticsParamsType `form:"type,omitempty" json:"type,omitempty"` // StartedAt The reporting window’s start date, in RFC3339 format. Set the time portion to zeroes (for example, 2021-10-22T00:00:00Z). If you specify a start date, you must specify an end date. // // The start date must be within one year of today’s date. If you specify an earlier date, the API ignores it and uses a date that’s one year prior to today’s date. If you don’t specify a start and end date, the report includes all available data for the last 365 days from today. // // The report contains one row of data for each day in the reporting window. StartedAt *time.Time `form:"started_at,omitempty" json:"started_at,omitempty"` // EndedAt The reporting window’s end date, in RFC3339 format. Set the time portion to zeroes (for example, 2021-10-22T00:00:00Z). The report is inclusive of the end date. // // Specify an end date only if you provide a start date. Because it can take up to two days for the data to be available, you must specify an end date that’s earlier than today minus one to two days. If not, the API ignores your end date and uses an end date that is today minus one to two days. EndedAt *time.Time `form:"ended_at,omitempty" json:"ended_at,omitempty"` // First The maximum number of report URLs to return per page in the response. The minimum page size is 1 URL per page and the maximum is 100 URLs per page. The default is 20. // // **NOTE**: While you may specify a maximum value of 100, the response will contain at most 20 URLs per page. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) // // This parameter is ignored if _game\_id_ parameter is set. After *string `form:"after,omitempty" json:"after,omitempty"` }
GetGameAnalyticsParams defines parameters for GetGameAnalytics.
type GetGameAnalyticsParamsType ¶
type GetGameAnalyticsParamsType string
GetGameAnalyticsParamsType defines parameters for GetGameAnalytics.
const (
GetGameAnalyticsParamsTypeOverviewV2 GetGameAnalyticsParamsType = "overview_v2"
)
Defines values for GetGameAnalyticsParamsType.
type GetGameAnalyticsResponse ¶
type GetGameAnalyticsResponse struct { // Data A list of reports. The reports are returned in no particular order; however, the data within each report is in ascending order by date (newest first). The report contains one row of data per day of the reporting window; the report contains rows for only those days that the game was used. A report is available only if the game was broadcast for at least 5 hours over the reporting period. The array is empty if there are no reports. Data []GameAnalytics `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetGameAnalyticsResponse defines model for GetGameAnalyticsResponse.
func (GetGameAnalyticsResponse) GetData ¶
func (datatype GetGameAnalyticsResponse) GetData() []GameAnalytics
func (GetGameAnalyticsResponse) GetPagination ¶
func (datatype GetGameAnalyticsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` }
type GetGamesHTTPResponse ¶
type GetGamesHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetGamesResponse }
func ParseGetGamesHTTPResponse ¶
func ParseGetGamesHTTPResponse(rsp *http.Response) (*GetGamesHTTPResponse, error)
ParseGetGamesHTTPResponse parses an HTTP response from a GetGamesWithResponse call
func (GetGamesHTTPResponse) Status ¶
func (r GetGamesHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetGamesHTTPResponse) StatusCode ¶
func (r GetGamesHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetGamesParams ¶
type GetGamesParams struct { // Id The ID of the category or game to get. Include this parameter for each category or game you want to get. For example, `&id=1234&id=5678`. You may specify a maximum of 100 IDs. The endpoint ignores duplicate and invalid IDs or IDs that weren’t found. Id *[]string `form:"id,omitempty" json:"id,omitempty"` // Name The name of the category or game to get. The name must exactly match the category’s or game’s title. Include this parameter for each category or game you want to get. For example, `&name=foo&name=bar`. You may specify a maximum of 100 names. The endpoint ignores duplicate names and names that weren’t found. Name *[]string `form:"name,omitempty" json:"name,omitempty"` // IgdbId The [IGDB](https://www.igdb.com/) ID of the game to get. Include this parameter for each game you want to get. For example, `&igdb_id=1234&igdb_id=5678`. You may specify a maximum of 100 IDs. The endpoint ignores duplicate and invalid IDs or IDs that weren’t found. IgdbId *[]string `form:"igdb_id,omitempty" json:"igdb_id,omitempty"` }
GetGamesParams defines parameters for GetGames.
type GetGamesResponse ¶
type GetGamesResponse struct { // Data The list of categories and games. The list is empty if the specified categories and games weren’t found. Data []Game `json:"data"` }
GetGamesResponse defines model for GetGamesResponse.
func (GetGamesResponse) GetData ¶
func (datatype GetGamesResponse) GetData() []Game
type GetGlobalChatBadgesHTTPResponse ¶
type GetGlobalChatBadgesHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetGlobalChatBadgesResponse }
func ParseGetGlobalChatBadgesHTTPResponse ¶
func ParseGetGlobalChatBadgesHTTPResponse(rsp *http.Response) (*GetGlobalChatBadgesHTTPResponse, error)
ParseGetGlobalChatBadgesHTTPResponse parses an HTTP response from a GetGlobalChatBadgesWithResponse call
func (GetGlobalChatBadgesHTTPResponse) Status ¶
func (r GetGlobalChatBadgesHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetGlobalChatBadgesHTTPResponse) StatusCode ¶
func (r GetGlobalChatBadgesHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetGlobalChatBadgesResponse ¶
type GetGlobalChatBadgesResponse struct { // Data The list of chat badges. The list is sorted in ascending order by `set_id`, and within a set, the list is sorted in ascending order by `id`. Data []ChatBadge `json:"data"` }
GetGlobalChatBadgesResponse defines model for GetGlobalChatBadgesResponse.
func (GetGlobalChatBadgesResponse) GetData ¶
func (datatype GetGlobalChatBadgesResponse) GetData() []ChatBadge
type GetGlobalEmotesHTTPResponse ¶
type GetGlobalEmotesHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetGlobalEmotesResponse }
func ParseGetGlobalEmotesHTTPResponse ¶
func ParseGetGlobalEmotesHTTPResponse(rsp *http.Response) (*GetGlobalEmotesHTTPResponse, error)
ParseGetGlobalEmotesHTTPResponse parses an HTTP response from a GetGlobalEmotesWithResponse call
func (GetGlobalEmotesHTTPResponse) Status ¶
func (r GetGlobalEmotesHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetGlobalEmotesHTTPResponse) StatusCode ¶
func (r GetGlobalEmotesHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetGlobalEmotesResponse ¶
type GetGlobalEmotesResponse struct { // Data The list of global emotes. Data []GlobalEmote `json:"data"` // Template A templated URL. Use the values from the `id`, `format`, `scale`, and `theme_mode` fields to replace the like-named placeholder strings in the templated URL to create a CDN (content delivery network) URL that you use to fetch the emote. For information about what the template looks like and how to use it to fetch emotes, see [Emote CDN URL format](https://dev.twitch.tv/docs/irc/emotes#cdn-template). You should use this template instead of using the URLs in the `images` object. Template string `json:"template"` }
GetGlobalEmotesResponse defines model for GetGlobalEmotesResponse.
func (GetGlobalEmotesResponse) GetData ¶
func (datatype GetGlobalEmotesResponse) GetData() []GlobalEmote
func (GetGlobalEmotesResponse) GetTemplate ¶
func (datatype GetGlobalEmotesResponse) GetTemplate() string
type GetGuestStarInvitesHTTPResponse ¶
type GetGuestStarInvitesHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetGuestStarInvitesResponse }
func ParseGetGuestStarInvitesHTTPResponse ¶
func ParseGetGuestStarInvitesHTTPResponse(rsp *http.Response) (*GetGuestStarInvitesHTTPResponse, error)
ParseGetGuestStarInvitesHTTPResponse parses an HTTP response from a GetGuestStarInvitesWithResponse call
func (GetGuestStarInvitesHTTPResponse) Status ¶
func (r GetGuestStarInvitesHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetGuestStarInvitesHTTPResponse) StatusCode ¶
func (r GetGuestStarInvitesHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetGuestStarInvitesParams ¶
type GetGuestStarInvitesParams struct { // BroadcasterId The ID of the broadcaster running the Guest Star session. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s chat room. This ID must match the `user_id` in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` // SessionId The session ID to query for invite status. SessionId string `form:"session_id" json:"session_id"` }
GetGuestStarInvitesParams defines parameters for GetGuestStarInvites.
type GetGuestStarInvitesResponse ¶
type GetGuestStarInvitesResponse struct { // Data A list of invite objects describing the invited user as well as their ready status. Data []GuestStarInvite `json:"data"` }
GetGuestStarInvitesResponse defines model for GetGuestStarInvitesResponse.
func (GetGuestStarInvitesResponse) GetData ¶
func (datatype GetGuestStarInvitesResponse) GetData() []GuestStarInvite
type GetGuestStarSessionHTTPResponse ¶
type GetGuestStarSessionHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetGuestStarSessionResponse }
func ParseGetGuestStarSessionHTTPResponse ¶
func ParseGetGuestStarSessionHTTPResponse(rsp *http.Response) (*GetGuestStarSessionHTTPResponse, error)
ParseGetGuestStarSessionHTTPResponse parses an HTTP response from a GetGuestStarSessionWithResponse call
func (GetGuestStarSessionHTTPResponse) Status ¶
func (r GetGuestStarSessionHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetGuestStarSessionHTTPResponse) StatusCode ¶
func (r GetGuestStarSessionHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetGuestStarSessionParams ¶
type GetGuestStarSessionParams struct { // BroadcasterId ID for the user hosting the Guest Star session. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s chat room. This ID must match the user ID in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` }
GetGuestStarSessionParams defines parameters for GetGuestStarSession.
type GetGuestStarSessionResponse ¶
type GetGuestStarSessionResponse struct { // Data Summary of the session details Data []GuestStarSession `json:"data"` }
GetGuestStarSessionResponse defines model for GetGuestStarSessionResponse.
func (GetGuestStarSessionResponse) GetData ¶
func (datatype GetGuestStarSessionResponse) GetData() []GuestStarSession
type GetHypeTrainEventsHTTPResponse ¶
type GetHypeTrainEventsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetHypeTrainEventsResponse }
func ParseGetHypeTrainEventsHTTPResponse ¶
func ParseGetHypeTrainEventsHTTPResponse(rsp *http.Response) (*GetHypeTrainEventsHTTPResponse, error)
ParseGetHypeTrainEventsHTTPResponse parses an HTTP response from a GetHypeTrainEventsWithResponse call
func (GetHypeTrainEventsHTTPResponse) Status ¶
func (r GetHypeTrainEventsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetHypeTrainEventsHTTPResponse) StatusCode ¶
func (r GetHypeTrainEventsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHypeTrainEventsParams ¶
type GetHypeTrainEventsParams struct { // BroadcasterId The ID of the broadcaster that’s running the Hype Train. This ID must match the User ID in the user access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 1. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` }
GetHypeTrainEventsParams defines parameters for GetHypeTrainEvents.
type GetHypeTrainEventsResponse ¶
type GetHypeTrainEventsResponse struct { // Data The list of Hype Train events. The list is empty if the broadcaster hasn’t run a Hype Train within the last 5 days. Data []HypeTrainEvent `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetHypeTrainEventsResponse defines model for GetHypeTrainEventsResponse.
func (GetHypeTrainEventsResponse) GetData ¶
func (datatype GetHypeTrainEventsResponse) GetData() []HypeTrainEvent
func (GetHypeTrainEventsResponse) GetPagination ¶
func (datatype GetHypeTrainEventsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` }
type GetModeratedChannelsHTTPResponse ¶
type GetModeratedChannelsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetModeratedChannelsResponse }
func ParseGetModeratedChannelsHTTPResponse ¶
func ParseGetModeratedChannelsHTTPResponse(rsp *http.Response) (*GetModeratedChannelsHTTPResponse, error)
ParseGetModeratedChannelsHTTPResponse parses an HTTP response from a GetModeratedChannelsWithResponse call
func (GetModeratedChannelsHTTPResponse) Status ¶
func (r GetModeratedChannelsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetModeratedChannelsHTTPResponse) StatusCode ¶
func (r GetModeratedChannelsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetModeratedChannelsParams ¶
type GetModeratedChannelsParams struct { // UserId A user’s ID. Returns the list of channels that this user has moderator privileges in. This ID must match the user ID in the user OAuth token UserId string `form:"user_id" json:"user_id"` // After The cursor used to get the next page of results. The Pagination object in the response contains the cursor’s value. After *string `form:"after,omitempty" json:"after,omitempty"` // First The maximum number of items to return per page in the response. // // Minimum page size is 1 item per page and the maximum is 100\. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` }
GetModeratedChannelsParams defines parameters for GetModeratedChannels.
type GetModeratedChannelsResponse ¶
type GetModeratedChannelsResponse struct { // Data The list of channels that the user has moderator privileges in. Data []struct { // BroadcasterId An ID that uniquely identifies the channel this user can moderate. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The channel’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The channels’ display name. BroadcasterName string `json:"broadcaster_name"` } `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s after query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetModeratedChannelsResponse defines model for GetModeratedChannelsResponse.
func (GetModeratedChannelsResponse) GetData ¶
func (datatype GetModeratedChannelsResponse) GetData() []struct { // BroadcasterId An ID that uniquely identifies the channel this user can moderate. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The channel’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The channels’ display name. BroadcasterName string `json:"broadcaster_name"` }
func (GetModeratedChannelsResponse) GetPagination ¶
func (datatype GetModeratedChannelsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s after query parameter. Cursor *string `json:"cursor,omitempty"` }
type GetModeratorsHTTPResponse ¶
type GetModeratorsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetModeratorsResponse }
func ParseGetModeratorsHTTPResponse ¶
func ParseGetModeratorsHTTPResponse(rsp *http.Response) (*GetModeratorsHTTPResponse, error)
ParseGetModeratorsHTTPResponse parses an HTTP response from a GetModeratorsWithResponse call
func (GetModeratorsHTTPResponse) Status ¶
func (r GetModeratorsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetModeratorsHTTPResponse) StatusCode ¶
func (r GetModeratorsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetModeratorsParams ¶
type GetModeratorsParams struct { // BroadcasterId The ID of the broadcaster whose list of moderators you want to get. This ID must match the user ID in the access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // UserId A list of user IDs used to filter the results. To specify more than one ID, include this parameter for each moderator you want to get. For example, `user_id=1234&user_id=5678`. You may specify a maximum of 100 IDs. // // The returned list includes only the users from the list who are moderators in the broadcaster’s channel. The list is returned in the same order as you specified the IDs. UserId *[]string `form:"user_id,omitempty" json:"user_id,omitempty"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 20. First *string `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` }
GetModeratorsParams defines parameters for GetModerators.
type GetModeratorsResponse ¶
type GetModeratorsResponse struct { // Data The list of moderators. Data []UserModerator `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetModeratorsResponse defines model for GetModeratorsResponse.
func (GetModeratorsResponse) GetData ¶
func (datatype GetModeratorsResponse) GetData() []UserModerator
func (GetModeratorsResponse) GetPagination ¶
func (datatype GetModeratorsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` }
type GetPollsHTTPResponse ¶
type GetPollsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetPollsResponse }
func ParseGetPollsHTTPResponse ¶
func ParseGetPollsHTTPResponse(rsp *http.Response) (*GetPollsHTTPResponse, error)
ParseGetPollsHTTPResponse parses an HTTP response from a GetPollsWithResponse call
func (GetPollsHTTPResponse) Status ¶
func (r GetPollsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetPollsHTTPResponse) StatusCode ¶
func (r GetPollsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPollsParams ¶
type GetPollsParams struct { // BroadcasterId The ID of the broadcaster that created the polls. This ID must match the user ID in the user access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // Id A list of IDs that identify the polls to return. To specify more than one ID, include this parameter for each poll you want to get. For example, `id=1234&id=5678`. You may specify a maximum of 20 IDs. // // Specify this parameter only if you want to filter the list that the request returns. The endpoint ignores duplicate IDs and those not owned by this broadcaster. Id *[]string `form:"id,omitempty" json:"id,omitempty"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 20 items per page. The default is 20. First *string `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` }
GetPollsParams defines parameters for GetPolls.
type GetPollsResponse ¶
type GetPollsResponse struct { // Data A list of polls. The polls are returned in descending order of start time unless you specify IDs in the request, in which case they're returned in the same order as you passed them in the request. The list is empty if the broadcaster hasn't created polls. Data []Poll `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request's _after_ query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetPollsResponse defines model for GetPollsResponse.
func (GetPollsResponse) GetData ¶
func (datatype GetPollsResponse) GetData() []Poll
func (GetPollsResponse) GetPagination ¶
func (datatype GetPollsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request's _after_ query parameter. Cursor *string `json:"cursor,omitempty"` }
type GetPredictionsHTTPResponse ¶
type GetPredictionsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetPredictionsResponse }
func ParseGetPredictionsHTTPResponse ¶
func ParseGetPredictionsHTTPResponse(rsp *http.Response) (*GetPredictionsHTTPResponse, error)
ParseGetPredictionsHTTPResponse parses an HTTP response from a GetPredictionsWithResponse call
func (GetPredictionsHTTPResponse) Status ¶
func (r GetPredictionsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetPredictionsHTTPResponse) StatusCode ¶
func (r GetPredictionsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPredictionsParams ¶
type GetPredictionsParams struct { // BroadcasterId The ID of the broadcaster whose predictions you want to get. This ID must match the user ID in the user access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // Id The ID of the prediction to get. To specify more than one ID, include this parameter for each prediction you want to get. For example, `id=1234&id=5678`. You may specify a maximum of 25 IDs. The endpoint ignores duplicate IDs and those not owned by the broadcaster. Id *[]string `form:"id,omitempty" json:"id,omitempty"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 25 items per page. The default is 20. First *string `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` }
GetPredictionsParams defines parameters for GetPredictions.
type GetPredictionsResponse ¶
type GetPredictionsResponse struct { // Data The broadcaster’s list of Channel Points Predictions. The list is sorted in descending ordered by when the prediction began (the most recent prediction is first). The list is empty if the broadcaster hasn’t created predictions. Data []Prediction `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetPredictionsResponse defines model for GetPredictionsResponse.
func (GetPredictionsResponse) GetData ¶
func (datatype GetPredictionsResponse) GetData() []Prediction
func (GetPredictionsResponse) GetPagination ¶
func (datatype GetPredictionsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` }
type GetReleasedExtensionsHTTPResponse ¶
type GetReleasedExtensionsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetReleasedExtensionsResponse }
func ParseGetReleasedExtensionsHTTPResponse ¶
func ParseGetReleasedExtensionsHTTPResponse(rsp *http.Response) (*GetReleasedExtensionsHTTPResponse, error)
ParseGetReleasedExtensionsHTTPResponse parses an HTTP response from a GetReleasedExtensionsWithResponse call
func (GetReleasedExtensionsHTTPResponse) Status ¶
func (r GetReleasedExtensionsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetReleasedExtensionsHTTPResponse) StatusCode ¶
func (r GetReleasedExtensionsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetReleasedExtensionsParams ¶
type GetReleasedExtensionsParams struct { // ExtensionId The ID of the extension to get. ExtensionId string `form:"extension_id" json:"extension_id"` // ExtensionVersion The version of the extension to get. If not specified, it returns the latest version. ExtensionVersion *string `form:"extension_version,omitempty" json:"extension_version,omitempty"` }
GetReleasedExtensionsParams defines parameters for GetReleasedExtensions.
type GetReleasedExtensionsResponse ¶
type GetReleasedExtensionsResponse struct { // Data A list that contains the specified extension. Data []Extension `json:"data"` }
GetReleasedExtensionsResponse defines model for GetReleasedExtensionsResponse.
func (GetReleasedExtensionsResponse) GetData ¶
func (datatype GetReleasedExtensionsResponse) GetData() []Extension
type GetSharedChatSessionHTTPResponse ¶
type GetSharedChatSessionHTTPResponse struct {}
func ParseGetSharedChatSessionHTTPResponse ¶
func ParseGetSharedChatSessionHTTPResponse(rsp *http.Response) (*GetSharedChatSessionHTTPResponse, error)
ParseGetSharedChatSessionHTTPResponse parses an HTTP response from a GetSharedChatSessionWithResponse call
func (GetSharedChatSessionHTTPResponse) Status ¶
func (r GetSharedChatSessionHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetSharedChatSessionHTTPResponse) StatusCode ¶
func (r GetSharedChatSessionHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSharedChatSessionParams ¶
type GetSharedChatSessionParams struct { string `form:"broadcaster_id" json:"broadcaster_id"` }BroadcasterId
GetSharedChatSessionParams defines parameters for GetSharedChatSession.
type GetSharedChatSessionResponse ¶
type GetSharedChatSessionResponse struct { // CreatedAt The UTC date and time (in RFC3339 format) for when the session was created. CreatedAt time.Time `json:"created_at"` // HostBroadcasterId The User ID of the host channel. HostBroadcasterId string `json:"host_broadcaster_id"` // Participants The list of participants in the session. Participants []struct { // BroadcasterId The User ID of the participant channel. BroadcasterId string `json:"broadcaster_id"` } `json:"participants"` // SessionId The unique identifier for the shared chat session. SessionId string `json:"session_id"` // UpdatedAt The UTC date and time (in RFC3339 format) for when the session was last updated. UpdatedAt time.Time `json:"updated_at"` } `json:"data"` }
GetSharedChatSessionResponse defines model for GetSharedChatSessionResponse.
func (GetSharedChatSessionResponse) GetData ¶
func (datatype GetSharedChatSessionResponse) GetData() []struct { // CreatedAt The UTC date and time (in RFC3339 format) for when the session was created. CreatedAt time.Time `json:"created_at"` // HostBroadcasterId The User ID of the host channel. HostBroadcasterId string `json:"host_broadcaster_id"` // Participants The list of participants in the session. Participants []struct { // BroadcasterId The User ID of the participant channel. BroadcasterId string `json:"broadcaster_id"` } `json:"participants"` // SessionId The unique identifier for the shared chat session. SessionId string `json:"session_id"` // UpdatedAt The UTC date and time (in RFC3339 format) for when the session was last updated. UpdatedAt time.Time `json:"updated_at"` }
type GetShieldModeStatusHTTPResponse ¶
type GetShieldModeStatusHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetShieldModeStatusResponse }
func ParseGetShieldModeStatusHTTPResponse ¶
func ParseGetShieldModeStatusHTTPResponse(rsp *http.Response) (*GetShieldModeStatusHTTPResponse, error)
ParseGetShieldModeStatusHTTPResponse parses an HTTP response from a GetShieldModeStatusWithResponse call
func (GetShieldModeStatusHTTPResponse) Status ¶
func (r GetShieldModeStatusHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetShieldModeStatusHTTPResponse) StatusCode ¶
func (r GetShieldModeStatusHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetShieldModeStatusParams ¶
type GetShieldModeStatusParams struct { // BroadcasterId The ID of the broadcaster whose Shield Mode activation status you want to get. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that is one of the broadcaster’s moderators. This ID must match the user ID in the access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` }
GetShieldModeStatusParams defines parameters for GetShieldModeStatus.
type GetShieldModeStatusResponse ¶
type GetShieldModeStatusResponse struct { // Data A list that contains a single object with the broadcaster’s Shield Mode status. Data []struct { // IsActive A Boolean value that determines whether Shield Mode is active. Is **true** if the broadcaster activated Shield Mode; otherwise, **false**. IsActive bool `json:"is_active"` // LastActivatedAt The UTC timestamp (in RFC3339 format) of when Shield Mode was last activated. Is an empty string if Shield Mode hasn’t been previously activated. LastActivatedAt time.Time `json:"last_activated_at"` // ModeratorId An ID that identifies the moderator that last activated Shield Mode. Is an empty string if Shield Mode hasn’t been previously activated. ModeratorId string `json:"moderator_id"` // ModeratorLogin The moderator’s login name. Is an empty string if Shield Mode hasn’t been previously activated. ModeratorLogin string `json:"moderator_login"` // ModeratorName The moderator’s display name. Is an empty string if Shield Mode hasn’t been previously activated. ModeratorName string `json:"moderator_name"` } `json:"data"` }
GetShieldModeStatusResponse defines model for GetShieldModeStatusResponse.
func (GetShieldModeStatusResponse) GetData ¶
func (datatype GetShieldModeStatusResponse) GetData() []struct { // IsActive A Boolean value that determines whether Shield Mode is active. Is **true** if the broadcaster activated Shield Mode; otherwise, **false**. IsActive bool `json:"is_active"` // LastActivatedAt The UTC timestamp (in RFC3339 format) of when Shield Mode was last activated. Is an empty string if Shield Mode hasn’t been previously activated. LastActivatedAt time.Time `json:"last_activated_at"` // ModeratorId An ID that identifies the moderator that last activated Shield Mode. Is an empty string if Shield Mode hasn’t been previously activated. ModeratorId string `json:"moderator_id"` // ModeratorLogin The moderator’s login name. Is an empty string if Shield Mode hasn’t been previously activated. ModeratorLogin string `json:"moderator_login"` // ModeratorName The moderator’s display name. Is an empty string if Shield Mode hasn’t been previously activated. ModeratorName string `json:"moderator_name"` }
type GetStreamKeyHTTPResponse ¶
type GetStreamKeyHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetStreamKeyResponse }
func ParseGetStreamKeyHTTPResponse ¶
func ParseGetStreamKeyHTTPResponse(rsp *http.Response) (*GetStreamKeyHTTPResponse, error)
ParseGetStreamKeyHTTPResponse parses an HTTP response from a GetStreamKeyWithResponse call
func (GetStreamKeyHTTPResponse) Status ¶
func (r GetStreamKeyHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetStreamKeyHTTPResponse) StatusCode ¶
func (r GetStreamKeyHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetStreamKeyParams ¶
type GetStreamKeyParams struct { // BroadcasterId The ID of the broadcaster that owns the channel. The ID must match the user ID in the access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
GetStreamKeyParams defines parameters for GetStreamKey.
type GetStreamKeyResponse ¶
type GetStreamKeyResponse struct { // Data A list that contains the channel’s stream key. Data []struct { // StreamKey The channel’s stream key. StreamKey string `json:"stream_key"` } `json:"data"` }
GetStreamKeyResponse defines model for GetStreamKeyResponse.
func (GetStreamKeyResponse) GetData ¶
func (datatype GetStreamKeyResponse) GetData() []struct { // StreamKey The channel’s stream key. StreamKey string `json:"stream_key"` }
type GetStreamMarkersHTTPResponse ¶
type GetStreamMarkersHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetStreamMarkersResponse }
func ParseGetStreamMarkersHTTPResponse ¶
func ParseGetStreamMarkersHTTPResponse(rsp *http.Response) (*GetStreamMarkersHTTPResponse, error)
ParseGetStreamMarkersHTTPResponse parses an HTTP response from a GetStreamMarkersWithResponse call
func (GetStreamMarkersHTTPResponse) Status ¶
func (r GetStreamMarkersHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetStreamMarkersHTTPResponse) StatusCode ¶
func (r GetStreamMarkersHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetStreamMarkersParams ¶
type GetStreamMarkersParams struct { // UserId A user ID. The request returns the markers from this user’s most recent video. This ID must match the user ID in the access token or the user in the access token must be one of the broadcaster’s editors. // // This parameter and the _video\_id_ query parameter are mutually exclusive. UserId *string `form:"user_id,omitempty" json:"user_id,omitempty"` // VideoId A video on demand (VOD)/video ID. The request returns the markers from this VOD/video. The user in the access token must own the video or the user must be one of the broadcaster’s editors. // // This parameter and the _user\_id_ query parameter are mutually exclusive. VideoId *string `form:"video_id,omitempty" json:"video_id,omitempty"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 20. First *string `form:"first,omitempty" json:"first,omitempty"` // Before The cursor used to get the previous page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Before *string `form:"before,omitempty" json:"before,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` }
GetStreamMarkersParams defines parameters for GetStreamMarkers.
type GetStreamMarkersResponse ¶
type GetStreamMarkersResponse struct { // Data The list of markers grouped by the user that created the marks. Data []StreamMarkers `json:"data"` // Pagination The information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Set the request’s _after_ or _before_ query parameter to this value depending on whether you’re paging forwards or backwards. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetStreamMarkersResponse defines model for GetStreamMarkersResponse.
func (GetStreamMarkersResponse) GetData ¶
func (datatype GetStreamMarkersResponse) GetData() []StreamMarkers
func (GetStreamMarkersResponse) GetPagination ¶
func (datatype GetStreamMarkersResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Set the request’s _after_ or _before_ query parameter to this value depending on whether you’re paging forwards or backwards. Cursor *string `json:"cursor,omitempty"` }
type GetStreamTagsHTTPResponse ¶
type GetStreamTagsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetStreamTagsResponse }
func ParseGetStreamTagsHTTPResponse ¶
func ParseGetStreamTagsHTTPResponse(rsp *http.Response) (*GetStreamTagsHTTPResponse, error)
ParseGetStreamTagsHTTPResponse parses an HTTP response from a GetStreamTagsWithResponse call
func (GetStreamTagsHTTPResponse) Status ¶
func (r GetStreamTagsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetStreamTagsHTTPResponse) StatusCode ¶
func (r GetStreamTagsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetStreamTagsParams ¶
type GetStreamTagsParams struct { // BroadcasterId The ID of the broadcaster whose stream tags you want to get. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
GetStreamTagsParams defines parameters for GetStreamTags.
type GetStreamTagsResponse ¶
type GetStreamTagsResponse struct { // Data The list of stream tags. The list is empty if the broadcaster or Twitch hasn’t added tags to the broadcaster’s channel. Data []StreamTag `json:"data"` }
GetStreamTagsResponse defines model for GetStreamTagsResponse.
func (GetStreamTagsResponse) GetData ¶
func (datatype GetStreamTagsResponse) GetData() []StreamTag
type GetStreamsHTTPResponse ¶
type GetStreamsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetStreamsResponse }
func ParseGetStreamsHTTPResponse ¶
func ParseGetStreamsHTTPResponse(rsp *http.Response) (*GetStreamsHTTPResponse, error)
ParseGetStreamsHTTPResponse parses an HTTP response from a GetStreamsWithResponse call
func (GetStreamsHTTPResponse) Status ¶
func (r GetStreamsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetStreamsHTTPResponse) StatusCode ¶
func (r GetStreamsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetStreamsParams ¶
type GetStreamsParams struct { // UserId A user ID used to filter the list of streams. Returns only the streams of those users that are broadcasting. You may specify a maximum of 100 IDs. To specify multiple IDs, include the _user\_id_ parameter for each user. For example, `&user_id=1234&user_id=5678`. UserId *[]string `form:"user_id,omitempty" json:"user_id,omitempty"` // UserLogin A user login name used to filter the list of streams. Returns only the streams of those users that are broadcasting. You may specify a maximum of 100 login names. To specify multiple names, include the _user\_login_ parameter for each user. For example, `&user_login=foo&user_login=bar`. UserLogin *[]string `form:"user_login,omitempty" json:"user_login,omitempty"` // GameId A game (category) ID used to filter the list of streams. Returns only the streams that are broadcasting the game (category). You may specify a maximum of 100 IDs. To specify multiple IDs, include the _game\_id_ parameter for each game. For example, `&game_id=9876&game_id=5432`. GameId *[]string `form:"game_id,omitempty" json:"game_id,omitempty"` // Type The type of stream to filter the list of streams by. Possible values are: // // * all // * live // // The default is _all_. Type *GetStreamsParamsType `form:"type,omitempty" json:"type,omitempty"` // Language A language code used to filter the list of streams. Returns only streams that broadcast in the specified language. Specify the language using an ISO 639-1 two-letter language code or _other_ if the broadcast uses a language not in the list of [supported stream languages](https://help.twitch.tv/s/article/languages-on-twitch#streamlang). // // You may specify a maximum of 100 language codes. To specify multiple languages, include the _language_ parameter for each language. For example, `&language=de&language=fr`. Language *[]string `form:"language,omitempty" json:"language,omitempty"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` // Before The cursor used to get the previous page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Before *string `form:"before,omitempty" json:"before,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` }
GetStreamsParams defines parameters for GetStreams.
type GetStreamsParamsType ¶
type GetStreamsParamsType string
GetStreamsParamsType defines parameters for GetStreams.
const ( GetStreamsParamsTypeAll GetStreamsParamsType = "all" GetStreamsParamsTypeLive GetStreamsParamsType = "live" )
Defines values for GetStreamsParamsType.
type GetStreamsResponse ¶
type GetStreamsResponse struct { // Data The list of streams. Data []Stream `json:"data"` // Pagination The information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Set the request’s _after_ or _before_ query parameter to this value depending on whether you’re paging forwards or backwards. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetStreamsResponse defines model for GetStreamsResponse.
func (GetStreamsResponse) GetData ¶
func (datatype GetStreamsResponse) GetData() []Stream
func (GetStreamsResponse) GetPagination ¶
func (datatype GetStreamsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Set the request’s _after_ or _before_ query parameter to this value depending on whether you’re paging forwards or backwards. Cursor *string `json:"cursor,omitempty"` }
type GetTeamsHTTPResponse ¶
type GetTeamsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetTeamsResponse }
func ParseGetTeamsHTTPResponse ¶
func ParseGetTeamsHTTPResponse(rsp *http.Response) (*GetTeamsHTTPResponse, error)
ParseGetTeamsHTTPResponse parses an HTTP response from a GetTeamsWithResponse call
func (GetTeamsHTTPResponse) Status ¶
func (r GetTeamsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetTeamsHTTPResponse) StatusCode ¶
func (r GetTeamsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTeamsParams ¶
type GetTeamsParams struct { // Name The name of the team to get. This parameter and the _id_ parameter are mutually exclusive; you must specify the team’s name or ID but not both. Name *string `form:"name,omitempty" json:"name,omitempty"` // Id The ID of the team to get. This parameter and the _name_ parameter are mutually exclusive; you must specify the team’s name or ID but not both. Id *string `form:"id,omitempty" json:"id,omitempty"` }
GetTeamsParams defines parameters for GetTeams.
type GetTeamsResponse ¶
type GetTeamsResponse struct { // Data A list that contains the single team that you requested. Data []Team `json:"data"` }
GetTeamsResponse defines model for GetTeamsResponse.
func (GetTeamsResponse) GetData ¶
func (datatype GetTeamsResponse) GetData() []Team
type GetTopGamesHTTPResponse ¶
type GetTopGamesHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetTopGamesResponse }
func ParseGetTopGamesHTTPResponse ¶
func ParseGetTopGamesHTTPResponse(rsp *http.Response) (*GetTopGamesHTTPResponse, error)
ParseGetTopGamesHTTPResponse parses an HTTP response from a GetTopGamesWithResponse call
func (GetTopGamesHTTPResponse) Status ¶
func (r GetTopGamesHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetTopGamesHTTPResponse) StatusCode ¶
func (r GetTopGamesHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTopGamesParams ¶
type GetTopGamesParams struct { // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` // Before The cursor used to get the previous page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Before *string `form:"before,omitempty" json:"before,omitempty"` }
GetTopGamesParams defines parameters for GetTopGames.
type GetTopGamesResponse ¶
type GetTopGamesResponse struct { // Data The list of broadcasts. The broadcasts are sorted by the number of viewers, with the most popular first. Data []Game `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ or _before_ query parameter to get the next or previous page of results. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetTopGamesResponse defines model for GetTopGamesResponse.
func (GetTopGamesResponse) GetData ¶
func (datatype GetTopGamesResponse) GetData() []Game
func (GetTopGamesResponse) GetPagination ¶
func (datatype GetTopGamesResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ or _before_ query parameter to get the next or previous page of results. Cursor *string `json:"cursor,omitempty"` }
type GetUnbanRequestsHTTPResponse ¶
type GetUnbanRequestsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetUnbanRequestsResponse }
func ParseGetUnbanRequestsHTTPResponse ¶
func ParseGetUnbanRequestsHTTPResponse(rsp *http.Response) (*GetUnbanRequestsHTTPResponse, error)
ParseGetUnbanRequestsHTTPResponse parses an HTTP response from a GetUnbanRequestsWithResponse call
func (GetUnbanRequestsHTTPResponse) Status ¶
func (r GetUnbanRequestsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetUnbanRequestsHTTPResponse) StatusCode ¶
func (r GetUnbanRequestsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUnbanRequestsParams ¶
type GetUnbanRequestsParams struct { // BroadcasterId The ID of the broadcaster whose channel is receiving unban requests. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s unban requests. This ID must match the user ID in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` // Status Filter by a status. // // * pending // * approved // * denied // * acknowledged // * canceled Status string `form:"status" json:"status"` // UserId The ID used to filter what unban requests are returned. UserId *string `form:"user_id,omitempty" json:"user_id,omitempty"` // After Cursor used to get next page of results. Pagination object in response contains cursor value. After *string `form:"after,omitempty" json:"after,omitempty"` // First The maximum number of items to return per page in response First *int32 `form:"first,omitempty" json:"first,omitempty"` }
GetUnbanRequestsParams defines parameters for GetUnbanRequests.
type GetUnbanRequestsResponse ¶
type GetUnbanRequestsResponse struct { // Data A list that contains information about the channel's unban requests. Data []struct { // BroadcasterId User ID of broadcaster whose channel is receiving the unban request. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster's login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster's display name. BroadcasterName string `json:"broadcaster_name"` // CreatedAt Timestamp of when the unban request was created. CreatedAt time.Time `json:"created_at"` // Id Unban request ID. Id string `json:"id"` // ModeratorId User ID of moderator who approved/denied the request. ModeratorId string `json:"moderator_id"` // ModeratorLogin The moderator's login name. ModeratorLogin string `json:"moderator_login"` // ModeratorName The moderator's display name. ModeratorName string `json:"moderator_name"` // ResolutionText Text input by the resolver (moderator) of the unban. request ResolutionText string `json:"resolution_text"` // ResolvedAt Timestamp of when moderator/broadcaster approved or denied the request. ResolvedAt time.Time `json:"resolved_at"` // Status Status of the request. One of: // // * pending // * approved // * denied // * acknowledged // * canceled Status string `json:"status"` // Text Text of the request from the requesting user. Text string `json:"text"` // UserId User ID of the requestor who is asking for an unban. UserId string `json:"user_id"` // UserLogin The user's login name. UserLogin string `json:"user_login"` // UserName The user's display name. UserName string `json:"user_name"` } `json:"data"` // Pagination Contains information used to page through a list of results. The object is empty if there are no more pages left to page through. Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s after query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetUnbanRequestsResponse defines model for GetUnbanRequestsResponse.
func (GetUnbanRequestsResponse) GetData ¶
func (datatype GetUnbanRequestsResponse) GetData() []struct { // BroadcasterId User ID of broadcaster whose channel is receiving the unban request. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster's login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster's display name. BroadcasterName string `json:"broadcaster_name"` // CreatedAt Timestamp of when the unban request was created. CreatedAt time.Time `json:"created_at"` // Id Unban request ID. Id string `json:"id"` // ModeratorId User ID of moderator who approved/denied the request. ModeratorId string `json:"moderator_id"` // ModeratorLogin The moderator's login name. ModeratorLogin string `json:"moderator_login"` // ModeratorName The moderator's display name. ModeratorName string `json:"moderator_name"` // ResolutionText Text input by the resolver (moderator) of the unban. request ResolutionText string `json:"resolution_text"` // ResolvedAt Timestamp of when moderator/broadcaster approved or denied the request. ResolvedAt time.Time `json:"resolved_at"` // Status Status of the request. One of: // // * pending // * approved // * denied // * acknowledged // * canceled Status string `json:"status"` // Text Text of the request from the requesting user. Text string `json:"text"` // UserId User ID of the requestor who is asking for an unban. UserId string `json:"user_id"` // UserLogin The user's login name. UserLogin string `json:"user_login"` // UserName The user's display name. UserName string `json:"user_name"` }
func (GetUnbanRequestsResponse) GetPagination ¶
func (datatype GetUnbanRequestsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s after query parameter. Cursor *string `json:"cursor,omitempty"` }
type GetUserActiveExtensionsHTTPResponse ¶
type GetUserActiveExtensionsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetUserActiveExtensionsResponse }
func ParseGetUserActiveExtensionsHTTPResponse ¶
func ParseGetUserActiveExtensionsHTTPResponse(rsp *http.Response) (*GetUserActiveExtensionsHTTPResponse, error)
ParseGetUserActiveExtensionsHTTPResponse parses an HTTP response from a GetUserActiveExtensionsWithResponse call
func (GetUserActiveExtensionsHTTPResponse) Status ¶
func (r GetUserActiveExtensionsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserActiveExtensionsHTTPResponse) StatusCode ¶
func (r GetUserActiveExtensionsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserActiveExtensionsParams ¶
type GetUserActiveExtensionsParams struct { // UserId The ID of the broadcaster whose active extensions you want to get. // // This parameter is required if you specify an app access token and is optional if you specify a user access token. If you specify a user access token and don’t specify this parameter, the API uses the user ID from the access token. UserId *string `form:"user_id,omitempty" json:"user_id,omitempty"` }
GetUserActiveExtensionsParams defines parameters for GetUserActiveExtensions.
type GetUserActiveExtensionsResponse ¶
type GetUserActiveExtensionsResponse struct { // Data The active extensions that the broadcaster has installed. Data *struct { // Component A dictionary that contains the data for a video-component extension. The dictionary’s key is a sequential number beginning with 1\. The following fields contain the component’s data for each key. Component *map[string]UserExtensionComponent `json:"component,omitempty"` // Overlay A dictionary that contains the data for a video-overlay extension. The dictionary’s key is a sequential number beginning with 1\. The following fields contain the overlay’s data for each key. Overlay *map[string]UserExtensionOverlay `json:"overlay,omitempty"` // Panel A dictionary that contains the data for a panel extension. The dictionary’s key is a sequential number beginning with 1\. The following fields contain the panel’s data for each key. Panel *map[string]UserExtensionPanel `json:"panel,omitempty"` } `json:"data,omitempty"` }
GetUserActiveExtensionsResponse defines model for GetUserActiveExtensionsResponse.
func (GetUserActiveExtensionsResponse) GetData ¶
func (datatype GetUserActiveExtensionsResponse) GetData() struct { // Component A dictionary that contains the data for a video-component extension. The dictionary’s key is a sequential number beginning with 1\. The following fields contain the component’s data for each key. Component *map[string]UserExtensionComponent `json:"component,omitempty"` // Overlay A dictionary that contains the data for a video-overlay extension. The dictionary’s key is a sequential number beginning with 1\. The following fields contain the overlay’s data for each key. Overlay *map[string]UserExtensionOverlay `json:"overlay,omitempty"` // Panel A dictionary that contains the data for a panel extension. The dictionary’s key is a sequential number beginning with 1\. The following fields contain the panel’s data for each key. Panel *map[string]UserExtensionPanel `json:"panel,omitempty"` }
type GetUserBlockListHTTPResponse ¶
type GetUserBlockListHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetUserBlockListResponse }
func ParseGetUserBlockListHTTPResponse ¶
func ParseGetUserBlockListHTTPResponse(rsp *http.Response) (*GetUserBlockListHTTPResponse, error)
ParseGetUserBlockListHTTPResponse parses an HTTP response from a GetUserBlockListWithResponse call
func (GetUserBlockListHTTPResponse) Status ¶
func (r GetUserBlockListHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserBlockListHTTPResponse) StatusCode ¶
func (r GetUserBlockListHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserBlockListParams ¶
type GetUserBlockListParams struct { // BroadcasterId The ID of the broadcaster whose list of blocked users you want to get. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100\. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` }
GetUserBlockListParams defines parameters for GetUserBlockList.
type GetUserBlockListResponse ¶
type GetUserBlockListResponse struct { // Data The list of blocked users. The list is in descending order by when the user was blocked. Data []UserBlockList `json:"data"` }
GetUserBlockListResponse defines model for GetUserBlockListResponse.
func (GetUserBlockListResponse) GetData ¶
func (datatype GetUserBlockListResponse) GetData() []UserBlockList
type GetUserChatColorHTTPResponse ¶
type GetUserChatColorHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetUserChatColorResponse }
func ParseGetUserChatColorHTTPResponse ¶
func ParseGetUserChatColorHTTPResponse(rsp *http.Response) (*GetUserChatColorHTTPResponse, error)
ParseGetUserChatColorHTTPResponse parses an HTTP response from a GetUserChatColorWithResponse call
func (GetUserChatColorHTTPResponse) Status ¶
func (r GetUserChatColorHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserChatColorHTTPResponse) StatusCode ¶
func (r GetUserChatColorHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserChatColorParams ¶
type GetUserChatColorParams struct { // UserId The ID of the user whose username color you want to get. To specify more than one user, include the _user\_id_ parameter for each user to get. For example, `&user_id=1234&user_id=5678`. The maximum number of IDs that you may specify is 100. // // The API ignores duplicate IDs and IDs that weren’t found. UserId []string `form:"user_id" json:"user_id"` }
GetUserChatColorParams defines parameters for GetUserChatColor.
type GetUserChatColorResponse ¶
type GetUserChatColorResponse struct { // Data The list of users and the color code they use for their name. Data []UserChatColor `json:"data"` }
GetUserChatColorResponse defines model for GetUserChatColorResponse.
func (GetUserChatColorResponse) GetData ¶
func (datatype GetUserChatColorResponse) GetData() []UserChatColor
type GetUserEmotesHTTPResponse ¶
type GetUserEmotesHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetUserEmotesResponse }
func ParseGetUserEmotesHTTPResponse ¶
func ParseGetUserEmotesHTTPResponse(rsp *http.Response) (*GetUserEmotesHTTPResponse, error)
ParseGetUserEmotesHTTPResponse parses an HTTP response from a GetUserEmotesWithResponse call
func (GetUserEmotesHTTPResponse) Status ¶
func (r GetUserEmotesHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserEmotesHTTPResponse) StatusCode ¶
func (r GetUserEmotesHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserEmotesParams ¶
type GetUserEmotesParams struct { // UserId The ID of the user. This ID must match the user ID in the user access token. UserId string `form:"user_id" json:"user_id"` // After The cursor used to get the next page of results. The Pagination object in the response contains the cursor’s value. After *string `form:"after,omitempty" json:"after,omitempty"` // BroadcasterId The User ID of a broadcaster you wish to get follower emotes of. Using this query parameter will guarantee inclusion of the broadcaster’s follower emotes in the response body. // // **Note:** If the user specified in `user_id` is subscribed to the broadcaster specified, their follower emotes will appear in the response body regardless if this query parameter is used. BroadcasterId *string `form:"broadcaster_id,omitempty" json:"broadcaster_id,omitempty"` }
GetUserEmotesParams defines parameters for GetUserEmotes.
type GetUserEmotesResponse ¶
type GetUserEmotesResponse struct { Data []struct { // EmoteSetId An ID that identifies the emote set that the emote belongs to. EmoteSetId string `json:"emote_set_id"` // EmoteType The type of emote. The possible values are: // // * **none** — No emote type was assigned to this emote. // * **bitstier** — A Bits tier emote. // * **follower** — A follower emote. // * **subscriptions** — A subscriber emote. // * **channelpoints** — An emote granted by using channel points. // * **rewards** — An emote granted to the user through a special event. // * **hypetrain** — An emote granted for participation in a Hype Train. // * **prime** — An emote granted for linking an Amazon Prime account. // * **turbo** — An emote granted for having Twitch Turbo. // * **smilies** — Emoticons supported by Twitch. // * **globals** — An emote accessible by everyone. // * **owl2019** — Emotes related to Overwatch League 2019. // * **twofactor** — Emotes granted by enabling two-factor authentication on an account. // * **limitedtime** — Emotes that were granted for only a limited time. EmoteType GetUserEmotesResponseDataEmoteType `json:"emote_type"` // Format The formats that the emote is available in. For example, if the emote is available only as a static PNG, the array contains only static. But if the emote is available as a static PNG and an animated GIF, the array contains static and animated. // // * **animated** — An animated GIF is available for this emote. // * **static** — A static PNG file is available for this emote. Format []string `json:"format"` // Id An ID that uniquely identifies this emote. Id string `json:"id"` // Name The User ID of broadcaster whose channel is receiving the unban request. Name string `json:"name"` // OwnerId The ID of the broadcaster who owns the emote. OwnerId string `json:"owner_id"` // Scale The sizes that the emote is available in. For example, if the emote is available in small and medium sizes, the array contains 1.0 and 2.0\. // // * **1.0** — A small version (28px x 28px) is available. // * **2.0** — A medium version (56px x 56px) is available. // * **3.0** — A large version (112px x 112px) is available. Scale []string `json:"scale"` // ThemeMode The background themes that the emote is available in. // // * **dark** // * **light** ThemeMode []string `json:"theme_mode"` } `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. // // For more information about pagination support, see [Twitch API Guide - Pagination](https://dev.twitch.tv/docs/api/guide#pagination). Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s after query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` // Template A templated URL. Uses the values from the _id_, _format_, _scale_, and _theme\_mode_ fields to replace the like-named placeholder strings in the templated URL to create a CDN (content delivery network) URL that you use to fetch the emote. // // For information about what the template looks like and how to use it to fetch emotes, see [Emote CDN URL](https://dev.twitch.tv/docs/irc/emotes#cdn-template) format. Template string `json:"template"` }
GetUserEmotesResponse defines model for GetUserEmotesResponse.
func (GetUserEmotesResponse) GetData ¶
func (datatype GetUserEmotesResponse) GetData() []struct { // EmoteSetId An ID that identifies the emote set that the emote belongs to. EmoteSetId string `json:"emote_set_id"` // EmoteType The type of emote. The possible values are: // // * **none** — No emote type was assigned to this emote. // * **bitstier** — A Bits tier emote. // * **follower** — A follower emote. // * **subscriptions** — A subscriber emote. // * **channelpoints** — An emote granted by using channel points. // * **rewards** — An emote granted to the user through a special event. // * **hypetrain** — An emote granted for participation in a Hype Train. // * **prime** — An emote granted for linking an Amazon Prime account. // * **turbo** — An emote granted for having Twitch Turbo. // * **smilies** — Emoticons supported by Twitch. // * **globals** — An emote accessible by everyone. // * **owl2019** — Emotes related to Overwatch League 2019. // * **twofactor** — Emotes granted by enabling two-factor authentication on an account. // * **limitedtime** — Emotes that were granted for only a limited time. EmoteType GetUserEmotesResponseDataEmoteType `json:"emote_type"` // Format The formats that the emote is available in. For example, if the emote is available only as a static PNG, the array contains only static. But if the emote is available as a static PNG and an animated GIF, the array contains static and animated. // // * **animated** — An animated GIF is available for this emote. // * **static** — A static PNG file is available for this emote. Format []string `json:"format"` // Id An ID that uniquely identifies this emote. Id string `json:"id"` // Name The User ID of broadcaster whose channel is receiving the unban request. Name string `json:"name"` // OwnerId The ID of the broadcaster who owns the emote. OwnerId string `json:"owner_id"` // Scale The sizes that the emote is available in. For example, if the emote is available in small and medium sizes, the array contains 1.0 and 2.0\. // // * **1.0** — A small version (28px x 28px) is available. // * **2.0** — A medium version (56px x 56px) is available. // * **3.0** — A large version (112px x 112px) is available. Scale []string `json:"scale"` // ThemeMode The background themes that the emote is available in. // // * **dark** // * **light** ThemeMode []string `json:"theme_mode"` }
func (GetUserEmotesResponse) GetPagination ¶
func (datatype GetUserEmotesResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s after query parameter. Cursor *string `json:"cursor,omitempty"` }
func (GetUserEmotesResponse) GetTemplate ¶
func (datatype GetUserEmotesResponse) GetTemplate() string
type GetUserEmotesResponseDataEmoteType ¶
type GetUserEmotesResponseDataEmoteType string
GetUserEmotesResponseDataEmoteType The type of emote. The possible values are:
* **none** — No emote type was assigned to this emote. * **bitstier** — A Bits tier emote. * **follower** — A follower emote. * **subscriptions** — A subscriber emote. * **channelpoints** — An emote granted by using channel points. * **rewards** — An emote granted to the user through a special event. * **hypetrain** — An emote granted for participation in a Hype Train. * **prime** — An emote granted for linking an Amazon Prime account. * **turbo** — An emote granted for having Twitch Turbo. * **smilies** — Emoticons supported by Twitch. * **globals** — An emote accessible by everyone. * **owl2019** — Emotes related to Overwatch League 2019. * **twofactor** — Emotes granted by enabling two-factor authentication on an account. * **limitedtime** — Emotes that were granted for only a limited time.
const ( GetUserEmotesResponseDataEmoteTypeBitstier GetUserEmotesResponseDataEmoteType = "bitstier" GetUserEmotesResponseDataEmoteTypeChannelpoints GetUserEmotesResponseDataEmoteType = "channelpoints" GetUserEmotesResponseDataEmoteTypeFollower GetUserEmotesResponseDataEmoteType = "follower" GetUserEmotesResponseDataEmoteTypeGlobals GetUserEmotesResponseDataEmoteType = "globals" GetUserEmotesResponseDataEmoteTypeHypetrain GetUserEmotesResponseDataEmoteType = "hypetrain" GetUserEmotesResponseDataEmoteTypeLimitedtime GetUserEmotesResponseDataEmoteType = "limitedtime" GetUserEmotesResponseDataEmoteTypeNone GetUserEmotesResponseDataEmoteType = "none" GetUserEmotesResponseDataEmoteTypeOwl2019 GetUserEmotesResponseDataEmoteType = "owl2019" GetUserEmotesResponseDataEmoteTypePrime GetUserEmotesResponseDataEmoteType = "prime" GetUserEmotesResponseDataEmoteTypeRewards GetUserEmotesResponseDataEmoteType = "rewards" GetUserEmotesResponseDataEmoteTypeSmilies GetUserEmotesResponseDataEmoteType = "smilies" GetUserEmotesResponseDataEmoteTypeSubscriptions GetUserEmotesResponseDataEmoteType = "subscriptions" GetUserEmotesResponseDataEmoteTypeTurbo GetUserEmotesResponseDataEmoteType = "turbo" GetUserEmotesResponseDataEmoteTypeTwofactor GetUserEmotesResponseDataEmoteType = "twofactor" )
Defines values for GetUserEmotesResponseDataEmoteType.
type GetUserExtensionsHTTPResponse ¶
type GetUserExtensionsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetUserExtensionsResponse }
func ParseGetUserExtensionsHTTPResponse ¶
func ParseGetUserExtensionsHTTPResponse(rsp *http.Response) (*GetUserExtensionsHTTPResponse, error)
ParseGetUserExtensionsHTTPResponse parses an HTTP response from a GetUserExtensionsWithResponse call
func (GetUserExtensionsHTTPResponse) Status ¶
func (r GetUserExtensionsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserExtensionsHTTPResponse) StatusCode ¶
func (r GetUserExtensionsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserExtensionsResponse ¶
type GetUserExtensionsResponse struct { // Data The list of extensions that the user has installed. Data []UserExtension `json:"data"` }
GetUserExtensionsResponse defines model for GetUserExtensionsResponse.
func (GetUserExtensionsResponse) GetData ¶
func (datatype GetUserExtensionsResponse) GetData() []UserExtension
type GetUsersHTTPResponse ¶
type GetUsersHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetUsersResponse }
func ParseGetUsersHTTPResponse ¶
func ParseGetUsersHTTPResponse(rsp *http.Response) (*GetUsersHTTPResponse, error)
ParseGetUsersHTTPResponse parses an HTTP response from a GetUsersWithResponse call
func (GetUsersHTTPResponse) Status ¶
func (r GetUsersHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetUsersHTTPResponse) StatusCode ¶
func (r GetUsersHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUsersParams ¶
type GetUsersParams struct { // Id The ID of the user to get. To specify more than one user, include the _id_ parameter for each user to get. For example, `id=1234&id=5678`. The maximum number of IDs you may specify is 100. Id *[]string `form:"id,omitempty" json:"id,omitempty"` // Login The login name of the user to get. To specify more than one user, include the _login_ parameter for each user to get. For example, `login=foo&login=bar`. The maximum number of login names you may specify is 100. Login *[]string `form:"login,omitempty" json:"login,omitempty"` }
GetUsersParams defines parameters for GetUsers.
type GetUsersResponse ¶
type GetUsersResponse struct { // Data The list of users. Data []User `json:"data"` }
GetUsersResponse defines model for GetUsersResponse.
func (GetUsersResponse) GetData ¶
func (datatype GetUsersResponse) GetData() []User
type GetVIPsResponse ¶
type GetVIPsResponse struct { // Data The list of VIPs. The list is empty if the broadcaster doesn’t have VIP users. Data []UserVip `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetVIPsResponse defines model for GetVIPsResponse.
func (GetVIPsResponse) GetData ¶
func (datatype GetVIPsResponse) GetData() []UserVip
func (GetVIPsResponse) GetPagination ¶
func (datatype GetVIPsResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request’s _after_ query parameter. Cursor *string `json:"cursor,omitempty"` }
type GetVideosHTTPResponse ¶
type GetVideosHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetVideosResponse }
func ParseGetVideosHTTPResponse ¶
func ParseGetVideosHTTPResponse(rsp *http.Response) (*GetVideosHTTPResponse, error)
ParseGetVideosHTTPResponse parses an HTTP response from a GetVideosWithResponse call
func (GetVideosHTTPResponse) Status ¶
func (r GetVideosHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetVideosHTTPResponse) StatusCode ¶
func (r GetVideosHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVideosParams ¶
type GetVideosParams struct { // Id A list of IDs that identify the videos you want to get. To get more than one video, include this parameter for each video you want to get. For example, `id=1234&id=5678`. You may specify a maximum of 100 IDs. The endpoint ignores duplicate IDs and IDs that weren't found (if there's at least one valid ID). // // The _id_, _user\_id_, and _game\_id_ parameters are mutually exclusive. Id *[]string `form:"id,omitempty" json:"id,omitempty"` // UserId The ID of the user whose list of videos you want to get. // // The _id_, _user\_id_, and _game\_id_ parameters are mutually exclusive. UserId *string `form:"user_id,omitempty" json:"user_id,omitempty"` // GameId A category or game ID. The response contains a maximum of 500 videos that show this content. To get category/game IDs, use the [Search Categories](https://dev.twitch.tv/docs/api/reference#search-categories) endpoint. // // The _id_, _user\_id_, and _game\_id_ parameters are mutually exclusive. GameId *string `form:"game_id,omitempty" json:"game_id,omitempty"` // Language A filter used to filter the list of videos by the language that the video owner broadcasts in. For example, to get videos that were broadcast in German, set this parameter to the ISO 639-1 two-letter code for German (i.e., DE). For a list of supported languages, see [Supported Stream Language](https://help.twitch.tv/s/article/languages-on-twitch#streamlang). If the language is not supported, use “other.” // // Specify this parameter only if you specify the _game\_id_ query parameter. Language *string `form:"language,omitempty" json:"language,omitempty"` // Period A filter used to filter the list of videos by when they were published. For example, videos published in the last week. Possible values are: // // * all // * day // * month // * week // // The default is "all," which returns videos published in all periods. // // Specify this parameter only if you specify the _game\_id_ or _user\_id_ query parameter. Period *GetVideosParamsPeriod `form:"period,omitempty" json:"period,omitempty"` // Sort The order to sort the returned videos in. Possible values are: // // * time — Sort the results in descending order by when they were created (i.e., latest video first). // * trending — Sort the results in descending order by biggest gains in viewership (i.e., highest trending video first). // * views — Sort the results in descending order by most views (i.e., highest number of views first). // // The default is "time." // // Specify this parameter only if you specify the _game\_id_ or _user\_id_ query parameter. Sort *GetVideosParamsSort `form:"sort,omitempty" json:"sort,omitempty"` // Type A filter used to filter the list of videos by the video's type. Possible case-sensitive values are: // // * all // * archive — On-demand videos (VODs) of past streams. // * highlight — Highlight reels of past streams. // * upload — External videos that the broadcaster uploaded using the Video Producer. // // The default is "all," which returns all video types. // // Specify this parameter only if you specify the _game\_id_ or _user\_id_ query parameter. Type *GetVideosParamsType `form:"type,omitempty" json:"type,omitempty"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100\. The default is 20. // // Specify this parameter only if you specify the _game\_id_ or _user\_id_ query parameter. First *string `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) // // Specify this parameter only if you specify the _user\_id_ query parameter. After *string `form:"after,omitempty" json:"after,omitempty"` // Before The cursor used to get the previous page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) // // Specify this parameter only if you specify the _user\_id_ query parameter. Before *string `form:"before,omitempty" json:"before,omitempty"` }
GetVideosParams defines parameters for GetVideos.
type GetVideosParamsPeriod ¶
type GetVideosParamsPeriod string
GetVideosParamsPeriod defines parameters for GetVideos.
const ( GetVideosParamsPeriodAll GetVideosParamsPeriod = "all" GetVideosParamsPeriodDay GetVideosParamsPeriod = "day" GetVideosParamsPeriodMonth GetVideosParamsPeriod = "month" GetVideosParamsPeriodWeek GetVideosParamsPeriod = "week" )
Defines values for GetVideosParamsPeriod.
type GetVideosParamsSort ¶
type GetVideosParamsSort string
GetVideosParamsSort defines parameters for GetVideos.
const ( Time GetVideosParamsSort = "time" Trending GetVideosParamsSort = "trending" Views GetVideosParamsSort = "views" )
Defines values for GetVideosParamsSort.
type GetVideosParamsType ¶
type GetVideosParamsType string
GetVideosParamsType defines parameters for GetVideos.
const ( GetVideosParamsTypeAll GetVideosParamsType = "all" GetVideosParamsTypeArchive GetVideosParamsType = "archive" GetVideosParamsTypeHighlight GetVideosParamsType = "highlight" GetVideosParamsTypeUpload GetVideosParamsType = "upload" )
Defines values for GetVideosParamsType.
type GetVideosResponse ¶
type GetVideosResponse struct { // Data The list of published videos that match the filter criteria. Data []Video `json:"data"` // Pagination Contains the information used to page through the list of results. The object is empty if there are no more pages left to page through. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) Pagination *struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request's _after_ or _before_ query parameter depending on whether you're paging forwards or backwards through the results. Cursor *string `json:"cursor,omitempty"` } `json:"pagination,omitempty"` }
GetVideosResponse defines model for GetVideosResponse.
func (GetVideosResponse) GetData ¶
func (datatype GetVideosResponse) GetData() []Video
func (GetVideosResponse) GetPagination ¶
func (datatype GetVideosResponse) GetPagination() struct { // Cursor The cursor used to get the next page of results. Use the cursor to set the request's _after_ or _before_ query parameter depending on whether you're paging forwards or backwards through the results. Cursor *string `json:"cursor,omitempty"` }
type GetVipsHTTPResponse ¶
type GetVipsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *GetVIPsResponse }
func ParseGetVipsHTTPResponse ¶
func ParseGetVipsHTTPResponse(rsp *http.Response) (*GetVipsHTTPResponse, error)
ParseGetVipsHTTPResponse parses an HTTP response from a GetVipsWithResponse call
func (GetVipsHTTPResponse) Status ¶
func (r GetVipsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (GetVipsHTTPResponse) StatusCode ¶
func (r GetVipsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVipsParams ¶
type GetVipsParams struct { // UserId Filters the list for specific VIPs. To specify more than one user, include the _user\_id_ parameter for each user to get. For example, `&user_id=1234&user_id=5678`. The maximum number of IDs that you may specify is 100\. Ignores the ID of those users in the list that aren’t VIPs. UserId *[]string `form:"user_id,omitempty" json:"user_id,omitempty"` // BroadcasterId The ID of the broadcaster whose list of VIPs you want to get. This ID must match the user ID in the access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100\. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` }
GetVipsParams defines parameters for GetVips.
type GlobalEmote ¶
type GlobalEmote struct { // Format The formats that the emote is available in. For example, if the emote is available only as a static PNG, the array contains only `static`. But if the emote is available as a static PNG and an animated GIF, the array contains `static` and `animated`. The possible formats are: // // * animated — An animated GIF is available for this emote. // * static — A static PNG file is available for this emote. Format []GlobalEmoteFormat `json:"format"` // Id An ID that identifies this emote. Id string `json:"id"` // Images The image URLs for the emote. These image URLs always provide a static, non-animated emote image with a light background. // // **NOTE:** You should use the templated URL in the `template` field to fetch the image instead of using these URLs. Images struct { // Url1x A URL to the small version (28px x 28px) of the emote. Url1x string `json:"url_1x"` // Url2x A URL to the medium version (56px x 56px) of the emote. Url2x string `json:"url_2x"` // Url4x A URL to the large version (112px x 112px) of the emote. Url4x string `json:"url_4x"` } `json:"images"` // Name The name of the emote. This is the name that viewers type in the chat window to get the emote to appear. Name string `json:"name"` // Scale The sizes that the emote is available in. For example, if the emote is available in small and medium sizes, the array contains 1.0 and 2.0\. Possible sizes are: // // * 1.0 — A small version (28px x 28px) is available. // * 2.0 — A medium version (56px x 56px) is available. // * 3.0 — A large version (112px x 112px) is available. Scale []GlobalEmoteScale `json:"scale"` // ThemeMode The background themes that the emote is available in. Possible themes are: // // * dark // * light ThemeMode []GlobalEmoteThemeMode `json:"theme_mode"` }
GlobalEmote defines model for GlobalEmote.
func (GlobalEmote) GetFormat ¶
func (datatype GlobalEmote) GetFormat() []GlobalEmoteFormat
func (GlobalEmote) GetId ¶
func (datatype GlobalEmote) GetId() string
func (GlobalEmote) GetImages ¶
func (datatype GlobalEmote) GetImages() struct { // Url1x A URL to the small version (28px x 28px) of the emote. Url1x string `json:"url_1x"` // Url2x A URL to the medium version (56px x 56px) of the emote. Url2x string `json:"url_2x"` // Url4x A URL to the large version (112px x 112px) of the emote. Url4x string `json:"url_4x"` }
func (GlobalEmote) GetName ¶
func (datatype GlobalEmote) GetName() string
func (GlobalEmote) GetScale ¶
func (datatype GlobalEmote) GetScale() []GlobalEmoteScale
func (GlobalEmote) GetThemeMode ¶
func (datatype GlobalEmote) GetThemeMode() []GlobalEmoteThemeMode
type GlobalEmoteFormat ¶
type GlobalEmoteFormat string
GlobalEmoteFormat defines model for GlobalEmote.Format.
const ( Animated GlobalEmoteFormat = "animated" Static GlobalEmoteFormat = "static" )
Defines values for GlobalEmoteFormat.
type GlobalEmoteScale ¶
type GlobalEmoteScale string
GlobalEmoteScale defines model for GlobalEmote.Scale.
const ( N10 GlobalEmoteScale = "1.0" N20 GlobalEmoteScale = "2.0" N30 GlobalEmoteScale = "3.0" )
Defines values for GlobalEmoteScale.
type GlobalEmoteThemeMode ¶
type GlobalEmoteThemeMode string
GlobalEmoteThemeMode defines model for GlobalEmote.ThemeMode.
const ( Dark GlobalEmoteThemeMode = "dark" Light GlobalEmoteThemeMode = "light" )
Defines values for GlobalEmoteThemeMode.
type Guest ¶
type Guest struct { // AssignedAt Timestamp when this guest was assigned a slot in the session. AssignedAt time.Time `json:"assigned_at"` // AudioSettings Information about the guest’s audio settings AudioSettings struct { // IsAvailable Flag determining whether the guest has an appropriate audio device available to be transmitted to the session. IsAvailable bool `json:"is_available"` // IsGuestEnabled Flag determining whether the guest is allowing their audio to be transmitted to the session. IsGuestEnabled bool `json:"is_guest_enabled"` // IsHostEnabled Flag determining whether the host is allowing the guest’s audio to be seen or heard within the session. IsHostEnabled bool `json:"is_host_enabled"` } `json:"audio_settings"` // IsLive Flag determining whether or not the guest is visible in the browser source in the host’s streaming software. IsLive bool `json:"is_live"` // SlotId ID representing this guest’s slot assignment. // // * Host is always in slot "0" // * Guests are assigned the following consecutive IDs (e.g, "1", "2", "3", etc) // * Screen Share is represented as a special guest with the ID "SCREENSHARE" // * The identifier here matches the ID referenced in browser source links used in broadcasting software. SlotId string `json:"slot_id"` // UserDisplayName Display name of the guest assigned to this slot. UserDisplayName string `json:"user_display_name"` // UserId User ID of the guest assigned to this slot. UserId string `json:"user_id"` // UserLogin Login of the guest assigned to this slot. UserLogin string `json:"user_login"` // VideoSettings Information about the guest’s video settings VideoSettings struct { // IsAvailable Flag determining whether the guest has an appropriate video device available to be transmitted to the session. IsAvailable bool `json:"is_available"` // IsGuestEnabled Flag determining whether the guest is allowing their video to be transmitted to the session. IsGuestEnabled bool `json:"is_guest_enabled"` // IsHostEnabled Flag determining whether the host is allowing the guest’s video to be seen or heard within the session. IsHostEnabled bool `json:"is_host_enabled"` } `json:"video_settings"` // Volume Value from 0 to 100 representing the host’s volume setting for this guest. Volume int32 `json:"volume"` }
Guest defines model for Guest.
func (Guest) GetAssignedAt ¶
func (Guest) GetAudioSettings ¶
func (datatype Guest) GetAudioSettings() struct { // IsAvailable Flag determining whether the guest has an appropriate audio device available to be transmitted to the session. IsAvailable bool `json:"is_available"` // IsGuestEnabled Flag determining whether the guest is allowing their audio to be transmitted to the session. IsGuestEnabled bool `json:"is_guest_enabled"` // IsHostEnabled Flag determining whether the host is allowing the guest’s audio to be seen or heard within the session. IsHostEnabled bool `json:"is_host_enabled"` }
func (Guest) GetUserDisplayName ¶
func (Guest) GetUserLogin ¶
func (Guest) GetVideoSettings ¶
func (datatype Guest) GetVideoSettings() struct { // IsAvailable Flag determining whether the guest has an appropriate video device available to be transmitted to the session. IsAvailable bool `json:"is_available"` // IsGuestEnabled Flag determining whether the guest is allowing their video to be transmitted to the session. IsGuestEnabled bool `json:"is_guest_enabled"` // IsHostEnabled Flag determining whether the host is allowing the guest’s video to be seen or heard within the session. IsHostEnabled bool `json:"is_host_enabled"` }
type GuestStarInvite ¶
type GuestStarInvite struct { // InvitedAt Timestamp when this user was invited to the session. InvitedAt time.Time `json:"invited_at"` // IsAudioAvailable Flag signaling that the invited user has an audio device available for sharing. IsAudioAvailable bool `json:"is_audio_available"` // IsAudioEnabled Flag signaling that the invited user has chosen to disable their local audio device. The user has muted themselves, but they may choose to unmute their audio feed upon joining the session. IsAudioEnabled bool `json:"is_audio_enabled"` // IsVideoAvailable Flag signaling that the invited user has a video device available for sharing. IsVideoAvailable bool `json:"is_video_available"` // IsVideoEnabled Flag signaling that the invited user has chosen to disable their local video device. The user has hidden themselves, but they may choose to reveal their video feed upon joining the session. IsVideoEnabled bool `json:"is_video_enabled"` // Status Status representing the invited user’s join state. Can be one of the following: // // * `INVITED`: The user has been invited to the session but has not acknowledged it. // * `ACCEPTED`: The invited user has acknowledged the invite and joined the waiting room, but may still be setting up their media devices or otherwise preparing to join the call. // * `READY`: The invited user has signaled they are ready to join the call from the waiting room. Status string `json:"status"` // UserId Twitch User ID corresponding to the invited guest UserId string `json:"user_id"` }
GuestStarInvite defines model for GuestStarInvite.
func (GuestStarInvite) GetInvitedAt ¶
func (datatype GuestStarInvite) GetInvitedAt() time.Time
func (GuestStarInvite) GetIsAudioAvailable ¶
func (datatype GuestStarInvite) GetIsAudioAvailable() bool
func (GuestStarInvite) GetIsAudioEnabled ¶
func (datatype GuestStarInvite) GetIsAudioEnabled() bool
func (GuestStarInvite) GetIsVideoAvailable ¶
func (datatype GuestStarInvite) GetIsVideoAvailable() bool
func (GuestStarInvite) GetIsVideoEnabled ¶
func (datatype GuestStarInvite) GetIsVideoEnabled() bool
func (GuestStarInvite) GetStatus ¶
func (datatype GuestStarInvite) GetStatus() string
func (GuestStarInvite) GetUserId ¶
func (datatype GuestStarInvite) GetUserId() string
type GuestStarSession ¶
type GuestStarSession struct { // Guests List of guests currently interacting with the Guest Star session. Guests []Guest `json:"guests"` // Id ID uniquely representing the Guest Star session. Id string `json:"id"` }
GuestStarSession defines model for GuestStarSession.
func (GuestStarSession) GetGuests ¶
func (datatype GuestStarSession) GetGuests() []Guest
func (GuestStarSession) GetId ¶
func (datatype GuestStarSession) GetId() string
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type HypeTrainEvent ¶
type HypeTrainEvent struct { // EventData The event’s data. EventData struct { // BroadcasterId The ID of the broadcaster that’s running the Hype Train. BroadcasterId string `json:"broadcaster_id"` // CooldownEndTime The UTC date and time (in RFC3339 format) that another Hype Train can start. CooldownEndTime time.Time `json:"cooldown_end_time"` // ExpiresAt The UTC date and time (in RFC3339 format) that the Hype Train ends. ExpiresAt time.Time `json:"expires_at"` // Goal The value needed to reach the next level. Goal int32 `json:"goal"` // Id An ID that identifies this Hype Train. Id string `json:"id"` // LastContribution The most recent contribution towards the Hype Train’s goal. LastContribution struct { // Total The total amount contributed. If `type` is BITS, `total` represents the amount of Bits used. If `type` is SUBS, `total` is 500, 1000, or 2500 to represent tier 1, 2, or 3 subscriptions, respectively. Total int32 `json:"total"` // Type The contribution method used. Possible values are: // // * BITS — Cheering with Bits. // * SUBS — Subscription activity like subscribing or gifting subscriptions. // * OTHER — Covers other contribution methods not listed. Type HypeTrainEventEventDataLastContributionType `json:"type"` // User The ID of the user that made the contribution. User string `json:"user"` } `json:"last_contribution"` // Level The highest level that the Hype Train reached (the levels are 1 through 5). Level int32 `json:"level"` // StartedAt The UTC date and time (in RFC3339 format) that this Hype Train started. StartedAt time.Time `json:"started_at"` // TopContributions The top contributors for each contribution type. For example, the top contributor using BITS (by aggregate) and the top contributor using SUBS (by count). TopContributions []struct { // Total The total amount contributed. If `type` is BITS, `total` represents the amount of Bits used. If `type` is SUBS, `total` is 500, 1000, or 2500 to represent tier 1, 2, or 3 subscriptions, respectively. Total int32 `json:"total"` // Type The contribution method used. Possible values are: // // * BITS — Cheering with Bits. // * SUBS — Subscription activity like subscribing or gifting subscriptions. // * OTHER — Covers other contribution methods not listed. Type HypeTrainEventEventDataTopContributionsType `json:"type"` // User The ID of the user that made the contribution. User string `json:"user"` } `json:"top_contributions"` // Total The current total amount raised. Total int32 `json:"total"` } `json:"event_data"` // EventTimestamp The UTC date and time (in RFC3339 format) that the event occurred. EventTimestamp time.Time `json:"event_timestamp"` // EventType The type of event. The string is in the form, hypetrain.{event\_name}. The request returns only progress event types (i.e., hypetrain.progression). EventType string `json:"event_type"` // Id An ID that identifies this event. Id string `json:"id"` // Version The version number of the definition of the event’s data. For example, the value is 1 if the data in `event_data` uses the first definition of the event’s data. Version string `json:"version"` }
HypeTrainEvent defines model for HypeTrainEvent.
func (HypeTrainEvent) GetEventData ¶
func (datatype HypeTrainEvent) GetEventData() struct { // BroadcasterId The ID of the broadcaster that’s running the Hype Train. BroadcasterId string `json:"broadcaster_id"` // CooldownEndTime The UTC date and time (in RFC3339 format) that another Hype Train can start. CooldownEndTime time.Time `json:"cooldown_end_time"` // ExpiresAt The UTC date and time (in RFC3339 format) that the Hype Train ends. ExpiresAt time.Time `json:"expires_at"` // Goal The value needed to reach the next level. Goal int32 `json:"goal"` // Id An ID that identifies this Hype Train. Id string `json:"id"` // LastContribution The most recent contribution towards the Hype Train’s goal. LastContribution struct { // Total The total amount contributed. If `type` is BITS, `total` represents the amount of Bits used. If `type` is SUBS, `total` is 500, 1000, or 2500 to represent tier 1, 2, or 3 subscriptions, respectively. Total int32 `json:"total"` // Type The contribution method used. Possible values are: // // * BITS — Cheering with Bits. // * SUBS — Subscription activity like subscribing or gifting subscriptions. // * OTHER — Covers other contribution methods not listed. Type HypeTrainEventEventDataLastContributionType `json:"type"` // User The ID of the user that made the contribution. User string `json:"user"` } `json:"last_contribution"` // Level The highest level that the Hype Train reached (the levels are 1 through 5). Level int32 `json:"level"` // StartedAt The UTC date and time (in RFC3339 format) that this Hype Train started. StartedAt time.Time `json:"started_at"` // TopContributions The top contributors for each contribution type. For example, the top contributor using BITS (by aggregate) and the top contributor using SUBS (by count). TopContributions []struct { // Total The total amount contributed. If `type` is BITS, `total` represents the amount of Bits used. If `type` is SUBS, `total` is 500, 1000, or 2500 to represent tier 1, 2, or 3 subscriptions, respectively. Total int32 `json:"total"` // Type The contribution method used. Possible values are: // // * BITS — Cheering with Bits. // * SUBS — Subscription activity like subscribing or gifting subscriptions. // * OTHER — Covers other contribution methods not listed. Type HypeTrainEventEventDataTopContributionsType `json:"type"` // User The ID of the user that made the contribution. User string `json:"user"` } `json:"top_contributions"` // Total The current total amount raised. Total int32 `json:"total"` }
func (HypeTrainEvent) GetEventTimestamp ¶
func (datatype HypeTrainEvent) GetEventTimestamp() time.Time
func (HypeTrainEvent) GetEventType ¶
func (datatype HypeTrainEvent) GetEventType() string
func (HypeTrainEvent) GetId ¶
func (datatype HypeTrainEvent) GetId() string
func (HypeTrainEvent) GetVersion ¶
func (datatype HypeTrainEvent) GetVersion() string
type HypeTrainEventEventDataLastContributionType ¶
type HypeTrainEventEventDataLastContributionType string
HypeTrainEventEventDataLastContributionType The contribution method used. Possible values are:
* BITS — Cheering with Bits. * SUBS — Subscription activity like subscribing or gifting subscriptions. * OTHER — Covers other contribution methods not listed.
const ( HypeTrainEventEventDataLastContributionTypeBITS HypeTrainEventEventDataLastContributionType = "BITS" HypeTrainEventEventDataLastContributionTypeOTHER HypeTrainEventEventDataLastContributionType = "OTHER" HypeTrainEventEventDataLastContributionTypeSUBS HypeTrainEventEventDataLastContributionType = "SUBS" )
Defines values for HypeTrainEventEventDataLastContributionType.
type HypeTrainEventEventDataTopContributionsType ¶
type HypeTrainEventEventDataTopContributionsType string
HypeTrainEventEventDataTopContributionsType The contribution method used. Possible values are:
* BITS — Cheering with Bits. * SUBS — Subscription activity like subscribing or gifting subscriptions. * OTHER — Covers other contribution methods not listed.
const ( HypeTrainEventEventDataTopContributionsTypeBITS HypeTrainEventEventDataTopContributionsType = "BITS" HypeTrainEventEventDataTopContributionsTypeOTHER HypeTrainEventEventDataTopContributionsType = "OTHER" HypeTrainEventEventDataTopContributionsTypeSUBS HypeTrainEventEventDataTopContributionsType = "SUBS" )
Defines values for HypeTrainEventEventDataTopContributionsType.
type ManageHeldAutoModMessagesBody ¶
type ManageHeldAutoModMessagesBody struct { // Action The action to take for the message. Possible values are: // // * ALLOW // * DENY Action ManageHeldAutoModMessagesBodyAction `json:"action"` // MsgId The ID of the message to allow or deny. MsgId string `json:"msg_id"` // UserId The moderator who is approving or denying the held message. This ID must match the user ID in the access token. UserId string `json:"user_id"` }
ManageHeldAutoModMessagesBody defines model for ManageHeldAutoModMessagesBody.
func (ManageHeldAutoModMessagesBody) GetAction ¶
func (datatype ManageHeldAutoModMessagesBody) GetAction() ManageHeldAutoModMessagesBodyAction
func (ManageHeldAutoModMessagesBody) GetMsgId ¶
func (datatype ManageHeldAutoModMessagesBody) GetMsgId() string
func (ManageHeldAutoModMessagesBody) GetUserId ¶
func (datatype ManageHeldAutoModMessagesBody) GetUserId() string
type ManageHeldAutoModMessagesBodyAction ¶
type ManageHeldAutoModMessagesBodyAction string
ManageHeldAutoModMessagesBodyAction The action to take for the message. Possible values are:
* ALLOW * DENY
const ( ALLOW ManageHeldAutoModMessagesBodyAction = "ALLOW" DENY ManageHeldAutoModMessagesBodyAction = "DENY" )
Defines values for ManageHeldAutoModMessagesBodyAction.
type ManageHeldAutomodMessagesHTTPResponse ¶
func ParseManageHeldAutomodMessagesHTTPResponse ¶
func ParseManageHeldAutomodMessagesHTTPResponse(rsp *http.Response) (*ManageHeldAutomodMessagesHTTPResponse, error)
ParseManageHeldAutomodMessagesHTTPResponse parses an HTTP response from a ManageHeldAutomodMessagesWithResponse call
func (ManageHeldAutomodMessagesHTTPResponse) Status ¶
func (r ManageHeldAutomodMessagesHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (ManageHeldAutomodMessagesHTTPResponse) StatusCode ¶
func (r ManageHeldAutomodMessagesHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ManageHeldAutomodMessagesJSONRequestBody ¶
type ManageHeldAutomodMessagesJSONRequestBody = ManageHeldAutoModMessagesBody
ManageHeldAutomodMessagesJSONRequestBody defines body for ManageHeldAutomodMessages for application/json ContentType.
type ModifyChannelInformationBody ¶
type ModifyChannelInformationBody struct { // BroadcasterLanguage The user’s preferred language. Set the value to an ISO 639-1 two-letter language code (for example, _en_ for English). Set to “other” if the user’s preferred language is not a Twitch supported language. The language isn’t updated if the language code isn’t a Twitch supported language. BroadcasterLanguage *string `json:"broadcaster_language,omitempty"` // ContentClassificationLabels List of labels that should be set as the Channel’s CCLs. ContentClassificationLabels *[]struct { // Id ID of the [Content Classification Labels](https://blog.twitch.tv/en/2023/06/20/introducing-content-classification-labels/) that must be added/removed from the channel. Can be one of the following values: // // * DrugsIntoxication // * SexualThemes // * ViolentGraphic // * Gambling // * ProfanityVulgarity Id ModifyChannelInformationBodyContentClassificationLabelsId `json:"id"` // IsEnabled Boolean flag indicating whether the label should be enabled (true) or disabled for the channel. IsEnabled bool `json:"is_enabled"` } `json:"content_classification_labels,omitempty"` // Delay The number of seconds you want your broadcast buffered before streaming it live. The delay helps ensure fairness during competitive play. Only users with Partner status may set this field. The maximum delay is 900 seconds (15 minutes). Delay *int32 `json:"delay,omitempty"` // GameId The ID of the game that the user plays. The game is not updated if the ID isn’t a game ID that Twitch recognizes. To unset this field, use “0” or “” (an empty string). GameId *string `json:"game_id,omitempty"` // IsBrandedContent Boolean flag indicating if the channel has branded content. IsBrandedContent *bool `json:"is_branded_content,omitempty"` // Tags A list of channel-defined tags to apply to the channel. To remove all tags from the channel, set tags to an empty array. Tags help identify the content that the channel streams. [Learn More](https://help.twitch.tv/s/article/guide-to-tags) // // A channel may specify a maximum of 10 tags. Each tag is limited to a maximum of 25 characters and may not be an empty string or contain spaces or special characters. Tags are case insensitive. For readability, consider using camelCasing or PascalCasing. Tags *[]string `json:"tags,omitempty"` // Title The title of the user’s stream. You may not set this field to an empty string. Title *string `json:"title,omitempty"` }
ModifyChannelInformationBody defines model for ModifyChannelInformationBody.
func (ModifyChannelInformationBody) GetBroadcasterLanguage ¶
func (datatype ModifyChannelInformationBody) GetBroadcasterLanguage() string
func (ModifyChannelInformationBody) GetContentClassificationLabels ¶
func (datatype ModifyChannelInformationBody) GetContentClassificationLabels() []struct { // Id ID of the [Content Classification Labels](https://blog.twitch.tv/en/2023/06/20/introducing-content-classification-labels/) that must be added/removed from the channel. Can be one of the following values: // // * DrugsIntoxication // * SexualThemes // * ViolentGraphic // * Gambling // * ProfanityVulgarity Id ModifyChannelInformationBodyContentClassificationLabelsId `json:"id"` // IsEnabled Boolean flag indicating whether the label should be enabled (true) or disabled for the channel. IsEnabled bool `json:"is_enabled"` }
func (ModifyChannelInformationBody) GetDelay ¶
func (datatype ModifyChannelInformationBody) GetDelay() int32
func (ModifyChannelInformationBody) GetGameId ¶
func (datatype ModifyChannelInformationBody) GetGameId() string
func (ModifyChannelInformationBody) GetIsBrandedContent ¶
func (datatype ModifyChannelInformationBody) GetIsBrandedContent() bool
func (ModifyChannelInformationBody) GetTags ¶
func (datatype ModifyChannelInformationBody) GetTags() []string
func (ModifyChannelInformationBody) GetTitle ¶
func (datatype ModifyChannelInformationBody) GetTitle() string
type ModifyChannelInformationBodyContentClassificationLabelsId ¶
type ModifyChannelInformationBodyContentClassificationLabelsId string
ModifyChannelInformationBodyContentClassificationLabelsId ID of the [Content Classification Labels](https://blog.twitch.tv/en/2023/06/20/introducing-content-classification-labels/) that must be added/removed from the channel. Can be one of the following values:
* DrugsIntoxication * SexualThemes * ViolentGraphic * Gambling * ProfanityVulgarity
const ( DrugsIntoxication ModifyChannelInformationBodyContentClassificationLabelsId = "DrugsIntoxication" Gambling ModifyChannelInformationBodyContentClassificationLabelsId = "Gambling" ProfanityVulgarity ModifyChannelInformationBodyContentClassificationLabelsId = "ProfanityVulgarity" SexualThemes ModifyChannelInformationBodyContentClassificationLabelsId = "SexualThemes" ViolentGraphic ModifyChannelInformationBodyContentClassificationLabelsId = "ViolentGraphic" )
Defines values for ModifyChannelInformationBodyContentClassificationLabelsId.
type ModifyChannelInformationHTTPResponse ¶
func ParseModifyChannelInformationHTTPResponse ¶
func ParseModifyChannelInformationHTTPResponse(rsp *http.Response) (*ModifyChannelInformationHTTPResponse, error)
ParseModifyChannelInformationHTTPResponse parses an HTTP response from a ModifyChannelInformationWithResponse call
func (ModifyChannelInformationHTTPResponse) Status ¶
func (r ModifyChannelInformationHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (ModifyChannelInformationHTTPResponse) StatusCode ¶
func (r ModifyChannelInformationHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModifyChannelInformationJSONRequestBody ¶
type ModifyChannelInformationJSONRequestBody = ModifyChannelInformationBody
ModifyChannelInformationJSONRequestBody defines body for ModifyChannelInformation for application/json ContentType.
type ModifyChannelInformationParams ¶
type ModifyChannelInformationParams struct { // BroadcasterId The ID of the broadcaster whose channel you want to update. This ID must match the user ID in the user access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
ModifyChannelInformationParams defines parameters for ModifyChannelInformation.
type Poll ¶
type Poll struct { // BitsPerVote Not used; will be set to 0. BitsPerVote int32 `json:"bits_per_vote"` // BitsVotingEnabled Not used; will be set to **false**. BitsVotingEnabled bool `json:"bits_voting_enabled"` // BroadcasterId An ID that identifies the broadcaster that created the poll. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // ChannelPointsPerVote The number of points the viewer must spend to cast one additional vote. ChannelPointsPerVote int32 `json:"channel_points_per_vote"` // ChannelPointsVotingEnabled A Boolean value that indicates whether viewers may cast additional votes using Channel Points. For information about Channel Points, see [Channel Points Guide](https://help.twitch.tv/s/article/channel-points-guide). ChannelPointsVotingEnabled bool `json:"channel_points_voting_enabled"` // Choices A list of choices that viewers can choose from. The list will contain a minimum of two choices and up to a maximum of five choices. Choices []struct { // BitsVotes Not used; will be set to 0. BitsVotes int32 `json:"bits_votes"` // ChannelPointsVotes The number of votes cast using Channel Points. ChannelPointsVotes int32 `json:"channel_points_votes"` // Id An ID that identifies this choice. Id string `json:"id"` // Title The choice’s title. The title may contain a maximum of 25 characters. Title string `json:"title"` // Votes The total number of votes cast for this choice. Votes int32 `json:"votes"` } `json:"choices"` // Duration The length of time (in seconds) that the poll will run for. Duration int32 `json:"duration"` // EndedAt The UTC date and time (in RFC3339 format) of when the poll ended. If `status` is ACTIVE, this field is set to **null**. EndedAt *time.Time `json:"ended_at"` // Id An ID that identifies the poll. Id string `json:"id"` // StartedAt The UTC date and time (in RFC3339 format) of when the poll began. StartedAt time.Time `json:"started_at"` // Status The poll’s status. Valid values are: // // * ACTIVE — The poll is running. // * COMPLETED — The poll ended on schedule (see the `duration` field). // * TERMINATED — The poll was terminated before its scheduled end. // * ARCHIVED — The poll has been archived and is no longer visible on the channel. // * MODERATED — The poll was deleted. // * INVALID — Something went wrong while determining the state. Status PollStatus `json:"status"` // Title The question that viewers are voting on. For example, _What game should I play next?_ The title may contain a maximum of 60 characters. Title string `json:"title"` }
Poll defines model for Poll.
func (Poll) GetBitsPerVote ¶
func (Poll) GetBitsVotingEnabled ¶
func (Poll) GetBroadcasterId ¶
func (Poll) GetBroadcasterLogin ¶
func (Poll) GetBroadcasterName ¶
func (Poll) GetChannelPointsPerVote ¶
func (Poll) GetChannelPointsVotingEnabled ¶
func (Poll) GetChoices ¶
func (datatype Poll) GetChoices() []struct { // BitsVotes Not used; will be set to 0. BitsVotes int32 `json:"bits_votes"` // ChannelPointsVotes The number of votes cast using Channel Points. ChannelPointsVotes int32 `json:"channel_points_votes"` // Id An ID that identifies this choice. Id string `json:"id"` // Title The choice’s title. The title may contain a maximum of 25 characters. Title string `json:"title"` // Votes The total number of votes cast for this choice. Votes int32 `json:"votes"` }
func (Poll) GetDuration ¶
func (Poll) GetEndedAt ¶
func (Poll) GetStartedAt ¶
func (Poll) GetStatus ¶
func (datatype Poll) GetStatus() PollStatus
type PollStatus ¶
type PollStatus string
PollStatus The poll’s status. Valid values are:
* ACTIVE — The poll is running. * COMPLETED — The poll ended on schedule (see the `duration` field). * TERMINATED — The poll was terminated before its scheduled end. * ARCHIVED — The poll has been archived and is no longer visible on the channel. * MODERATED — The poll was deleted. * INVALID — Something went wrong while determining the state.
const ( PollStatusACTIVE PollStatus = "ACTIVE" PollStatusARCHIVED PollStatus = "ARCHIVED" PollStatusCOMPLETED PollStatus = "COMPLETED" PollStatusINVALID PollStatus = "INVALID" PollStatusMODERATED PollStatus = "MODERATED" PollStatusTERMINATED PollStatus = "TERMINATED" )
Defines values for PollStatus.
type Prediction ¶
type Prediction struct { // BroadcasterId An ID that identifies the broadcaster that created the prediction. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // CreatedAt The UTC date and time of when the Prediction began. CreatedAt time.Time `json:"created_at"` // EndedAt The UTC date and time of when the Prediction ended. If `status` is ACTIVE, this is set to **null**. EndedAt *time.Time `json:"ended_at"` // Id An ID that identifies this prediction. Id string `json:"id"` // LockedAt The UTC date and time of when the Prediction was locked. If `status` is not LOCKED, this is set to **null**. LockedAt *time.Time `json:"locked_at"` // Outcomes The list of possible outcomes for the prediction. Outcomes []PredictionOutcome `json:"outcomes"` // PredictionWindow The length of time (in seconds) that the prediction will run for. PredictionWindow int32 `json:"prediction_window"` // Status The prediction’s status. Valid values are: // // * ACTIVE — The Prediction is running and viewers can make predictions. // * CANCELED — The broadcaster canceled the Prediction and refunded the Channel Points to the participants. // * LOCKED — The broadcaster locked the Prediction, which means viewers can no longer make predictions. // * RESOLVED — The winning outcome was determined and the Channel Points were distributed to the viewers who predicted the correct outcome. Status PredictionStatus `json:"status"` // Title The question that the prediction asks. For example, _Will I finish this entire pizza?_ Title string `json:"title"` // WinningOutcomeId The ID of the winning outcome. Is **null** unless `status` is RESOLVED. WinningOutcomeId *string `json:"winning_outcome_id"` }
Prediction defines model for Prediction.
func (Prediction) GetBroadcasterId ¶
func (datatype Prediction) GetBroadcasterId() string
func (Prediction) GetBroadcasterLogin ¶
func (datatype Prediction) GetBroadcasterLogin() string
func (Prediction) GetBroadcasterName ¶
func (datatype Prediction) GetBroadcasterName() string
func (Prediction) GetCreatedAt ¶
func (datatype Prediction) GetCreatedAt() time.Time
func (Prediction) GetEndedAt ¶
func (datatype Prediction) GetEndedAt() time.Time
func (Prediction) GetId ¶
func (datatype Prediction) GetId() string
func (Prediction) GetLockedAt ¶
func (datatype Prediction) GetLockedAt() time.Time
func (Prediction) GetOutcomes ¶
func (datatype Prediction) GetOutcomes() []PredictionOutcome
func (Prediction) GetPredictionWindow ¶
func (datatype Prediction) GetPredictionWindow() int32
func (Prediction) GetStatus ¶
func (datatype Prediction) GetStatus() PredictionStatus
func (Prediction) GetTitle ¶
func (datatype Prediction) GetTitle() string
func (Prediction) GetWinningOutcomeId ¶
func (datatype Prediction) GetWinningOutcomeId() string
type PredictionOutcome ¶
type PredictionOutcome struct { // ChannelPoints The number of Channel Points spent by viewers on this outcome. ChannelPoints int32 `json:"channel_points"` // Color The color that visually identifies this outcome in the UX. Possible values are: // // * BLUE // * PINK // // If the number of outcomes is two, the color is BLUE for the first outcome and PINK for the second outcome. If there are more than two outcomes, the color is BLUE for all outcomes. Color PredictionOutcomeColor `json:"color"` // Id An ID that identifies this outcome. Id string `json:"id"` // Title The outcome’s text. Title string `json:"title"` // TopPredictors A list of viewers who were the top predictors; otherwise, **null** if none. TopPredictors *[]struct { // ChannelPointsUsed The number of Channel Points the viewer spent. ChannelPointsUsed int32 `json:"channel_points_used"` // ChannelPointsWon The number of Channel Points distributed to the viewer. ChannelPointsWon int32 `json:"channel_points_won"` // UserId An ID that identifies the viewer. UserId string `json:"user_id"` // UserLogin The viewer’s login name. UserLogin string `json:"user_login"` // UserName The viewer’s display name. UserName string `json:"user_name"` } `json:"top_predictors"` // Users The number of unique viewers that chose this outcome. Users int32 `json:"users"` }
PredictionOutcome defines model for PredictionOutcome.
func (PredictionOutcome) GetChannelPoints ¶
func (datatype PredictionOutcome) GetChannelPoints() int32
func (PredictionOutcome) GetColor ¶
func (datatype PredictionOutcome) GetColor() PredictionOutcomeColor
func (PredictionOutcome) GetId ¶
func (datatype PredictionOutcome) GetId() string
func (PredictionOutcome) GetTitle ¶
func (datatype PredictionOutcome) GetTitle() string
func (PredictionOutcome) GetTopPredictors ¶
func (datatype PredictionOutcome) GetTopPredictors() []struct { // ChannelPointsUsed The number of Channel Points the viewer spent. ChannelPointsUsed int32 `json:"channel_points_used"` // ChannelPointsWon The number of Channel Points distributed to the viewer. ChannelPointsWon int32 `json:"channel_points_won"` // UserId An ID that identifies the viewer. UserId string `json:"user_id"` // UserLogin The viewer’s login name. UserLogin string `json:"user_login"` // UserName The viewer’s display name. UserName string `json:"user_name"` }
func (PredictionOutcome) GetUsers ¶
func (datatype PredictionOutcome) GetUsers() int32
type PredictionOutcomeColor ¶
type PredictionOutcomeColor string
PredictionOutcomeColor The color that visually identifies this outcome in the UX. Possible values are:
* BLUE * PINK
If the number of outcomes is two, the color is BLUE for the first outcome and PINK for the second outcome. If there are more than two outcomes, the color is BLUE for all outcomes.
const ( BLUE PredictionOutcomeColor = "BLUE" PINK PredictionOutcomeColor = "PINK" )
Defines values for PredictionOutcomeColor.
type PredictionStatus ¶
type PredictionStatus string
PredictionStatus The prediction’s status. Valid values are:
* ACTIVE — The Prediction is running and viewers can make predictions. * CANCELED — The broadcaster canceled the Prediction and refunded the Channel Points to the participants. * LOCKED — The broadcaster locked the Prediction, which means viewers can no longer make predictions. * RESOLVED — The winning outcome was determined and the Channel Points were distributed to the viewers who predicted the correct outcome.
const ( PredictionStatusACTIVE PredictionStatus = "ACTIVE" PredictionStatusCANCELED PredictionStatus = "CANCELED" PredictionStatusLOCKED PredictionStatus = "LOCKED" PredictionStatusRESOLVED PredictionStatus = "RESOLVED" )
Defines values for PredictionStatus.
type RemoveBlockedTermHTTPResponse ¶
func ParseRemoveBlockedTermHTTPResponse ¶
func ParseRemoveBlockedTermHTTPResponse(rsp *http.Response) (*RemoveBlockedTermHTTPResponse, error)
ParseRemoveBlockedTermHTTPResponse parses an HTTP response from a RemoveBlockedTermWithResponse call
func (RemoveBlockedTermHTTPResponse) Status ¶
func (r RemoveBlockedTermHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveBlockedTermHTTPResponse) StatusCode ¶
func (r RemoveBlockedTermHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveBlockedTermParams ¶
type RemoveBlockedTermParams struct { // BroadcasterId The ID of the broadcaster that owns the list of blocked terms. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s chat room. This ID must match the user ID in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` // Id The ID of the blocked term to remove from the broadcaster’s list of blocked terms. Id string `form:"id" json:"id"` }
RemoveBlockedTermParams defines parameters for RemoveBlockedTerm.
type RemoveChannelModeratorHTTPResponse ¶
func ParseRemoveChannelModeratorHTTPResponse ¶
func ParseRemoveChannelModeratorHTTPResponse(rsp *http.Response) (*RemoveChannelModeratorHTTPResponse, error)
ParseRemoveChannelModeratorHTTPResponse parses an HTTP response from a RemoveChannelModeratorWithResponse call
func (RemoveChannelModeratorHTTPResponse) Status ¶
func (r RemoveChannelModeratorHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveChannelModeratorHTTPResponse) StatusCode ¶
func (r RemoveChannelModeratorHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveChannelModeratorParams ¶
type RemoveChannelModeratorParams struct { // BroadcasterId The ID of the broadcaster that owns the chat room. This ID must match the user ID in the access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // UserId The ID of the user to remove as a moderator from the broadcaster’s chat room. UserId string `form:"user_id" json:"user_id"` }
RemoveChannelModeratorParams defines parameters for RemoveChannelModerator.
type RemoveChannelVipHTTPResponse ¶
func ParseRemoveChannelVipHTTPResponse ¶
func ParseRemoveChannelVipHTTPResponse(rsp *http.Response) (*RemoveChannelVipHTTPResponse, error)
ParseRemoveChannelVipHTTPResponse parses an HTTP response from a RemoveChannelVipWithResponse call
func (RemoveChannelVipHTTPResponse) Status ¶
func (r RemoveChannelVipHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveChannelVipHTTPResponse) StatusCode ¶
func (r RemoveChannelVipHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveChannelVipParams ¶
type RemoveChannelVipParams struct { // UserId The ID of the user to remove VIP status from. UserId string `form:"user_id" json:"user_id"` // BroadcasterId The ID of the broadcaster who owns the channel where the user has VIP status. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
RemoveChannelVipParams defines parameters for RemoveChannelVip.
type RequestEditorFn ¶
Generated with client.tmpl RequestEditorFn is the function signature for the RequestEditor callback function
type ResolveUnbanRequestsHTTPResponse ¶
type ResolveUnbanRequestsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ResolveUnbanRequestsResponse }
func ParseResolveUnbanRequestsHTTPResponse ¶
func ParseResolveUnbanRequestsHTTPResponse(rsp *http.Response) (*ResolveUnbanRequestsHTTPResponse, error)
ParseResolveUnbanRequestsHTTPResponse parses an HTTP response from a ResolveUnbanRequestsWithResponse call
func (ResolveUnbanRequestsHTTPResponse) Status ¶
func (r ResolveUnbanRequestsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (ResolveUnbanRequestsHTTPResponse) StatusCode ¶
func (r ResolveUnbanRequestsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ResolveUnbanRequestsParams ¶
type ResolveUnbanRequestsParams struct { // BroadcasterId The ID of the broadcaster whose channel is approving or denying the unban request. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s unban requests. This ID must match the user ID in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` // UnbanRequestId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s unban requests. This ID must match the user ID in the user access token. UnbanRequestId string `form:"unban_request_id" json:"unban_request_id"` // Status Resolution status. // // * approved // * denied Status string `form:"status" json:"status"` // ResolutionText Message supplied by the unban request resolver. The message is limited to a maximum of 500 characters. ResolutionText *string `form:"resolution_text,omitempty" json:"resolution_text,omitempty"` }
ResolveUnbanRequestsParams defines parameters for ResolveUnbanRequests.
type ResolveUnbanRequestsResponse ¶
type ResolveUnbanRequestsResponse struct { Data []struct { // BroadcasterId User ID of broadcaster whose channel is receiving the unban request. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // CreatedAt Timestamp of when the unban request was created. CreatedAt time.Time `json:"created_at"` // Id Unban request ID. Id string `json:"id"` // ModeratorId User ID of moderator who approved/denied the request. ModeratorId string `json:"moderator_id"` // ModeratorLogin The moderator’s login name. ModeratorLogin string `json:"moderator_login"` // ModeratorName The moderator’s display name. ModeratorName string `json:"moderator_name"` // ResolutionText Text input by the resolver (moderator) of the unban request. ResolutionText string `json:"resolution_text"` // ResolvedAt Timestamp of when moderator/broadcaster approved or denied the request. ResolvedAt time.Time `json:"resolved_at"` // Status Status of the request. One of: // // * approved // * denied Status string `json:"status"` // Text Text of the request from the requesting user. Text string `json:"text"` // UserId User ID of the requestor who is asking for an unban. UserId string `json:"user_id"` // UserLogin The user’s login name. UserLogin string `json:"user_login"` // UserName The user’s display name. UserName string `json:"user_name"` } `json:"data"` }
ResolveUnbanRequestsResponse defines model for ResolveUnbanRequestsResponse.
func (ResolveUnbanRequestsResponse) GetData ¶
func (datatype ResolveUnbanRequestsResponse) GetData() []struct { // BroadcasterId User ID of broadcaster whose channel is receiving the unban request. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // CreatedAt Timestamp of when the unban request was created. CreatedAt time.Time `json:"created_at"` // Id Unban request ID. Id string `json:"id"` // ModeratorId User ID of moderator who approved/denied the request. ModeratorId string `json:"moderator_id"` // ModeratorLogin The moderator’s login name. ModeratorLogin string `json:"moderator_login"` // ModeratorName The moderator’s display name. ModeratorName string `json:"moderator_name"` // ResolutionText Text input by the resolver (moderator) of the unban request. ResolutionText string `json:"resolution_text"` // ResolvedAt Timestamp of when moderator/broadcaster approved or denied the request. ResolvedAt time.Time `json:"resolved_at"` // Status Status of the request. One of: // // * approved // * denied Status string `json:"status"` // Text Text of the request from the requesting user. Text string `json:"text"` // UserId User ID of the requestor who is asking for an unban. UserId string `json:"user_id"` // UserLogin The user’s login name. UserLogin string `json:"user_login"` // UserName The user’s display name. UserName string `json:"user_name"` }
type SearchCategoriesHTTPResponse ¶
type SearchCategoriesHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SearchCategoriesResponse }
func ParseSearchCategoriesHTTPResponse ¶
func ParseSearchCategoriesHTTPResponse(rsp *http.Response) (*SearchCategoriesHTTPResponse, error)
ParseSearchCategoriesHTTPResponse parses an HTTP response from a SearchCategoriesWithResponse call
func (SearchCategoriesHTTPResponse) Status ¶
func (r SearchCategoriesHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (SearchCategoriesHTTPResponse) StatusCode ¶
func (r SearchCategoriesHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SearchCategoriesParams ¶
type SearchCategoriesParams struct { // Query The URI-encoded search string. For example, encode _#archery_ as `%23archery` and search strings like _angel of death_ as `angel%20of%20death`. Query string `form:"query" json:"query"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` }
SearchCategoriesParams defines parameters for SearchCategories.
type SearchCategoriesResponse ¶
type SearchCategoriesResponse struct { // Data The list of games or categories that match the query. The list is empty if there are no matches. Data []Category `json:"data"` }
SearchCategoriesResponse defines model for SearchCategoriesResponse.
func (SearchCategoriesResponse) GetData ¶
func (datatype SearchCategoriesResponse) GetData() []Category
type SearchChannelsHTTPResponse ¶
type SearchChannelsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SearchChannelsResponse }
func ParseSearchChannelsHTTPResponse ¶
func ParseSearchChannelsHTTPResponse(rsp *http.Response) (*SearchChannelsHTTPResponse, error)
ParseSearchChannelsHTTPResponse parses an HTTP response from a SearchChannelsWithResponse call
func (SearchChannelsHTTPResponse) Status ¶
func (r SearchChannelsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (SearchChannelsHTTPResponse) StatusCode ¶
func (r SearchChannelsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SearchChannelsParams ¶
type SearchChannelsParams struct { // Query The URI-encoded search string. For example, encode search strings like _angel of death_ as `angel%20of%20death`. Query string `form:"query" json:"query"` // LiveOnly A Boolean value that determines whether the response includes only channels that are currently streaming live. Set to **true** to get only channels that are streaming live; otherwise, **false** to get live and offline channels. The default is **false**. LiveOnly *bool `form:"live_only,omitempty" json:"live_only,omitempty"` // First The maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 100 items per page. The default is 20. First *int32 `form:"first,omitempty" json:"first,omitempty"` // After The cursor used to get the next page of results. The **Pagination** object in the response contains the cursor’s value. [Read More](https://dev.twitch.tv/docs/api/guide#pagination) After *string `form:"after,omitempty" json:"after,omitempty"` }
SearchChannelsParams defines parameters for SearchChannels.
type SearchChannelsResponse ¶
type SearchChannelsResponse struct { // Data The list of channels that match the query. The list is empty if there are no matches. Data []Channel `json:"data"` }
SearchChannelsResponse defines model for SearchChannelsResponse.
func (SearchChannelsResponse) GetData ¶
func (datatype SearchChannelsResponse) GetData() []Channel
type SendAShoutoutHTTPResponse ¶
func ParseSendAShoutoutHTTPResponse ¶
func ParseSendAShoutoutHTTPResponse(rsp *http.Response) (*SendAShoutoutHTTPResponse, error)
ParseSendAShoutoutHTTPResponse parses an HTTP response from a SendAShoutoutWithResponse call
func (SendAShoutoutHTTPResponse) Status ¶
func (r SendAShoutoutHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (SendAShoutoutHTTPResponse) StatusCode ¶
func (r SendAShoutoutHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendAShoutoutParams ¶
type SendAShoutoutParams struct { // FromBroadcasterId The ID of the broadcaster that’s sending the Shoutout. FromBroadcasterId string `form:"from_broadcaster_id" json:"from_broadcaster_id"` // ToBroadcasterId The ID of the broadcaster that’s receiving the Shoutout. ToBroadcasterId string `form:"to_broadcaster_id" json:"to_broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that is one of the broadcaster’s moderators. This ID must match the user ID in the access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` }
SendAShoutoutParams defines parameters for SendAShoutout.
type SendChatAnnouncementBody ¶
type SendChatAnnouncementBody struct { // Color The color used to highlight the announcement. Possible case-sensitive values are: // // * blue // * green // * orange // * purple // * primary (default) // // If `color` is set to _primary_ or is not set, the channel’s accent color is used to highlight the announcement (see **Profile Accent Color** under [profile settings](https://www.twitch.tv/settings/profile), **Channel and Videos**, and **Brand**). Color *SendChatAnnouncementBodyColor `json:"color,omitempty"` // Message The announcement to make in the broadcaster’s chat room. Announcements are limited to a maximum of 500 characters; announcements longer than 500 characters are truncated. Message string `json:"message"` }
SendChatAnnouncementBody defines model for SendChatAnnouncementBody.
func (SendChatAnnouncementBody) GetColor ¶
func (datatype SendChatAnnouncementBody) GetColor() SendChatAnnouncementBodyColor
func (SendChatAnnouncementBody) GetMessage ¶
func (datatype SendChatAnnouncementBody) GetMessage() string
type SendChatAnnouncementBodyColor ¶
type SendChatAnnouncementBodyColor string
SendChatAnnouncementBodyColor The color used to highlight the announcement. Possible case-sensitive values are:
* blue * green * orange * purple * primary (default)
If `color` is set to _primary_ or is not set, the channel’s accent color is used to highlight the announcement (see **Profile Accent Color** under [profile settings](https://www.twitch.tv/settings/profile), **Channel and Videos**, and **Brand**).
const ( SendChatAnnouncementBodyColorBlue SendChatAnnouncementBodyColor = "blue" SendChatAnnouncementBodyColorGreen SendChatAnnouncementBodyColor = "green" SendChatAnnouncementBodyColorOrange SendChatAnnouncementBodyColor = "orange" SendChatAnnouncementBodyColorPrimaryDefault SendChatAnnouncementBodyColor = "primary (default)" SendChatAnnouncementBodyColorPurple SendChatAnnouncementBodyColor = "purple" )
Defines values for SendChatAnnouncementBodyColor.
type SendChatAnnouncementHTTPResponse ¶
func ParseSendChatAnnouncementHTTPResponse ¶
func ParseSendChatAnnouncementHTTPResponse(rsp *http.Response) (*SendChatAnnouncementHTTPResponse, error)
ParseSendChatAnnouncementHTTPResponse parses an HTTP response from a SendChatAnnouncementWithResponse call
func (SendChatAnnouncementHTTPResponse) Status ¶
func (r SendChatAnnouncementHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (SendChatAnnouncementHTTPResponse) StatusCode ¶
func (r SendChatAnnouncementHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendChatAnnouncementJSONRequestBody ¶
type SendChatAnnouncementJSONRequestBody = SendChatAnnouncementBody
SendChatAnnouncementJSONRequestBody defines body for SendChatAnnouncement for application/json ContentType.
type SendChatAnnouncementParams ¶
type SendChatAnnouncementParams struct { // BroadcasterId The ID of the broadcaster that owns the chat room to send the announcement to. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of a user who has permission to moderate the broadcaster’s chat room, or the broadcaster’s ID if they’re sending the announcement. This ID must match the user ID in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` }
SendChatAnnouncementParams defines parameters for SendChatAnnouncement.
type SendChatMessageBody ¶
type SendChatMessageBody struct { // BroadcasterId The ID of the broadcaster whose chat room the message will be sent to. BroadcasterId string `json:"broadcaster_id"` // Message The message to send. The message is limited to a maximum of 500 characters. Chat messages can also include emoticons. To include emoticons, use the name of the emote. The names are case sensitive. Don’t include colons around the name (e.g., :bleedPurple:). If Twitch recognizes the name, Twitch converts the name to the emote before writing the chat message to the chat room Message string `json:"message"` // ReplyParentMessageId The ID of the chat message being replied to. ReplyParentMessageId *string `json:"reply_parent_message_id,omitempty"` // SenderId The ID of the user sending the message. This ID must match the user ID in the user access token. SenderId string `json:"sender_id"` }
SendChatMessageBody defines model for SendChatMessageBody.
func (SendChatMessageBody) GetBroadcasterId ¶
func (datatype SendChatMessageBody) GetBroadcasterId() string
func (SendChatMessageBody) GetMessage ¶
func (datatype SendChatMessageBody) GetMessage() string
func (SendChatMessageBody) GetReplyParentMessageId ¶
func (datatype SendChatMessageBody) GetReplyParentMessageId() string
func (SendChatMessageBody) GetSenderId ¶
func (datatype SendChatMessageBody) GetSenderId() string
type SendChatMessageHTTPResponse ¶
type SendChatMessageHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SendChatMessageResponse }
func ParseSendChatMessageHTTPResponse ¶
func ParseSendChatMessageHTTPResponse(rsp *http.Response) (*SendChatMessageHTTPResponse, error)
ParseSendChatMessageHTTPResponse parses an HTTP response from a SendChatMessageWithResponse call
func (SendChatMessageHTTPResponse) Status ¶
func (r SendChatMessageHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (SendChatMessageHTTPResponse) StatusCode ¶
func (r SendChatMessageHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendChatMessageJSONRequestBody ¶
type SendChatMessageJSONRequestBody = SendChatMessageBody
SendChatMessageJSONRequestBody defines body for SendChatMessage for application/json ContentType.
type SendChatMessageResponse ¶
type SendChatMessageResponse struct { Data []struct { // DropReason The reason the message was dropped, if any. DropReason *struct { // Code Code for why the message was dropped. Code string `json:"code"` // Message Message for why the message was dropped. Message string `json:"message"` } `json:"drop_reason,omitempty"` // IsSent If the message passed all checks and was sent. IsSent bool `json:"is_sent"` // MessageId The message id for the message that was sent. MessageId string `json:"message_id"` } `json:"data"` }
SendChatMessageResponse defines model for SendChatMessageResponse.
func (SendChatMessageResponse) GetData ¶
func (datatype SendChatMessageResponse) GetData() []struct { // DropReason The reason the message was dropped, if any. DropReason *struct { // Code Code for why the message was dropped. Code string `json:"code"` // Message Message for why the message was dropped. Message string `json:"message"` } `json:"drop_reason,omitempty"` // IsSent If the message passed all checks and was sent. IsSent bool `json:"is_sent"` // MessageId The message id for the message that was sent. MessageId string `json:"message_id"` }
type SendExtensionChatMessageBody ¶
type SendExtensionChatMessageBody struct { // ExtensionId The ID of the extension that’s sending the chat message. ExtensionId string `json:"extension_id"` // ExtensionVersion The extension’s version number. ExtensionVersion string `json:"extension_version"` // Text The message. The message may contain a maximum of 280 characters. Text string `json:"text"` }
SendExtensionChatMessageBody defines model for SendExtensionChatMessageBody.
func (SendExtensionChatMessageBody) GetExtensionId ¶
func (datatype SendExtensionChatMessageBody) GetExtensionId() string
func (SendExtensionChatMessageBody) GetExtensionVersion ¶
func (datatype SendExtensionChatMessageBody) GetExtensionVersion() string
func (SendExtensionChatMessageBody) GetText ¶
func (datatype SendExtensionChatMessageBody) GetText() string
type SendExtensionChatMessageHTTPResponse ¶
func ParseSendExtensionChatMessageHTTPResponse ¶
func ParseSendExtensionChatMessageHTTPResponse(rsp *http.Response) (*SendExtensionChatMessageHTTPResponse, error)
ParseSendExtensionChatMessageHTTPResponse parses an HTTP response from a SendExtensionChatMessageWithResponse call
func (SendExtensionChatMessageHTTPResponse) Status ¶
func (r SendExtensionChatMessageHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (SendExtensionChatMessageHTTPResponse) StatusCode ¶
func (r SendExtensionChatMessageHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendExtensionChatMessageJSONRequestBody ¶
type SendExtensionChatMessageJSONRequestBody = SendExtensionChatMessageBody
SendExtensionChatMessageJSONRequestBody defines body for SendExtensionChatMessage for application/json ContentType.
type SendExtensionChatMessageParams ¶
type SendExtensionChatMessageParams struct { // BroadcasterId The ID of the broadcaster that has activated the extension. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
SendExtensionChatMessageParams defines parameters for SendExtensionChatMessage.
type SendExtensionPubSubMessageBody ¶
type SendExtensionPubSubMessageBody struct { // BroadcasterId The ID of the broadcaster to send the message to. Don’t include this field if `is_global_broadcast` is set to **true**. BroadcasterId string `json:"broadcaster_id"` // IsGlobalBroadcast A Boolean value that determines whether the message should be sent to all channels where your extension is active. Set to **true** if the message should be sent to all channels. The default is **false**. IsGlobalBroadcast *bool `json:"is_global_broadcast,omitempty"` // Message The message to send. The message can be a plain-text string or a string-encoded JSON object. The message is limited to a maximum of 5 KB. Message string `json:"message"` // Target The target of the message. Possible values are: // // * broadcast // * global // * whisper-<user-id> // // If `is_global_broadcast` is **true**, you must set this field to global. The broadcast and global values are mutually exclusive; specify only one of them. Target []SendExtensionPubSubMessageBodyTarget `json:"target"` }
SendExtensionPubSubMessageBody defines model for SendExtensionPubSubMessageBody.
func (SendExtensionPubSubMessageBody) GetBroadcasterId ¶
func (datatype SendExtensionPubSubMessageBody) GetBroadcasterId() string
func (SendExtensionPubSubMessageBody) GetIsGlobalBroadcast ¶
func (datatype SendExtensionPubSubMessageBody) GetIsGlobalBroadcast() bool
func (SendExtensionPubSubMessageBody) GetMessage ¶
func (datatype SendExtensionPubSubMessageBody) GetMessage() string
func (SendExtensionPubSubMessageBody) GetTarget ¶
func (datatype SendExtensionPubSubMessageBody) GetTarget() []SendExtensionPubSubMessageBodyTarget
type SendExtensionPubSubMessageBodyTarget ¶
type SendExtensionPubSubMessageBodyTarget string
SendExtensionPubSubMessageBodyTarget defines model for SendExtensionPubSubMessageBody.Target.
const ( SendExtensionPubSubMessageBodyTargetBroadcast SendExtensionPubSubMessageBodyTarget = "broadcast" SendExtensionPubSubMessageBodyTargetGlobal SendExtensionPubSubMessageBodyTarget = "global" SendExtensionPubSubMessageBodyTargetWhisperuserId SendExtensionPubSubMessageBodyTarget = "whisper-<user-id>" )
Defines values for SendExtensionPubSubMessageBodyTarget.
type SendExtensionPubsubMessageHTTPResponse ¶
func ParseSendExtensionPubsubMessageHTTPResponse ¶
func ParseSendExtensionPubsubMessageHTTPResponse(rsp *http.Response) (*SendExtensionPubsubMessageHTTPResponse, error)
ParseSendExtensionPubsubMessageHTTPResponse parses an HTTP response from a SendExtensionPubsubMessageWithResponse call
func (SendExtensionPubsubMessageHTTPResponse) Status ¶
func (r SendExtensionPubsubMessageHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (SendExtensionPubsubMessageHTTPResponse) StatusCode ¶
func (r SendExtensionPubsubMessageHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendExtensionPubsubMessageJSONRequestBody ¶
type SendExtensionPubsubMessageJSONRequestBody = SendExtensionPubSubMessageBody
SendExtensionPubsubMessageJSONRequestBody defines body for SendExtensionPubsubMessage for application/json ContentType.
type SendGuestStarInviteHTTPResponse ¶
func ParseSendGuestStarInviteHTTPResponse ¶
func ParseSendGuestStarInviteHTTPResponse(rsp *http.Response) (*SendGuestStarInviteHTTPResponse, error)
ParseSendGuestStarInviteHTTPResponse parses an HTTP response from a SendGuestStarInviteWithResponse call
func (SendGuestStarInviteHTTPResponse) Status ¶
func (r SendGuestStarInviteHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (SendGuestStarInviteHTTPResponse) StatusCode ¶
func (r SendGuestStarInviteHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendGuestStarInviteParams ¶
type SendGuestStarInviteParams struct { // BroadcasterId The ID of the broadcaster running the Guest Star session. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s chat room. This ID must match the `user_id` in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` // SessionId The session ID for the invite to be sent on behalf of the broadcaster. SessionId string `form:"session_id" json:"session_id"` // GuestId Twitch User ID for the guest to invite to the Guest Star session. GuestId string `form:"guest_id" json:"guest_id"` }
SendGuestStarInviteParams defines parameters for SendGuestStarInvite.
type SendWhisperBody ¶
type SendWhisperBody struct { // Message The whisper message to send. The message must not be empty. // // The maximum message lengths are: // // * 500 characters if the user you're sending the message to hasn't whispered you before. // * 10,000 characters if the user you're sending the message to has whispered you before. // // Messages that exceed the maximum length are truncated. Message string `json:"message"` }
SendWhisperBody defines model for SendWhisperBody.
func (SendWhisperBody) GetMessage ¶
func (datatype SendWhisperBody) GetMessage() string
type SendWhisperHTTPResponse ¶
func ParseSendWhisperHTTPResponse ¶
func ParseSendWhisperHTTPResponse(rsp *http.Response) (*SendWhisperHTTPResponse, error)
ParseSendWhisperHTTPResponse parses an HTTP response from a SendWhisperWithResponse call
func (SendWhisperHTTPResponse) Status ¶
func (r SendWhisperHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (SendWhisperHTTPResponse) StatusCode ¶
func (r SendWhisperHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendWhisperJSONRequestBody ¶
type SendWhisperJSONRequestBody = SendWhisperBody
SendWhisperJSONRequestBody defines body for SendWhisper for application/json ContentType.
type SendWhisperParams ¶
type SendWhisperParams struct { // FromUserId The ID of the user sending the whisper. This user must have a verified phone number. This ID must match the user ID in the user access token. FromUserId string `form:"from_user_id" json:"from_user_id"` // ToUserId The ID of the user to receive the whisper. ToUserId string `form:"to_user_id" json:"to_user_id"` }
SendWhisperParams defines parameters for SendWhisper.
type SetExtensionConfigurationSegmentBody ¶
type SetExtensionConfigurationSegmentBody struct { // BroadcasterId The ID of the broadcaster that installed the extension. Include this field only if the `segment` is set to developer or broadcaster. BroadcasterId *string `json:"broadcaster_id,omitempty"` // Content The contents of the segment. This string may be a plain-text string or a string-encoded JSON object. Content *string `json:"content,omitempty"` // ExtensionId The ID of the extension to update. ExtensionId string `json:"extension_id"` // Segment The configuration segment to update. Possible case-sensitive values are: // // * broadcaster // * developer // * global Segment SetExtensionConfigurationSegmentBodySegment `json:"segment"` // Version The version number that identifies this definition of the segment’s data. If not specified, the latest definition is updated. Version *string `json:"version,omitempty"` }
SetExtensionConfigurationSegmentBody defines model for SetExtensionConfigurationSegmentBody.
func (SetExtensionConfigurationSegmentBody) GetBroadcasterId ¶
func (datatype SetExtensionConfigurationSegmentBody) GetBroadcasterId() string
func (SetExtensionConfigurationSegmentBody) GetContent ¶
func (datatype SetExtensionConfigurationSegmentBody) GetContent() string
func (SetExtensionConfigurationSegmentBody) GetExtensionId ¶
func (datatype SetExtensionConfigurationSegmentBody) GetExtensionId() string
func (SetExtensionConfigurationSegmentBody) GetSegment ¶
func (datatype SetExtensionConfigurationSegmentBody) GetSegment() SetExtensionConfigurationSegmentBodySegment
func (SetExtensionConfigurationSegmentBody) GetVersion ¶
func (datatype SetExtensionConfigurationSegmentBody) GetVersion() string
type SetExtensionConfigurationSegmentBodySegment ¶
type SetExtensionConfigurationSegmentBodySegment string
SetExtensionConfigurationSegmentBodySegment The configuration segment to update. Possible case-sensitive values are:
* broadcaster * developer * global
const ( SetExtensionConfigurationSegmentBodySegmentBroadcaster SetExtensionConfigurationSegmentBodySegment = "broadcaster" SetExtensionConfigurationSegmentBodySegmentDeveloper SetExtensionConfigurationSegmentBodySegment = "developer" SetExtensionConfigurationSegmentBodySegmentGlobal SetExtensionConfigurationSegmentBodySegment = "global" )
Defines values for SetExtensionConfigurationSegmentBodySegment.
type SetExtensionConfigurationSegmentHTTPResponse ¶
type SetExtensionConfigurationSegmentHTTPResponse struct { Body []byte HTTPResponse *http.Response }
func ParseSetExtensionConfigurationSegmentHTTPResponse ¶
func ParseSetExtensionConfigurationSegmentHTTPResponse(rsp *http.Response) (*SetExtensionConfigurationSegmentHTTPResponse, error)
ParseSetExtensionConfigurationSegmentHTTPResponse parses an HTTP response from a SetExtensionConfigurationSegmentWithResponse call
func (SetExtensionConfigurationSegmentHTTPResponse) Status ¶
func (r SetExtensionConfigurationSegmentHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (SetExtensionConfigurationSegmentHTTPResponse) StatusCode ¶
func (r SetExtensionConfigurationSegmentHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetExtensionConfigurationSegmentJSONRequestBody ¶
type SetExtensionConfigurationSegmentJSONRequestBody = SetExtensionConfigurationSegmentBody
SetExtensionConfigurationSegmentJSONRequestBody defines body for SetExtensionConfigurationSegment for application/json ContentType.
type SetExtensionRequiredConfigurationBody ¶
type SetExtensionRequiredConfigurationBody struct { // ExtensionId The ID of the extension to update. ExtensionId string `json:"extension_id"` // ExtensionVersion The version of the extension to update. ExtensionVersion string `json:"extension_version"` // RequiredConfiguration The required\_configuration string to use with the extension. RequiredConfiguration string `json:"required_configuration"` }
SetExtensionRequiredConfigurationBody defines model for SetExtensionRequiredConfigurationBody.
func (SetExtensionRequiredConfigurationBody) GetExtensionId ¶
func (datatype SetExtensionRequiredConfigurationBody) GetExtensionId() string
func (SetExtensionRequiredConfigurationBody) GetExtensionVersion ¶
func (datatype SetExtensionRequiredConfigurationBody) GetExtensionVersion() string
func (SetExtensionRequiredConfigurationBody) GetRequiredConfiguration ¶
func (datatype SetExtensionRequiredConfigurationBody) GetRequiredConfiguration() string
type SetExtensionRequiredConfigurationHTTPResponse ¶
type SetExtensionRequiredConfigurationHTTPResponse struct { Body []byte HTTPResponse *http.Response }
func ParseSetExtensionRequiredConfigurationHTTPResponse ¶
func ParseSetExtensionRequiredConfigurationHTTPResponse(rsp *http.Response) (*SetExtensionRequiredConfigurationHTTPResponse, error)
ParseSetExtensionRequiredConfigurationHTTPResponse parses an HTTP response from a SetExtensionRequiredConfigurationWithResponse call
func (SetExtensionRequiredConfigurationHTTPResponse) Status ¶
func (r SetExtensionRequiredConfigurationHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (SetExtensionRequiredConfigurationHTTPResponse) StatusCode ¶
func (r SetExtensionRequiredConfigurationHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetExtensionRequiredConfigurationJSONRequestBody ¶
type SetExtensionRequiredConfigurationJSONRequestBody = SetExtensionRequiredConfigurationBody
SetExtensionRequiredConfigurationJSONRequestBody defines body for SetExtensionRequiredConfiguration for application/json ContentType.
type SetExtensionRequiredConfigurationParams ¶
type SetExtensionRequiredConfigurationParams struct { // BroadcasterId The ID of the broadcaster that installed the extension on their channel. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
SetExtensionRequiredConfigurationParams defines parameters for SetExtensionRequiredConfiguration.
type SnoozeNextAdHTTPResponse ¶
type SnoozeNextAdHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SnoozeNextAdResponse }
func ParseSnoozeNextAdHTTPResponse ¶
func ParseSnoozeNextAdHTTPResponse(rsp *http.Response) (*SnoozeNextAdHTTPResponse, error)
ParseSnoozeNextAdHTTPResponse parses an HTTP response from a SnoozeNextAdWithResponse call
func (SnoozeNextAdHTTPResponse) Status ¶
func (r SnoozeNextAdHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (SnoozeNextAdHTTPResponse) StatusCode ¶
func (r SnoozeNextAdHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SnoozeNextAdParams ¶
type SnoozeNextAdParams struct { // BroadcasterId Provided `broadcaster_id` must match the `user_id` in the auth token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
SnoozeNextAdParams defines parameters for SnoozeNextAd.
type SnoozeNextAdResponse ¶
type SnoozeNextAdResponse struct { // Data A list that contains information about the channel’s snoozes and next upcoming ad after successfully snoozing. Data []struct { // NextAdAt The UTC timestamp of the broadcaster’s next scheduled ad, in RFC3339 format. NextAdAt time.Time `json:"next_ad_at"` // SnoozeCount The number of snoozes available for the broadcaster. SnoozeCount int32 `json:"snooze_count"` // SnoozeRefreshAt The UTC timestamp when the broadcaster will gain an additional snooze, in RFC3339 format. SnoozeRefreshAt time.Time `json:"snooze_refresh_at"` } `json:"data"` }
SnoozeNextAdResponse defines model for SnoozeNextAdResponse.
func (SnoozeNextAdResponse) GetData ¶
func (datatype SnoozeNextAdResponse) GetData() []struct { // NextAdAt The UTC timestamp of the broadcaster’s next scheduled ad, in RFC3339 format. NextAdAt time.Time `json:"next_ad_at"` // SnoozeCount The number of snoozes available for the broadcaster. SnoozeCount int32 `json:"snooze_count"` // SnoozeRefreshAt The UTC timestamp when the broadcaster will gain an additional snooze, in RFC3339 format. SnoozeRefreshAt time.Time `json:"snooze_refresh_at"` }
type StartARaidHTTPResponse ¶
type StartARaidHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *StartRaidResponse }
func ParseStartARaidHTTPResponse ¶
func ParseStartARaidHTTPResponse(rsp *http.Response) (*StartARaidHTTPResponse, error)
ParseStartARaidHTTPResponse parses an HTTP response from a StartARaidWithResponse call
func (StartARaidHTTPResponse) Status ¶
func (r StartARaidHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (StartARaidHTTPResponse) StatusCode ¶
func (r StartARaidHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StartARaidParams ¶
type StartARaidParams struct { // FromBroadcasterId The ID of the broadcaster that’s sending the raiding party. This ID must match the user ID in the user access token. FromBroadcasterId *string `form:"from_broadcaster_id,omitempty" json:"from_broadcaster_id,omitempty"` // ToBroadcasterId The ID of the broadcaster to raid. ToBroadcasterId *string `form:"to_broadcaster_id,omitempty" json:"to_broadcaster_id,omitempty"` }
StartARaidParams defines parameters for StartARaid.
type StartCommercialBody ¶
type StartCommercialBody struct { // BroadcasterId The ID of the partner or affiliate broadcaster that wants to run the commercial. This ID must match the user ID found in the OAuth token. BroadcasterId string `json:"broadcaster_id"` // Length The length of the commercial to run, in seconds. Twitch tries to serve a commercial that’s the requested length, but it may be shorter or longer. The maximum length you should request is 180 seconds. Length int32 `json:"length"` }
StartCommercialBody defines model for StartCommercialBody.
func (StartCommercialBody) GetBroadcasterId ¶
func (datatype StartCommercialBody) GetBroadcasterId() string
func (StartCommercialBody) GetLength ¶
func (datatype StartCommercialBody) GetLength() int32
type StartCommercialHTTPResponse ¶
type StartCommercialHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *StartCommercialResponse }
func ParseStartCommercialHTTPResponse ¶
func ParseStartCommercialHTTPResponse(rsp *http.Response) (*StartCommercialHTTPResponse, error)
ParseStartCommercialHTTPResponse parses an HTTP response from a StartCommercialWithResponse call
func (StartCommercialHTTPResponse) Status ¶
func (r StartCommercialHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (StartCommercialHTTPResponse) StatusCode ¶
func (r StartCommercialHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StartCommercialJSONRequestBody ¶
type StartCommercialJSONRequestBody = StartCommercialBody
StartCommercialJSONRequestBody defines body for StartCommercial for application/json ContentType.
type StartCommercialResponse ¶
type StartCommercialResponse struct { // Data An array that contains a single object with the status of your start commercial request. Data []struct { // Length The length of the commercial you requested. If you request a commercial that’s longer than 180 seconds, the API uses 180 seconds. Length int32 `json:"length"` // Message A message that indicates whether Twitch was able to serve an ad. Message string `json:"message"` // RetryAfter The number of seconds you must wait before running another commercial. RetryAfter int32 `json:"retry_after"` } `json:"data"` }
StartCommercialResponse defines model for StartCommercialResponse.
func (StartCommercialResponse) GetData ¶
func (datatype StartCommercialResponse) GetData() []struct { // Length The length of the commercial you requested. If you request a commercial that’s longer than 180 seconds, the API uses 180 seconds. Length int32 `json:"length"` // Message A message that indicates whether Twitch was able to serve an ad. Message string `json:"message"` // RetryAfter The number of seconds you must wait before running another commercial. RetryAfter int32 `json:"retry_after"` }
type StartRaidResponse ¶
type StartRaidResponse struct { // Data A list that contains a single object with information about the pending raid. Data []struct { // CreatedAt The UTC date and time, in RFC3339 format, of when the raid was requested. CreatedAt time.Time `json:"created_at"` // IsMature A Boolean value that indicates whether the channel being raided contains mature content. IsMature bool `json:"is_mature"` } `json:"data"` }
StartRaidResponse defines model for StartRaidResponse.
func (StartRaidResponse) GetData ¶
func (datatype StartRaidResponse) GetData() []struct { // CreatedAt The UTC date and time, in RFC3339 format, of when the raid was requested. CreatedAt time.Time `json:"created_at"` // IsMature A Boolean value that indicates whether the channel being raided contains mature content. IsMature bool `json:"is_mature"` }
type StatusFailureError ¶
StatusFailureError is the error returned if the response was a non-success code.
func (StatusFailureError) Error ¶
func (s StatusFailureError) Error() string
type Stream ¶
type Stream struct { // GameId The ID of the category or game being played. GameId string `json:"game_id"` // GameName The ID of the category or game being played. GameName string `json:"game_name"` // Id An ID that identifies the stream. You can use this ID later to look up the video on demand (VOD). Id string `json:"id"` // IsMature A Boolean value that indicates whether the stream is meant for mature audiences. IsMature bool `json:"is_mature"` // Language The language that the stream uses. This is an ISO 639-1 two-letter language code or _other_ if the stream uses a language not in the list of [supported stream languages](https://help.twitch.tv/s/article/languages-on-twitch#streamlang). Language string `json:"language"` // StartedAt The UTC date and time (in RFC3339 format) of when the broadcast began. StartedAt time.Time `json:"started_at"` // TagIds **IMPORTANT** As of February 28, 2023, this field is deprecated and returns only an empty array. If you use this field, please update your code to use the `tags` field. // // The list of tags that apply to the stream. The list contains IDs only when the channel is steaming live. For a list of possible tags, see [List of All Tags](https://www.twitch.tv/directory/all/tags). The list doesn’t include Category Tags. // Deprecated: TagIds []string `json:"tag_ids"` // Tags The tags applied to the stream. Tags []string `json:"tags"` // ThumbnailUrl A URL to an image of a frame from the last 5 minutes of the stream. Replace the width and height placeholders in the URL (`{width}x{height}`) with the size of the image you want, in pixels. ThumbnailUrl string `json:"thumbnail_url"` // Title The stream’s title. Is an empty string if not set. Title string `json:"title"` // Type The type of stream. Possible values are: // // * live // // If an error occurs, this field is set to an empty string. Type StreamType `json:"type"` // UserId The ID of the user that’s broadcasting the stream. UserId string `json:"user_id"` // UserLogin The user’s login name. UserLogin string `json:"user_login"` // UserName The user’s display name. UserName string `json:"user_name"` // ViewerCount The number of users watching the stream. ViewerCount int32 `json:"viewer_count"` }
Stream defines model for Stream.
func (Stream) GetGameName ¶
func (Stream) GetIsMature ¶
func (Stream) GetLanguage ¶
func (Stream) GetStartedAt ¶
func (Stream) GetThumbnailUrl ¶
func (Stream) GetType ¶
func (datatype Stream) GetType() StreamType
func (Stream) GetUserLogin ¶
func (Stream) GetUserName ¶
func (Stream) GetViewerCount ¶
type StreamMarkerCreated ¶
type StreamMarkerCreated struct { // CreatedAt The UTC date and time (in RFC3339 format) of when the user created the marker. CreatedAt time.Time `json:"created_at"` // Description A description that the user gave the marker to help them remember why they marked the location. Description string `json:"description"` // Id An ID that identifies this marker. Id string `json:"id"` // PositionSeconds The relative offset (in seconds) of the marker from the beginning of the stream. PositionSeconds int32 `json:"position_seconds"` }
StreamMarkerCreated defines model for StreamMarkerCreated.
func (StreamMarkerCreated) GetCreatedAt ¶
func (datatype StreamMarkerCreated) GetCreatedAt() time.Time
func (StreamMarkerCreated) GetDescription ¶
func (datatype StreamMarkerCreated) GetDescription() string
func (StreamMarkerCreated) GetId ¶
func (datatype StreamMarkerCreated) GetId() string
func (StreamMarkerCreated) GetPositionSeconds ¶
func (datatype StreamMarkerCreated) GetPositionSeconds() int32
type StreamMarkers ¶
type StreamMarkers struct { // Markers The list of markers in this video. The list in ascending order by when the marker was created. Markers []struct { // CreatedAt The UTC date and time (in RFC3339 format) of when the user created the marker. CreatedAt time.Time `json:"created_at"` // Description The description that the user gave the marker to help them remember why they marked the location. Is an empty string if the user didn’t provide one. Description string `json:"description"` // Id An ID that identifies this marker. Id string `json:"id"` // PositionSeconds The relative offset (in seconds) of the marker from the beginning of the stream. PositionSeconds int32 `json:"position_seconds"` // Url A URL that opens the video in Twitch Highlighter. Url string `json:"url"` } `json:"markers"` // UserId The ID of the user that created the marker. UserId string `json:"user_id"` // UserLogin The user’s login name. UserLogin string `json:"user_login"` // UserName The user’s display name. UserName string `json:"user_name"` // VideoId An ID that identifies this video. VideoId string `json:"video_id"` // Videos A list of videos that contain markers. The list contains a single video. Videos []map[string]interface{} `json:"videos"` }
StreamMarkers defines model for StreamMarkers.
func (StreamMarkers) GetMarkers ¶
func (datatype StreamMarkers) GetMarkers() []struct { // CreatedAt The UTC date and time (in RFC3339 format) of when the user created the marker. CreatedAt time.Time `json:"created_at"` // Description The description that the user gave the marker to help them remember why they marked the location. Is an empty string if the user didn’t provide one. Description string `json:"description"` // Id An ID that identifies this marker. Id string `json:"id"` // PositionSeconds The relative offset (in seconds) of the marker from the beginning of the stream. PositionSeconds int32 `json:"position_seconds"` // Url A URL that opens the video in Twitch Highlighter. Url string `json:"url"` }
func (StreamMarkers) GetUserId ¶
func (datatype StreamMarkers) GetUserId() string
func (StreamMarkers) GetUserLogin ¶
func (datatype StreamMarkers) GetUserLogin() string
func (StreamMarkers) GetUserName ¶
func (datatype StreamMarkers) GetUserName() string
func (StreamMarkers) GetVideoId ¶
func (datatype StreamMarkers) GetVideoId() string
func (StreamMarkers) GetVideos ¶
func (datatype StreamMarkers) GetVideos() []map[string]interface{}
type StreamTag ¶
type StreamTag struct { // IsAuto A Boolean value that determines whether the tag is an automatic tag. An automatic tag is one that Twitch adds to the stream. Broadcasters may not add automatic tags to their channel. The value is **true** if the tag is an automatic tag; otherwise, **false**. IsAuto bool `json:"is_auto"` // LocalizationDescriptions A dictionary that contains the localized descriptions of the tag. The key is in the form, <locale>-<coutry/region>. For example, en-us. The value is the localized description. LocalizationDescriptions map[string]string `json:"localization_descriptions"` // LocalizationNames A dictionary that contains the localized names of the tag. The key is in the form, <locale>-<coutry/region>. For example, en-us. The value is the localized name. LocalizationNames map[string]string `json:"localization_names"` // TagId An ID that identifies this tag. TagId string `json:"tag_id"` }
StreamTag defines model for StreamTag.
func (StreamTag) GetLocalizationDescriptions ¶
func (StreamTag) GetLocalizationNames ¶
type StreamType ¶
type StreamType string
StreamType The type of stream. Possible values are:
* live
If an error occurs, this field is set to an empty string.
const (
StreamTypeLive StreamType = "live"
)
Defines values for StreamType.
type Team ¶
type Team struct { // BackgroundImageUrl A URL to the team’s background image. BackgroundImageUrl string `json:"background_image_url"` // Banner A URL to the team’s banner. Banner string `json:"banner"` // CreatedAt The UTC date and time (in RFC3339 format) of when the team was created. CreatedAt time.Time `json:"created_at"` // Id An ID that identifies the team. Id string `json:"id"` // Info The team’s description. The description may contain formatting such as Markdown, HTML, newline (\\n) characters, etc. Info string `json:"info"` // TeamDisplayName The team’s display name. TeamDisplayName string `json:"team_display_name"` // TeamName The team’s name. TeamName string `json:"team_name"` // ThumbnailUrl A URL to a thumbnail image of the team’s logo. ThumbnailUrl string `json:"thumbnail_url"` // UpdatedAt The UTC date and time (in RFC3339 format) of the last time the team was updated. UpdatedAt time.Time `json:"updated_at"` // Users The list of team members. Users []struct { // UserId An ID that identifies the team member. UserId string `json:"user_id"` // UserLogin The team member’s login name. UserLogin string `json:"user_login"` // UserName The team member’s display name. UserName string `json:"user_name"` } `json:"users"` }
Team defines model for Team.
func (Team) GetBackgroundImageUrl ¶
func (Team) GetCreatedAt ¶
func (Team) GetTeamDisplayName ¶
func (Team) GetTeamName ¶
func (Team) GetThumbnailUrl ¶
func (Team) GetUpdatedAt ¶
type UnbanUserHTTPResponse ¶
func ParseUnbanUserHTTPResponse ¶
func ParseUnbanUserHTTPResponse(rsp *http.Response) (*UnbanUserHTTPResponse, error)
ParseUnbanUserHTTPResponse parses an HTTP response from a UnbanUserWithResponse call
func (UnbanUserHTTPResponse) Status ¶
func (r UnbanUserHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UnbanUserHTTPResponse) StatusCode ¶
func (r UnbanUserHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnbanUserParams ¶
type UnbanUserParams struct { // BroadcasterId The ID of the broadcaster whose chat room the user is banned from chatting in. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s chat room. This ID must match the user ID in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` // UserId The ID of the user to remove the ban or timeout from. UserId string `form:"user_id" json:"user_id"` }
UnbanUserParams defines parameters for UnbanUser.
type UnblockUserHTTPResponse ¶
func ParseUnblockUserHTTPResponse ¶
func ParseUnblockUserHTTPResponse(rsp *http.Response) (*UnblockUserHTTPResponse, error)
ParseUnblockUserHTTPResponse parses an HTTP response from a UnblockUserWithResponse call
func (UnblockUserHTTPResponse) Status ¶
func (r UnblockUserHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UnblockUserHTTPResponse) StatusCode ¶
func (r UnblockUserHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnblockUserParams ¶
type UnblockUserParams struct { // TargetUserId The ID of the user to remove from the broadcaster’s list of blocked users. The API ignores the request if the broadcaster hasn’t blocked the user. TargetUserId string `form:"target_user_id" json:"target_user_id"` }
UnblockUserParams defines parameters for UnblockUser.
type UpdateAutoModSettingsBody ¶
type UpdateAutoModSettingsBody struct { // Aggression The Automod level for hostility involving aggression. Aggression *int32 `json:"aggression,omitempty"` // Bullying The Automod level for hostility involving name calling or insults. Bullying *int32 `json:"bullying,omitempty"` // Disability The Automod level for discrimination against disability. Disability *int32 `json:"disability,omitempty"` // Misogyny The Automod level for discrimination against women. Misogyny *int32 `json:"misogyny,omitempty"` // OverallLevel The default AutoMod level for the broadcaster. OverallLevel *int32 `json:"overall_level,omitempty"` // RaceEthnicityOrReligion The Automod level for racial discrimination. RaceEthnicityOrReligion *int32 `json:"race_ethnicity_or_religion,omitempty"` // SexBasedTerms The Automod level for sexual content. SexBasedTerms *int32 `json:"sex_based_terms,omitempty"` // SexualitySexOrGender The AutoMod level for discrimination based on sexuality, sex, or gender. SexualitySexOrGender *int32 `json:"sexuality_sex_or_gender,omitempty"` // Swearing The Automod level for profanity. Swearing *int32 `json:"swearing,omitempty"` }
UpdateAutoModSettingsBody defines model for UpdateAutoModSettingsBody.
func (UpdateAutoModSettingsBody) GetAggression ¶
func (datatype UpdateAutoModSettingsBody) GetAggression() int32
func (UpdateAutoModSettingsBody) GetBullying ¶
func (datatype UpdateAutoModSettingsBody) GetBullying() int32
func (UpdateAutoModSettingsBody) GetDisability ¶
func (datatype UpdateAutoModSettingsBody) GetDisability() int32
func (UpdateAutoModSettingsBody) GetMisogyny ¶
func (datatype UpdateAutoModSettingsBody) GetMisogyny() int32
func (UpdateAutoModSettingsBody) GetOverallLevel ¶
func (datatype UpdateAutoModSettingsBody) GetOverallLevel() int32
func (UpdateAutoModSettingsBody) GetRaceEthnicityOrReligion ¶
func (datatype UpdateAutoModSettingsBody) GetRaceEthnicityOrReligion() int32
func (UpdateAutoModSettingsBody) GetSexBasedTerms ¶
func (datatype UpdateAutoModSettingsBody) GetSexBasedTerms() int32
func (UpdateAutoModSettingsBody) GetSexualitySexOrGender ¶
func (datatype UpdateAutoModSettingsBody) GetSexualitySexOrGender() int32
func (UpdateAutoModSettingsBody) GetSwearing ¶
func (datatype UpdateAutoModSettingsBody) GetSwearing() int32
type UpdateAutoModSettingsResponse ¶
type UpdateAutoModSettingsResponse struct { // Data The list of AutoMod settings. The list contains a single object that contains all the AutoMod settings. Data []AutoModSettings `json:"data"` }
UpdateAutoModSettingsResponse defines model for UpdateAutoModSettingsResponse.
func (UpdateAutoModSettingsResponse) GetData ¶
func (datatype UpdateAutoModSettingsResponse) GetData() []AutoModSettings
type UpdateAutomodSettingsHTTPResponse ¶
type UpdateAutomodSettingsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *UpdateAutoModSettingsResponse }
func ParseUpdateAutomodSettingsHTTPResponse ¶
func ParseUpdateAutomodSettingsHTTPResponse(rsp *http.Response) (*UpdateAutomodSettingsHTTPResponse, error)
ParseUpdateAutomodSettingsHTTPResponse parses an HTTP response from a UpdateAutomodSettingsWithResponse call
func (UpdateAutomodSettingsHTTPResponse) Status ¶
func (r UpdateAutomodSettingsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateAutomodSettingsHTTPResponse) StatusCode ¶
func (r UpdateAutomodSettingsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateAutomodSettingsJSONRequestBody ¶
type UpdateAutomodSettingsJSONRequestBody = UpdateAutoModSettingsBody
UpdateAutomodSettingsJSONRequestBody defines body for UpdateAutomodSettings for application/json ContentType.
type UpdateAutomodSettingsParams ¶
type UpdateAutomodSettingsParams struct { // BroadcasterId The ID of the broadcaster whose AutoMod settings you want to update. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s chat room. This ID must match the user ID in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` }
UpdateAutomodSettingsParams defines parameters for UpdateAutomodSettings.
type UpdateChannelGuestStarSettingsBody ¶
type UpdateChannelGuestStarSettingsBody struct { // GroupLayout This setting determines how the guests within a session should be laid out within the browser source. Can be one of the following values: // // * `TILED_LAYOUT`: All live guests are tiled within the browser source with the same size. // * `SCREENSHARE_LAYOUT`: All live guests are tiled within the browser source with the same size. If there is an active screen share, it is sized larger than the other guests. // * `HORIZONTAL_LAYOUT`: All live guests are arranged in a horizontal bar within the browser source // * `VERTICAL_LAYOUT`: All live guests are arranged in a vertical bar within the browser source GroupLayout *UpdateChannelGuestStarSettingsBodyGroupLayout `json:"group_layout,omitempty"` // IsBrowserSourceAudioEnabled Flag determining if Browser Sources subscribed to sessions on this channel should output audio IsBrowserSourceAudioEnabled *bool `json:"is_browser_source_audio_enabled,omitempty"` // IsModeratorSendLiveEnabled Flag determining if Guest Star moderators have access to control whether a guest is live once assigned to a slot. IsModeratorSendLiveEnabled *bool `json:"is_moderator_send_live_enabled,omitempty"` // RegenerateBrowserSources Flag determining if Guest Star should regenerate the auth token associated with the channel’s browser sources. Providing a true value for this will immediately invalidate all browser sources previously configured in your streaming software. RegenerateBrowserSources *bool `json:"regenerate_browser_sources,omitempty"` // SlotCount Number of slots the Guest Star call interface will allow the host to add to a call. Required to be between 1 and 6. SlotCount *int32 `json:"slot_count,omitempty"` }
UpdateChannelGuestStarSettingsBody defines model for UpdateChannelGuestStarSettingsBody.
func (UpdateChannelGuestStarSettingsBody) GetGroupLayout ¶
func (datatype UpdateChannelGuestStarSettingsBody) GetGroupLayout() UpdateChannelGuestStarSettingsBodyGroupLayout
func (UpdateChannelGuestStarSettingsBody) GetIsBrowserSourceAudioEnabled ¶
func (datatype UpdateChannelGuestStarSettingsBody) GetIsBrowserSourceAudioEnabled() bool
func (UpdateChannelGuestStarSettingsBody) GetIsModeratorSendLiveEnabled ¶
func (datatype UpdateChannelGuestStarSettingsBody) GetIsModeratorSendLiveEnabled() bool
func (UpdateChannelGuestStarSettingsBody) GetRegenerateBrowserSources ¶
func (datatype UpdateChannelGuestStarSettingsBody) GetRegenerateBrowserSources() bool
func (UpdateChannelGuestStarSettingsBody) GetSlotCount ¶
func (datatype UpdateChannelGuestStarSettingsBody) GetSlotCount() int32
type UpdateChannelGuestStarSettingsBodyGroupLayout ¶
type UpdateChannelGuestStarSettingsBodyGroupLayout string
UpdateChannelGuestStarSettingsBodyGroupLayout This setting determines how the guests within a session should be laid out within the browser source. Can be one of the following values:
* `TILED_LAYOUT`: All live guests are tiled within the browser source with the same size. * `SCREENSHARE_LAYOUT`: All live guests are tiled within the browser source with the same size. If there is an active screen share, it is sized larger than the other guests. * `HORIZONTAL_LAYOUT`: All live guests are arranged in a horizontal bar within the browser source * `VERTICAL_LAYOUT`: All live guests are arranged in a vertical bar within the browser source
const ( UpdateChannelGuestStarSettingsBodyGroupLayoutHORIZONTALLAYOUT UpdateChannelGuestStarSettingsBodyGroupLayout = "HORIZONTAL_LAYOUT" UpdateChannelGuestStarSettingsBodyGroupLayoutSCREENSHARELAYOUT UpdateChannelGuestStarSettingsBodyGroupLayout = "SCREENSHARE_LAYOUT" UpdateChannelGuestStarSettingsBodyGroupLayoutTILEDLAYOUT UpdateChannelGuestStarSettingsBodyGroupLayout = "TILED_LAYOUT" UpdateChannelGuestStarSettingsBodyGroupLayoutVERTICALLAYOUT UpdateChannelGuestStarSettingsBodyGroupLayout = "VERTICAL_LAYOUT" )
Defines values for UpdateChannelGuestStarSettingsBodyGroupLayout.
type UpdateChannelGuestStarSettingsHTTPResponse ¶
func ParseUpdateChannelGuestStarSettingsHTTPResponse ¶
func ParseUpdateChannelGuestStarSettingsHTTPResponse(rsp *http.Response) (*UpdateChannelGuestStarSettingsHTTPResponse, error)
ParseUpdateChannelGuestStarSettingsHTTPResponse parses an HTTP response from a UpdateChannelGuestStarSettingsWithResponse call
func (UpdateChannelGuestStarSettingsHTTPResponse) Status ¶
func (r UpdateChannelGuestStarSettingsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateChannelGuestStarSettingsHTTPResponse) StatusCode ¶
func (r UpdateChannelGuestStarSettingsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateChannelGuestStarSettingsJSONRequestBody ¶
type UpdateChannelGuestStarSettingsJSONRequestBody = UpdateChannelGuestStarSettingsBody
UpdateChannelGuestStarSettingsJSONRequestBody defines body for UpdateChannelGuestStarSettings for application/json ContentType.
type UpdateChannelGuestStarSettingsParams ¶
type UpdateChannelGuestStarSettingsParams struct { // BroadcasterId The ID of the broadcaster you want to update Guest Star settings for. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` }
UpdateChannelGuestStarSettingsParams defines parameters for UpdateChannelGuestStarSettings.
type UpdateChannelStreamScheduleHTTPResponse ¶
func ParseUpdateChannelStreamScheduleHTTPResponse ¶
func ParseUpdateChannelStreamScheduleHTTPResponse(rsp *http.Response) (*UpdateChannelStreamScheduleHTTPResponse, error)
ParseUpdateChannelStreamScheduleHTTPResponse parses an HTTP response from a UpdateChannelStreamScheduleWithResponse call
func (UpdateChannelStreamScheduleHTTPResponse) Status ¶
func (r UpdateChannelStreamScheduleHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateChannelStreamScheduleHTTPResponse) StatusCode ¶
func (r UpdateChannelStreamScheduleHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateChannelStreamScheduleParams ¶
type UpdateChannelStreamScheduleParams struct { // BroadcasterId The ID of the broadcaster whose schedule settings you want to update. The ID must match the user ID in the user access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // IsVacationEnabled A Boolean value that indicates whether the broadcaster has scheduled a vacation. Set to **true** to enable Vacation Mode and add vacation dates, or **false** to cancel a previously scheduled vacation. IsVacationEnabled *bool `form:"is_vacation_enabled,omitempty" json:"is_vacation_enabled,omitempty"` // VacationStartTime The UTC date and time of when the broadcaster’s vacation starts. Specify the date and time in RFC3339 format (for example, 2021-05-16T00:00:00Z). Required if _is\_vacation\_enabled_ is **true**. VacationStartTime *time.Time `form:"vacation_start_time,omitempty" json:"vacation_start_time,omitempty"` // VacationEndTime The UTC date and time of when the broadcaster’s vacation ends. Specify the date and time in RFC3339 format (for example, 2021-05-30T23:59:59Z). Required if _is\_vacation\_enabled_ is **true**. VacationEndTime *time.Time `form:"vacation_end_time,omitempty" json:"vacation_end_time,omitempty"` // Timezone The time zone that the broadcaster broadcasts from. Specify the time zone using [IANA time zone database](https://www.iana.org/time-zones) format (for example, America/New\_York). Required if _is\_vacation\_enabled_ is **true**. Timezone *string `form:"timezone,omitempty" json:"timezone,omitempty"` }
UpdateChannelStreamScheduleParams defines parameters for UpdateChannelStreamSchedule.
type UpdateChannelStreamScheduleSegmentBody ¶
type UpdateChannelStreamScheduleSegmentBody struct { // CategoryId The ID of the category that best represents the broadcast’s content. To get the category ID, use the [Search Categories](https://dev.twitch.tv/docs/api/reference#search-categories) endpoint. CategoryId *string `json:"category_id,omitempty"` // Duration The length of time, in minutes, that the broadcast is scheduled to run. The duration must be in the range 30 through 1380 (23 hours). Duration *string `json:"duration,omitempty"` // IsCanceled A Boolean value that indicates whether the broadcast is canceled. Set to **true** to cancel the segment. // // **NOTE**: For recurring segments, the API cancels the first segment after the current UTC date and time and not the specified segment (unless the specified segment is the next segment after the current UTC date and time). IsCanceled *bool `json:"is_canceled,omitempty"` // StartTime The date and time that the broadcast segment starts. Specify the date and time in RFC3339 format (for example, 2022-08-02T06:00:00Z). // // **NOTE**: Only partners and affiliates may update a broadcast’s start time and only for non-recurring segments. StartTime *time.Time `json:"start_time,omitempty"` // Timezone The time zone where the broadcast takes place. Specify the time zone using [IANA time zone database](https://www.iana.org/time-zones) format (for example, America/New\_York). Timezone *string `json:"timezone,omitempty"` // Title The broadcast’s title. The title may contain a maximum of 140 characters. Title *string `json:"title,omitempty"` }
UpdateChannelStreamScheduleSegmentBody defines model for UpdateChannelStreamScheduleSegmentBody.
func (UpdateChannelStreamScheduleSegmentBody) GetCategoryId ¶
func (datatype UpdateChannelStreamScheduleSegmentBody) GetCategoryId() string
func (UpdateChannelStreamScheduleSegmentBody) GetDuration ¶
func (datatype UpdateChannelStreamScheduleSegmentBody) GetDuration() string
func (UpdateChannelStreamScheduleSegmentBody) GetIsCanceled ¶
func (datatype UpdateChannelStreamScheduleSegmentBody) GetIsCanceled() bool
func (UpdateChannelStreamScheduleSegmentBody) GetStartTime ¶
func (datatype UpdateChannelStreamScheduleSegmentBody) GetStartTime() time.Time
func (UpdateChannelStreamScheduleSegmentBody) GetTimezone ¶
func (datatype UpdateChannelStreamScheduleSegmentBody) GetTimezone() string
func (UpdateChannelStreamScheduleSegmentBody) GetTitle ¶
func (datatype UpdateChannelStreamScheduleSegmentBody) GetTitle() string
type UpdateChannelStreamScheduleSegmentHTTPResponse ¶
type UpdateChannelStreamScheduleSegmentHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *UpdateChannelStreamScheduleSegmentResponse }
func ParseUpdateChannelStreamScheduleSegmentHTTPResponse ¶
func ParseUpdateChannelStreamScheduleSegmentHTTPResponse(rsp *http.Response) (*UpdateChannelStreamScheduleSegmentHTTPResponse, error)
ParseUpdateChannelStreamScheduleSegmentHTTPResponse parses an HTTP response from a UpdateChannelStreamScheduleSegmentWithResponse call
func (UpdateChannelStreamScheduleSegmentHTTPResponse) Status ¶
func (r UpdateChannelStreamScheduleSegmentHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateChannelStreamScheduleSegmentHTTPResponse) StatusCode ¶
func (r UpdateChannelStreamScheduleSegmentHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateChannelStreamScheduleSegmentJSONRequestBody ¶
type UpdateChannelStreamScheduleSegmentJSONRequestBody = UpdateChannelStreamScheduleSegmentBody
UpdateChannelStreamScheduleSegmentJSONRequestBody defines body for UpdateChannelStreamScheduleSegment for application/json ContentType.
type UpdateChannelStreamScheduleSegmentParams ¶
type UpdateChannelStreamScheduleSegmentParams struct { // BroadcasterId The ID of the broadcaster who owns the broadcast segment to update. This ID must match the user ID in the user access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // Id The ID of the broadcast segment to update. Id string `form:"id" json:"id"` }
UpdateChannelStreamScheduleSegmentParams defines parameters for UpdateChannelStreamScheduleSegment.
type UpdateChannelStreamScheduleSegmentResponse ¶
type UpdateChannelStreamScheduleSegmentResponse struct { // Data The broadcaster’s streaming scheduled. Data struct { // BroadcasterId The ID of the broadcaster that owns the broadcast schedule. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // Segments A list that contains the single broadcast segment that you updated. Segments []ChannelStreamScheduleSegment `json:"segments"` // Vacation The dates when the broadcaster is on vacation and not streaming. Is set to **null** if vacation mode is not enabled. Vacation struct { // EndTime The UTC date and time (in RFC3339 format) of when the broadcaster’s vacation ends. EndTime time.Time `json:"end_time"` // StartTime The UTC date and time (in RFC3339 format) of when the broadcaster’s vacation starts. StartTime time.Time `json:"start_time"` } `json:"vacation"` } `json:"data"` }
UpdateChannelStreamScheduleSegmentResponse defines model for UpdateChannelStreamScheduleSegmentResponse.
func (UpdateChannelStreamScheduleSegmentResponse) GetData ¶
func (datatype UpdateChannelStreamScheduleSegmentResponse) GetData() struct { // BroadcasterId The ID of the broadcaster that owns the broadcast schedule. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // Segments A list that contains the single broadcast segment that you updated. Segments []ChannelStreamScheduleSegment `json:"segments"` // Vacation The dates when the broadcaster is on vacation and not streaming. Is set to **null** if vacation mode is not enabled. Vacation struct { // EndTime The UTC date and time (in RFC3339 format) of when the broadcaster’s vacation ends. EndTime time.Time `json:"end_time"` // StartTime The UTC date and time (in RFC3339 format) of when the broadcaster’s vacation starts. StartTime time.Time `json:"start_time"` } `json:"vacation"` }
type UpdateChatSettingsBody ¶
type UpdateChatSettingsBody struct { // EmoteMode A Boolean value that determines whether chat messages must contain only emotes. // // Set to **true** if only emotes are allowed; otherwise, **false**. The default is **false**. EmoteMode *bool `json:"emote_mode,omitempty"` // FollowerMode A Boolean value that determines whether the broadcaster restricts the chat room to followers only. // // Set to **true** if the broadcaster restricts the chat room to followers only; otherwise, **false**. The default is **true**. // // To specify how long users must follow the broadcaster before being able to participate in the chat room, see the `follower_mode_duration` field. FollowerMode *bool `json:"follower_mode,omitempty"` // FollowerModeDuration The length of time, in minutes, that users must follow the broadcaster before being able to participate in the chat room. Set only if `follower_mode` is **true**. Possible values are: 0 (no restriction) through 129600 (3 months). The default is 0. FollowerModeDuration *int32 `json:"follower_mode_duration,omitempty"` // NonModeratorChatDelay A Boolean value that determines whether the broadcaster adds a short delay before chat messages appear in the chat room. This gives chat moderators and bots a chance to remove them before viewers can see the message. // // Set to **true** if the broadcaster applies a delay; otherwise, **false**. The default is **false**. // // To specify the length of the delay, see the `non_moderator_chat_delay_duration` field. NonModeratorChatDelay *bool `json:"non_moderator_chat_delay,omitempty"` // NonModeratorChatDelayDuration The amount of time, in seconds, that messages are delayed before appearing in chat. Set only if `non_moderator_chat_delay` is **true**. Possible values are: // // * 2 — 2 second delay (recommended) // * 4 — 4 second delay // * 6 — 6 second delay NonModeratorChatDelayDuration *UpdateChatSettingsBodyNonModeratorChatDelayDuration `json:"non_moderator_chat_delay_duration,omitempty"` // SlowMode A Boolean value that determines whether the broadcaster limits how often users in the chat room are allowed to send messages. Set to **true** if the broadcaster applies a wait period between messages; otherwise, **false**. The default is **false**. // // To specify the delay, see the `slow_mode_wait_time` field. SlowMode *bool `json:"slow_mode,omitempty"` // SlowModeWaitTime The amount of time, in seconds, that users must wait between sending messages. Set only if `slow_mode` is **true**. // // Possible values are: 3 (3 second delay) through 120 (2 minute delay). The default is 30 seconds. SlowModeWaitTime *int32 `json:"slow_mode_wait_time,omitempty"` // SubscriberMode A Boolean value that determines whether only users that subscribe to the broadcaster’s channel may talk in the chat room. // // Set to **true** if the broadcaster restricts the chat room to subscribers only; otherwise, **false**. The default is **false**. SubscriberMode *bool `json:"subscriber_mode,omitempty"` // UniqueChatMode A Boolean value that determines whether the broadcaster requires users to post only unique messages in the chat room. // // Set to **true** if the broadcaster allows only unique messages; otherwise, **false**. The default is **false**. UniqueChatMode *bool `json:"unique_chat_mode,omitempty"` }
UpdateChatSettingsBody defines model for UpdateChatSettingsBody.
func (UpdateChatSettingsBody) GetEmoteMode ¶
func (datatype UpdateChatSettingsBody) GetEmoteMode() bool
func (UpdateChatSettingsBody) GetFollowerMode ¶
func (datatype UpdateChatSettingsBody) GetFollowerMode() bool
func (UpdateChatSettingsBody) GetFollowerModeDuration ¶
func (datatype UpdateChatSettingsBody) GetFollowerModeDuration() int32
func (UpdateChatSettingsBody) GetNonModeratorChatDelay ¶
func (datatype UpdateChatSettingsBody) GetNonModeratorChatDelay() bool
func (UpdateChatSettingsBody) GetNonModeratorChatDelayDuration ¶
func (datatype UpdateChatSettingsBody) GetNonModeratorChatDelayDuration() UpdateChatSettingsBodyNonModeratorChatDelayDuration
func (UpdateChatSettingsBody) GetSlowMode ¶
func (datatype UpdateChatSettingsBody) GetSlowMode() bool
func (UpdateChatSettingsBody) GetSlowModeWaitTime ¶
func (datatype UpdateChatSettingsBody) GetSlowModeWaitTime() int32
func (UpdateChatSettingsBody) GetSubscriberMode ¶
func (datatype UpdateChatSettingsBody) GetSubscriberMode() bool
func (UpdateChatSettingsBody) GetUniqueChatMode ¶
func (datatype UpdateChatSettingsBody) GetUniqueChatMode() bool
type UpdateChatSettingsBodyNonModeratorChatDelayDuration ¶
type UpdateChatSettingsBodyNonModeratorChatDelayDuration int32
UpdateChatSettingsBodyNonModeratorChatDelayDuration The amount of time, in seconds, that messages are delayed before appearing in chat. Set only if `non_moderator_chat_delay` is **true**. Possible values are:
* 2 — 2 second delay (recommended) * 4 — 4 second delay * 6 — 6 second delay
const ( N2 UpdateChatSettingsBodyNonModeratorChatDelayDuration = 2 N4 UpdateChatSettingsBodyNonModeratorChatDelayDuration = 4 N6 UpdateChatSettingsBodyNonModeratorChatDelayDuration = 6 )
Defines values for UpdateChatSettingsBodyNonModeratorChatDelayDuration.
type UpdateChatSettingsHTTPResponse ¶
type UpdateChatSettingsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *UpdateChatSettingsResponse }
func ParseUpdateChatSettingsHTTPResponse ¶
func ParseUpdateChatSettingsHTTPResponse(rsp *http.Response) (*UpdateChatSettingsHTTPResponse, error)
ParseUpdateChatSettingsHTTPResponse parses an HTTP response from a UpdateChatSettingsWithResponse call
func (UpdateChatSettingsHTTPResponse) Status ¶
func (r UpdateChatSettingsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateChatSettingsHTTPResponse) StatusCode ¶
func (r UpdateChatSettingsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateChatSettingsJSONRequestBody ¶
type UpdateChatSettingsJSONRequestBody = UpdateChatSettingsBody
UpdateChatSettingsJSONRequestBody defines body for UpdateChatSettings for application/json ContentType.
type UpdateChatSettingsParams ¶
type UpdateChatSettingsParams struct { // BroadcasterId The ID of the broadcaster whose chat settings you want to update. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of a user that has permission to moderate the broadcaster’s chat room, or the broadcaster’s ID if they’re making the update. This ID must match the user ID in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` }
UpdateChatSettingsParams defines parameters for UpdateChatSettings.
type UpdateChatSettingsResponse ¶
type UpdateChatSettingsResponse struct { // Data The list of chat settings. The list contains a single object with all the settings. Data []ChatSettingsUpdated `json:"data"` }
UpdateChatSettingsResponse defines model for UpdateChatSettingsResponse.
func (UpdateChatSettingsResponse) GetData ¶
func (datatype UpdateChatSettingsResponse) GetData() []ChatSettingsUpdated
type UpdateConduitShardsBody ¶
type UpdateConduitShardsBody struct { // ConduitId Conduit ID. ConduitId string `json:"conduit_id"` // Shards List of shards to update. Shards []struct { // Id Shard ID. Id string `json:"id"` // Transport The transport details that you want Twitch to use when sending you notifications. Transport struct { // Callback The callback URL where the notifications are sent. The URL must use the HTTPS protocol and port 443\. See Processing an event.Specify this field only if method is set to webhook.NOTE: Redirects are not followed. Callback *string `json:"callback,omitempty"` // Method The transport method. Possible values are: // // * webhook // * websocket Method *UpdateConduitShardsBodyShardsTransportMethod `json:"method,omitempty"` // Secret The secret used to verify the signature. The secret must be an ASCII string that’s a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.Specify this field only if method is set to webhook. Secret *string `json:"secret,omitempty"` // SessionId An ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.Specify this field only if method is set to websocket. SessionId *string `json:"session_id,omitempty"` } `json:"transport"` } `json:"shards"` }
UpdateConduitShardsBody defines model for UpdateConduitShardsBody.
func (UpdateConduitShardsBody) GetConduitId ¶
func (datatype UpdateConduitShardsBody) GetConduitId() string
func (UpdateConduitShardsBody) GetShards ¶
func (datatype UpdateConduitShardsBody) GetShards() []struct { // Id Shard ID. Id string `json:"id"` // Transport The transport details that you want Twitch to use when sending you notifications. Transport struct { // Callback The callback URL where the notifications are sent. The URL must use the HTTPS protocol and port 443\. See Processing an event.Specify this field only if method is set to webhook.NOTE: Redirects are not followed. Callback *string `json:"callback,omitempty"` // Method The transport method. Possible values are: // // * webhook // * websocket Method *UpdateConduitShardsBodyShardsTransportMethod `json:"method,omitempty"` // Secret The secret used to verify the signature. The secret must be an ASCII string that’s a minimum of 10 characters long and a maximum of 100 characters long. For information about how the secret is used, see Verifying the event message.Specify this field only if method is set to webhook. Secret *string `json:"secret,omitempty"` // SessionId An ID that identifies the WebSocket to send notifications to. When you connect to EventSub using WebSockets, the server returns the ID in the Welcome message.Specify this field only if method is set to websocket. SessionId *string `json:"session_id,omitempty"` } `json:"transport"` }
type UpdateConduitShardsBodyShardsTransportMethod ¶
type UpdateConduitShardsBodyShardsTransportMethod string
UpdateConduitShardsBodyShardsTransportMethod The transport method. Possible values are:
* webhook * websocket
const ( UpdateConduitShardsBodyShardsTransportMethodWebhook UpdateConduitShardsBodyShardsTransportMethod = "webhook" UpdateConduitShardsBodyShardsTransportMethodWebsocket UpdateConduitShardsBodyShardsTransportMethod = "websocket" )
Defines values for UpdateConduitShardsBodyShardsTransportMethod.
type UpdateConduitShardsHTTPResponse ¶
type UpdateConduitShardsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON202 *UpdateConduitShardsResponse }
func ParseUpdateConduitShardsHTTPResponse ¶
func ParseUpdateConduitShardsHTTPResponse(rsp *http.Response) (*UpdateConduitShardsHTTPResponse, error)
ParseUpdateConduitShardsHTTPResponse parses an HTTP response from a UpdateConduitShardsWithResponse call
func (UpdateConduitShardsHTTPResponse) Status ¶
func (r UpdateConduitShardsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateConduitShardsHTTPResponse) StatusCode ¶
func (r UpdateConduitShardsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateConduitShardsJSONRequestBody ¶
type UpdateConduitShardsJSONRequestBody = UpdateConduitShardsBody
UpdateConduitShardsJSONRequestBody defines body for UpdateConduitShards for application/json ContentType.
type UpdateConduitShardsResponse ¶
type UpdateConduitShardsResponse struct { // Data List of successful shard updates. Data []struct { // Id Shard ID. Id string `json:"id"` // Status The shard status. The subscriber receives events only for enabled shards. Possible values are: // // * enabled — The shard is enabled. // * webhook\_callback\_verification\_pending — The shard is pending verification of the specified callback URL. // * webhook\_callback\_verification\_failed — The specified callback URL failed verification. // * notification\_failures\_exceeded — The notification delivery failure rate was too high. // * websocket\_disconnected — The client closed the connection. // * websocket\_failed\_ping\_pong — The client failed to respond to a ping message. // * websocket\_received\_inbound\_traffic — The client sent a non-pong message. Clients may only send pong messages (and only in response to a ping message). // * websocket\_internal\_error — The Twitch WebSocket server experienced an unexpected error. // * websocket\_network\_timeout — The Twitch WebSocket server timed out writing the message to the client. // * websocket\_network\_error — The Twitch WebSocket server experienced a network error writing the message to the client. // * websocket\_failed\_to\_reconnect - The client failed to reconnect to the Twitch WebSocket server within the required time after a Reconnect Message. Status UpdateConduitShardsResponseDataStatus `json:"status"` // Transport The transport details used to send the notifications. Transport struct { // Callback The callback URL where the notifications are sent. Included only if method is set to webhook. Callback *string `json:"callback,omitempty"` // ConnectedAt The UTC date and time that the WebSocket connection was established. Included only if method is set to websocket. ConnectedAt *time.Time `json:"connected_at,omitempty"` // DisconnectedAt The UTC date and time that the WebSocket connection was lost. Included only if method is set to websocket. DisconnectedAt *time.Time `json:"disconnected_at,omitempty"` // Method The transport method. Possible values are: // // * webhook // * websocket Method UpdateConduitShardsResponseDataTransportMethod `json:"method"` // SessionId An ID that identifies the WebSocket that notifications are sent to. Included only if method is set to websocket. SessionId *string `json:"session_id,omitempty"` } `json:"transport"` } `json:"data"` // Errors List of unsuccessful updates. Errors []struct { // Code Error codes used to represent a specific error condition while attempting to update shards. Code string `json:"code"` // Id Shard ID. Id string `json:"id"` // Message The error that occurred while updating the shard. Possible errors: // // * The length of the string in the secret field is not valid. // * The URL in the transport's callback field is not valid. The URL must use the HTTPS protocol and the 443 port number. // * The value specified in the method field is not valid. // * The callback field is required if you specify the webhook transport method. // * The session\_id field is required if you specify the WebSocket transport method. // * The websocket session is not connected. // * The shard id is outside of the conduit’s range. Message string `json:"message"` } `json:"errors"` }
UpdateConduitShardsResponse defines model for UpdateConduitShardsResponse.
func (UpdateConduitShardsResponse) GetData ¶
func (datatype UpdateConduitShardsResponse) GetData() []struct { // Id Shard ID. Id string `json:"id"` // Status The shard status. The subscriber receives events only for enabled shards. Possible values are: // // * enabled — The shard is enabled. // * webhook\_callback\_verification\_pending — The shard is pending verification of the specified callback URL. // * webhook\_callback\_verification\_failed — The specified callback URL failed verification. // * notification\_failures\_exceeded — The notification delivery failure rate was too high. // * websocket\_disconnected — The client closed the connection. // * websocket\_failed\_ping\_pong — The client failed to respond to a ping message. // * websocket\_received\_inbound\_traffic — The client sent a non-pong message. Clients may only send pong messages (and only in response to a ping message). // * websocket\_internal\_error — The Twitch WebSocket server experienced an unexpected error. // * websocket\_network\_timeout — The Twitch WebSocket server timed out writing the message to the client. // * websocket\_network\_error — The Twitch WebSocket server experienced a network error writing the message to the client. // * websocket\_failed\_to\_reconnect - The client failed to reconnect to the Twitch WebSocket server within the required time after a Reconnect Message. Status UpdateConduitShardsResponseDataStatus `json:"status"` // Transport The transport details used to send the notifications. Transport struct { // Callback The callback URL where the notifications are sent. Included only if method is set to webhook. Callback *string `json:"callback,omitempty"` // ConnectedAt The UTC date and time that the WebSocket connection was established. Included only if method is set to websocket. ConnectedAt *time.Time `json:"connected_at,omitempty"` // DisconnectedAt The UTC date and time that the WebSocket connection was lost. Included only if method is set to websocket. DisconnectedAt *time.Time `json:"disconnected_at,omitempty"` // Method The transport method. Possible values are: // // * webhook // * websocket Method UpdateConduitShardsResponseDataTransportMethod `json:"method"` // SessionId An ID that identifies the WebSocket that notifications are sent to. Included only if method is set to websocket. SessionId *string `json:"session_id,omitempty"` } `json:"transport"` }
func (UpdateConduitShardsResponse) GetErrors ¶
func (datatype UpdateConduitShardsResponse) GetErrors() []struct { // Code Error codes used to represent a specific error condition while attempting to update shards. Code string `json:"code"` // Id Shard ID. Id string `json:"id"` // Message The error that occurred while updating the shard. Possible errors: // // * The length of the string in the secret field is not valid. // * The URL in the transport's callback field is not valid. The URL must use the HTTPS protocol and the 443 port number. // * The value specified in the method field is not valid. // * The callback field is required if you specify the webhook transport method. // * The session\_id field is required if you specify the WebSocket transport method. // * The websocket session is not connected. // * The shard id is outside of the conduit’s range. Message string `json:"message"` }
type UpdateConduitShardsResponseDataStatus ¶
type UpdateConduitShardsResponseDataStatus string
UpdateConduitShardsResponseDataStatus The shard status. The subscriber receives events only for enabled shards. Possible values are:
* enabled — The shard is enabled. * webhook\_callback\_verification\_pending — The shard is pending verification of the specified callback URL. * webhook\_callback\_verification\_failed — The specified callback URL failed verification. * notification\_failures\_exceeded — The notification delivery failure rate was too high. * websocket\_disconnected — The client closed the connection. * websocket\_failed\_ping\_pong — The client failed to respond to a ping message. * websocket\_received\_inbound\_traffic — The client sent a non-pong message. Clients may only send pong messages (and only in response to a ping message). * websocket\_internal\_error — The Twitch WebSocket server experienced an unexpected error. * websocket\_network\_timeout — The Twitch WebSocket server timed out writing the message to the client. * websocket\_network\_error — The Twitch WebSocket server experienced a network error writing the message to the client. * websocket\_failed\_to\_reconnect - The client failed to reconnect to the Twitch WebSocket server within the required time after a Reconnect Message.
const ( UpdateConduitShardsResponseDataStatusEnabled UpdateConduitShardsResponseDataStatus = "enabled" UpdateConduitShardsResponseDataStatusNotificationFailuresExceeded UpdateConduitShardsResponseDataStatus = "notification_failures_exceeded" UpdateConduitShardsResponseDataStatusWebhookCallbackVerificationFailed UpdateConduitShardsResponseDataStatus = "webhook_callback_verification_failed" UpdateConduitShardsResponseDataStatusWebhookCallbackVerificationPending UpdateConduitShardsResponseDataStatus = "webhook_callback_verification_pending" UpdateConduitShardsResponseDataStatusWebsocketDisconnected UpdateConduitShardsResponseDataStatus = "websocket_disconnected" UpdateConduitShardsResponseDataStatusWebsocketFailedPingPong UpdateConduitShardsResponseDataStatus = "websocket_failed_ping_pong" UpdateConduitShardsResponseDataStatusWebsocketFailedToReconnect UpdateConduitShardsResponseDataStatus = "websocket_failed_to_reconnect" UpdateConduitShardsResponseDataStatusWebsocketInternalError UpdateConduitShardsResponseDataStatus = "websocket_internal_error" UpdateConduitShardsResponseDataStatusWebsocketNetworkError UpdateConduitShardsResponseDataStatus = "websocket_network_error" UpdateConduitShardsResponseDataStatusWebsocketNetworkTimeout UpdateConduitShardsResponseDataStatus = "websocket_network_timeout" UpdateConduitShardsResponseDataStatusWebsocketReceivedInboundTraffic UpdateConduitShardsResponseDataStatus = "websocket_received_inbound_traffic" )
Defines values for UpdateConduitShardsResponseDataStatus.
type UpdateConduitShardsResponseDataTransportMethod ¶
type UpdateConduitShardsResponseDataTransportMethod string
UpdateConduitShardsResponseDataTransportMethod The transport method. Possible values are:
* webhook * websocket
const ( Webhook UpdateConduitShardsResponseDataTransportMethod = "webhook" Websocket UpdateConduitShardsResponseDataTransportMethod = "websocket" )
Defines values for UpdateConduitShardsResponseDataTransportMethod.
type UpdateConduitsBody ¶
type UpdateConduitsBody struct { // Id Conduit ID. Id string `json:"id"` // ShardCount The new number of shards for this conduit. ShardCount int32 `json:"shard_count"` }
UpdateConduitsBody defines model for UpdateConduitsBody.
func (UpdateConduitsBody) GetId ¶
func (datatype UpdateConduitsBody) GetId() string
func (UpdateConduitsBody) GetShardCount ¶
func (datatype UpdateConduitsBody) GetShardCount() int32
type UpdateConduitsHTTPResponse ¶
type UpdateConduitsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *UpdateConduitsResponse }
func ParseUpdateConduitsHTTPResponse ¶
func ParseUpdateConduitsHTTPResponse(rsp *http.Response) (*UpdateConduitsHTTPResponse, error)
ParseUpdateConduitsHTTPResponse parses an HTTP response from a UpdateConduitsWithResponse call
func (UpdateConduitsHTTPResponse) Status ¶
func (r UpdateConduitsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateConduitsHTTPResponse) StatusCode ¶
func (r UpdateConduitsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateConduitsJSONRequestBody ¶
type UpdateConduitsJSONRequestBody = UpdateConduitsBody
UpdateConduitsJSONRequestBody defines body for UpdateConduits for application/json ContentType.
type UpdateConduitsResponse ¶
type UpdateConduitsResponse struct { // Data List of information about the client’s conduits. Data []struct { // Id Conduit ID. Id string `json:"id"` // ShardCount Number of shards associated with this conduit after the update. ShardCount int32 `json:"shard_count"` } `json:"data"` }
UpdateConduitsResponse defines model for UpdateConduitsResponse.
func (UpdateConduitsResponse) GetData ¶
func (datatype UpdateConduitsResponse) GetData() []struct { // Id Conduit ID. Id string `json:"id"` // ShardCount Number of shards associated with this conduit after the update. ShardCount int32 `json:"shard_count"` }
type UpdateCustomRewardBody ¶
type UpdateCustomRewardBody struct { // BackgroundColor The background color to use for the reward. Specify the color using Hex format (for example, \\#00E5CB). BackgroundColor *string `json:"background_color,omitempty"` // Cost The cost of the reward, in channel points. The minimum is 1 point. Cost *int64 `json:"cost,omitempty"` // GlobalCooldownSeconds The cooldown period, in seconds. Applied only if `is_global_cooldown_enabled` is **true**. The minimum value is 1; however, for it to be shown in the Twitch UX, the minimum value is 60. GlobalCooldownSeconds *int64 `json:"global_cooldown_seconds,omitempty"` // IsEnabled A Boolean value that indicates whether the reward is enabled. Set to **true** to enable the reward. Viewers see only enabled rewards. IsEnabled *bool `json:"is_enabled,omitempty"` // IsGlobalCooldownEnabled A Boolean value that determines whether to apply a cooldown period between redemptions. Set to **true** to apply a cooldown period. For the duration of the cooldown period, see `global_cooldown_seconds`. IsGlobalCooldownEnabled *bool `json:"is_global_cooldown_enabled,omitempty"` // IsMaxPerStreamEnabled A Boolean value that determines whether to limit the maximum number of redemptions allowed per live stream (see the `max_per_stream` field). Set to **true** to limit redemptions. IsMaxPerStreamEnabled *bool `json:"is_max_per_stream_enabled,omitempty"` // IsMaxPerUserPerStreamEnabled A Boolean value that determines whether to limit the maximum number of redemptions allowed per user per stream (see `max_per_user_per_stream`). The minimum value is 1\. Set to **true** to limit redemptions. IsMaxPerUserPerStreamEnabled *bool `json:"is_max_per_user_per_stream_enabled,omitempty"` // IsPaused A Boolean value that determines whether to pause the reward. Set to **true** to pause the reward. Viewers can’t redeem paused rewards.. IsPaused *bool `json:"is_paused,omitempty"` // IsUserInputRequired A Boolean value that determines whether users must enter information to redeem the reward. Set to **true** if user input is required. See the `prompt` field. IsUserInputRequired *bool `json:"is_user_input_required,omitempty"` // MaxPerStream The maximum number of redemptions allowed per live stream. Applied only if `is_max_per_stream_enabled` is **true**. The minimum value is 1. MaxPerStream *int64 `json:"max_per_stream,omitempty"` // MaxPerUserPerStream The maximum number of redemptions allowed per user per stream. Applied only if `is_max_per_user_per_stream_enabled` is **true**. MaxPerUserPerStream *int64 `json:"max_per_user_per_stream,omitempty"` // Prompt The prompt shown to the viewer when they redeem the reward. Specify a prompt if `is_user_input_required` is **true**. The prompt is limited to a maximum of 200 characters. Prompt *string `json:"prompt,omitempty"` // ShouldRedemptionsSkipRequestQueue A Boolean value that determines whether redemptions should be set to FULFILLED status immediately when a reward is redeemed. If **false**, status is set to UNFULFILLED and follows the normal request queue process. ShouldRedemptionsSkipRequestQueue *bool `json:"should_redemptions_skip_request_queue,omitempty"` // Title The reward’s title. The title may contain a maximum of 45 characters and it must be unique amongst all of the broadcaster’s custom rewards. Title *string `json:"title,omitempty"` }
UpdateCustomRewardBody defines model for UpdateCustomRewardBody.
func (UpdateCustomRewardBody) GetBackgroundColor ¶
func (datatype UpdateCustomRewardBody) GetBackgroundColor() string
func (UpdateCustomRewardBody) GetCost ¶
func (datatype UpdateCustomRewardBody) GetCost() int64
func (UpdateCustomRewardBody) GetGlobalCooldownSeconds ¶
func (datatype UpdateCustomRewardBody) GetGlobalCooldownSeconds() int64
func (UpdateCustomRewardBody) GetIsEnabled ¶
func (datatype UpdateCustomRewardBody) GetIsEnabled() bool
func (UpdateCustomRewardBody) GetIsGlobalCooldownEnabled ¶
func (datatype UpdateCustomRewardBody) GetIsGlobalCooldownEnabled() bool
func (UpdateCustomRewardBody) GetIsMaxPerStreamEnabled ¶
func (datatype UpdateCustomRewardBody) GetIsMaxPerStreamEnabled() bool
func (UpdateCustomRewardBody) GetIsMaxPerUserPerStreamEnabled ¶
func (datatype UpdateCustomRewardBody) GetIsMaxPerUserPerStreamEnabled() bool
func (UpdateCustomRewardBody) GetIsPaused ¶
func (datatype UpdateCustomRewardBody) GetIsPaused() bool
func (UpdateCustomRewardBody) GetIsUserInputRequired ¶
func (datatype UpdateCustomRewardBody) GetIsUserInputRequired() bool
func (UpdateCustomRewardBody) GetMaxPerStream ¶
func (datatype UpdateCustomRewardBody) GetMaxPerStream() int64
func (UpdateCustomRewardBody) GetMaxPerUserPerStream ¶
func (datatype UpdateCustomRewardBody) GetMaxPerUserPerStream() int64
func (UpdateCustomRewardBody) GetPrompt ¶
func (datatype UpdateCustomRewardBody) GetPrompt() string
func (UpdateCustomRewardBody) GetShouldRedemptionsSkipRequestQueue ¶
func (datatype UpdateCustomRewardBody) GetShouldRedemptionsSkipRequestQueue() bool
func (UpdateCustomRewardBody) GetTitle ¶
func (datatype UpdateCustomRewardBody) GetTitle() string
type UpdateCustomRewardHTTPResponse ¶
type UpdateCustomRewardHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *UpdateCustomRewardResponse }
func ParseUpdateCustomRewardHTTPResponse ¶
func ParseUpdateCustomRewardHTTPResponse(rsp *http.Response) (*UpdateCustomRewardHTTPResponse, error)
ParseUpdateCustomRewardHTTPResponse parses an HTTP response from a UpdateCustomRewardWithResponse call
func (UpdateCustomRewardHTTPResponse) Status ¶
func (r UpdateCustomRewardHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateCustomRewardHTTPResponse) StatusCode ¶
func (r UpdateCustomRewardHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateCustomRewardJSONRequestBody ¶
type UpdateCustomRewardJSONRequestBody = UpdateCustomRewardBody
UpdateCustomRewardJSONRequestBody defines body for UpdateCustomReward for application/json ContentType.
type UpdateCustomRewardParams ¶
type UpdateCustomRewardParams struct { // BroadcasterId The ID of the broadcaster that’s updating the reward. This ID must match the user ID found in the OAuth token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // Id The ID of the reward to update. Id string `form:"id" json:"id"` }
UpdateCustomRewardParams defines parameters for UpdateCustomReward.
type UpdateCustomRewardResponse ¶
type UpdateCustomRewardResponse struct { // Data The list contains the single reward that you updated. Data []CustomReward `json:"data"` }
UpdateCustomRewardResponse defines model for UpdateCustomRewardResponse.
func (UpdateCustomRewardResponse) GetData ¶
func (datatype UpdateCustomRewardResponse) GetData() []CustomReward
type UpdateDropsEntitlementsBody ¶
type UpdateDropsEntitlementsBody struct { // EntitlementIds A list of IDs that identify the entitlements to update. You may specify a maximum of 100 IDs. EntitlementIds *[]string `json:"entitlement_ids,omitempty"` // FulfillmentStatus The fulfillment status to set the entitlements to. Possible values are: // // * CLAIMED — The user claimed the benefit. // * FULFILLED — The developer granted the benefit that the user claimed. FulfillmentStatus *UpdateDropsEntitlementsBodyFulfillmentStatus `json:"fulfillment_status,omitempty"` }
UpdateDropsEntitlementsBody defines model for UpdateDropsEntitlementsBody.
func (UpdateDropsEntitlementsBody) GetEntitlementIds ¶
func (datatype UpdateDropsEntitlementsBody) GetEntitlementIds() []string
func (UpdateDropsEntitlementsBody) GetFulfillmentStatus ¶
func (datatype UpdateDropsEntitlementsBody) GetFulfillmentStatus() UpdateDropsEntitlementsBodyFulfillmentStatus
type UpdateDropsEntitlementsBodyFulfillmentStatus ¶
type UpdateDropsEntitlementsBodyFulfillmentStatus string
UpdateDropsEntitlementsBodyFulfillmentStatus The fulfillment status to set the entitlements to. Possible values are:
* CLAIMED — The user claimed the benefit. * FULFILLED — The developer granted the benefit that the user claimed.
const ( UpdateDropsEntitlementsBodyFulfillmentStatusCLAIMED UpdateDropsEntitlementsBodyFulfillmentStatus = "CLAIMED" UpdateDropsEntitlementsBodyFulfillmentStatusFULFILLED UpdateDropsEntitlementsBodyFulfillmentStatus = "FULFILLED" )
Defines values for UpdateDropsEntitlementsBodyFulfillmentStatus.
type UpdateDropsEntitlementsHTTPResponse ¶
type UpdateDropsEntitlementsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *UpdateDropsEntitlementsResponse }
func ParseUpdateDropsEntitlementsHTTPResponse ¶
func ParseUpdateDropsEntitlementsHTTPResponse(rsp *http.Response) (*UpdateDropsEntitlementsHTTPResponse, error)
ParseUpdateDropsEntitlementsHTTPResponse parses an HTTP response from a UpdateDropsEntitlementsWithResponse call
func (UpdateDropsEntitlementsHTTPResponse) Status ¶
func (r UpdateDropsEntitlementsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateDropsEntitlementsHTTPResponse) StatusCode ¶
func (r UpdateDropsEntitlementsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateDropsEntitlementsJSONRequestBody ¶
type UpdateDropsEntitlementsJSONRequestBody = UpdateDropsEntitlementsBody
UpdateDropsEntitlementsJSONRequestBody defines body for UpdateDropsEntitlements for application/json ContentType.
type UpdateDropsEntitlementsResponse ¶
type UpdateDropsEntitlementsResponse struct { // Data A list that indicates which entitlements were successfully updated and those that weren’t. Data []DropsEntitlementUpdated `json:"data"` }
UpdateDropsEntitlementsResponse defines model for UpdateDropsEntitlementsResponse.
func (UpdateDropsEntitlementsResponse) GetData ¶
func (datatype UpdateDropsEntitlementsResponse) GetData() []DropsEntitlementUpdated
type UpdateExtensionBitsProductBody ¶
type UpdateExtensionBitsProductBody struct { // Cost An object that contains the product's cost information. Cost struct { // Amount The product's price. Amount int32 `json:"amount"` // Type The type of currency. Possible values are: // // * bits — The minimum price is 1 and the maximum is 10000. Type UpdateExtensionBitsProductBodyCostType `json:"type"` } `json:"cost"` // DisplayName The product's name as displayed in the extension. The maximum length is 255 characters. DisplayName string `json:"display_name"` // Expiration The date and time, in RFC3339 format, when the product expires. If not set, the product does not expire. To disable the product, set the expiration date to a date in the past. Expiration *time.Time `json:"expiration,omitempty"` // InDevelopment A Boolean value that indicates whether the product is in development. Set to **true** if the product is in development and not available for public use. The default is **false**. InDevelopment *bool `json:"in_development,omitempty"` // IsBroadcast A Boolean value that determines whether Bits product purchase events are broadcast to all instances of the extension on a channel. The events are broadcast via the `onTransactionComplete` helper callback. The default is **false**. IsBroadcast *bool `json:"is_broadcast,omitempty"` // Sku The product's SKU. The SKU must be unique within an extension. The product's SKU cannot be changed. The SKU may contain only alphanumeric characters, dashes (-), underscores (\_), and periods (.) and is limited to a maximum of 255 characters. No spaces. Sku string `json:"sku"` }
UpdateExtensionBitsProductBody defines model for UpdateExtensionBitsProductBody.
func (UpdateExtensionBitsProductBody) GetCost ¶
func (datatype UpdateExtensionBitsProductBody) GetCost() struct { // Amount The product's price. Amount int32 `json:"amount"` // Type The type of currency. Possible values are: // // * bits — The minimum price is 1 and the maximum is 10000. Type UpdateExtensionBitsProductBodyCostType `json:"type"` }
func (UpdateExtensionBitsProductBody) GetDisplayName ¶
func (datatype UpdateExtensionBitsProductBody) GetDisplayName() string
func (UpdateExtensionBitsProductBody) GetExpiration ¶
func (datatype UpdateExtensionBitsProductBody) GetExpiration() time.Time
func (UpdateExtensionBitsProductBody) GetInDevelopment ¶
func (datatype UpdateExtensionBitsProductBody) GetInDevelopment() bool
func (UpdateExtensionBitsProductBody) GetIsBroadcast ¶
func (datatype UpdateExtensionBitsProductBody) GetIsBroadcast() bool
func (UpdateExtensionBitsProductBody) GetSku ¶
func (datatype UpdateExtensionBitsProductBody) GetSku() string
type UpdateExtensionBitsProductBodyCostType ¶
type UpdateExtensionBitsProductBodyCostType string
UpdateExtensionBitsProductBodyCostType The type of currency. Possible values are:
* bits — The minimum price is 1 and the maximum is 10000.
const (
Bits UpdateExtensionBitsProductBodyCostType = "bits"
)
Defines values for UpdateExtensionBitsProductBodyCostType.
type UpdateExtensionBitsProductHTTPResponse ¶
type UpdateExtensionBitsProductHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *UpdateExtensionBitsProductResponse }
func ParseUpdateExtensionBitsProductHTTPResponse ¶
func ParseUpdateExtensionBitsProductHTTPResponse(rsp *http.Response) (*UpdateExtensionBitsProductHTTPResponse, error)
ParseUpdateExtensionBitsProductHTTPResponse parses an HTTP response from a UpdateExtensionBitsProductWithResponse call
func (UpdateExtensionBitsProductHTTPResponse) Status ¶
func (r UpdateExtensionBitsProductHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateExtensionBitsProductHTTPResponse) StatusCode ¶
func (r UpdateExtensionBitsProductHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateExtensionBitsProductJSONRequestBody ¶
type UpdateExtensionBitsProductJSONRequestBody = UpdateExtensionBitsProductBody
UpdateExtensionBitsProductJSONRequestBody defines body for UpdateExtensionBitsProduct for application/json ContentType.
type UpdateExtensionBitsProductResponse ¶
type UpdateExtensionBitsProductResponse struct { // Data A list of Bits products that the extension created. The list is in ascending SKU order. The list is empty if the extension hasn't created any products or they're all expired or disabled. Data []ExtensionBitsProduct `json:"data"` }
UpdateExtensionBitsProductResponse defines model for UpdateExtensionBitsProductResponse.
func (UpdateExtensionBitsProductResponse) GetData ¶
func (datatype UpdateExtensionBitsProductResponse) GetData() []ExtensionBitsProduct
type UpdateGuestStarSlotHTTPResponse ¶
func ParseUpdateGuestStarSlotHTTPResponse ¶
func ParseUpdateGuestStarSlotHTTPResponse(rsp *http.Response) (*UpdateGuestStarSlotHTTPResponse, error)
ParseUpdateGuestStarSlotHTTPResponse parses an HTTP response from a UpdateGuestStarSlotWithResponse call
func (UpdateGuestStarSlotHTTPResponse) Status ¶
func (r UpdateGuestStarSlotHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateGuestStarSlotHTTPResponse) StatusCode ¶
func (r UpdateGuestStarSlotHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateGuestStarSlotParams ¶
type UpdateGuestStarSlotParams struct { // BroadcasterId The ID of the broadcaster running the Guest Star session. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s chat room. This ID must match the `user_id` in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` // SessionId The ID of the Guest Star session in which to update slot settings. SessionId string `form:"session_id" json:"session_id"` // SourceSlotId The slot assignment previously assigned to a user. SourceSlotId string `form:"source_slot_id" json:"source_slot_id"` // DestinationSlotId The slot to move this user assignment to. If the destination slot is occupied, the user assigned will be swapped into `source_slot_id`. DestinationSlotId *string `form:"destination_slot_id,omitempty" json:"destination_slot_id,omitempty"` }
UpdateGuestStarSlotParams defines parameters for UpdateGuestStarSlot.
type UpdateGuestStarSlotSettingsHTTPResponse ¶
func ParseUpdateGuestStarSlotSettingsHTTPResponse ¶
func ParseUpdateGuestStarSlotSettingsHTTPResponse(rsp *http.Response) (*UpdateGuestStarSlotSettingsHTTPResponse, error)
ParseUpdateGuestStarSlotSettingsHTTPResponse parses an HTTP response from a UpdateGuestStarSlotSettingsWithResponse call
func (UpdateGuestStarSlotSettingsHTTPResponse) Status ¶
func (r UpdateGuestStarSlotSettingsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateGuestStarSlotSettingsHTTPResponse) StatusCode ¶
func (r UpdateGuestStarSlotSettingsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateGuestStarSlotSettingsParams ¶
type UpdateGuestStarSlotSettingsParams struct { // BroadcasterId The ID of the broadcaster running the Guest Star session. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that has permission to moderate the broadcaster’s chat room. This ID must match the user ID in the user access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` // SessionId The ID of the Guest Star session in which to update a slot’s settings. SessionId string `form:"session_id" json:"session_id"` // SlotId The slot assignment that has previously been assigned to a user. SlotId string `form:"slot_id" json:"slot_id"` // IsAudioEnabled Flag indicating whether the slot is allowed to share their audio with the rest of the session. If false, the slot will be muted in any views containing the slot. IsAudioEnabled *bool `form:"is_audio_enabled,omitempty" json:"is_audio_enabled,omitempty"` // IsVideoEnabled Flag indicating whether the slot is allowed to share their video with the rest of the session. If false, the slot will have no video shared in any views containing the slot. IsVideoEnabled *bool `form:"is_video_enabled,omitempty" json:"is_video_enabled,omitempty"` // IsLive Flag indicating whether the user assigned to this slot is visible/can be heard from any public subscriptions. Generally, this determines whether or not the slot is enabled in any broadcasting software integrations. IsLive *bool `form:"is_live,omitempty" json:"is_live,omitempty"` // Volume Value from 0-100 that controls the audio volume for shared views containing the slot. Volume *int32 `form:"volume,omitempty" json:"volume,omitempty"` }
UpdateGuestStarSlotSettingsParams defines parameters for UpdateGuestStarSlotSettings.
type UpdateRedemptionStatusBody ¶
type UpdateRedemptionStatusBody struct { // Status The status to set the redemption to. Possible values are: // // * CANCELED // * FULFILLED // // Setting the status to CANCELED refunds the user’s channel points. Status UpdateRedemptionStatusBodyStatus `json:"status"` }
UpdateRedemptionStatusBody defines model for UpdateRedemptionStatusBody.
func (UpdateRedemptionStatusBody) GetStatus ¶
func (datatype UpdateRedemptionStatusBody) GetStatus() UpdateRedemptionStatusBodyStatus
type UpdateRedemptionStatusBodyStatus ¶
type UpdateRedemptionStatusBodyStatus string
UpdateRedemptionStatusBodyStatus The status to set the redemption to. Possible values are:
* CANCELED * FULFILLED
Setting the status to CANCELED refunds the user’s channel points.
const ( UpdateRedemptionStatusBodyStatusCANCELED UpdateRedemptionStatusBodyStatus = "CANCELED" UpdateRedemptionStatusBodyStatusFULFILLED UpdateRedemptionStatusBodyStatus = "FULFILLED" )
Defines values for UpdateRedemptionStatusBodyStatus.
type UpdateRedemptionStatusHTTPResponse ¶
type UpdateRedemptionStatusHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *UpdateRedemptionStatusResponse }
func ParseUpdateRedemptionStatusHTTPResponse ¶
func ParseUpdateRedemptionStatusHTTPResponse(rsp *http.Response) (*UpdateRedemptionStatusHTTPResponse, error)
ParseUpdateRedemptionStatusHTTPResponse parses an HTTP response from a UpdateRedemptionStatusWithResponse call
func (UpdateRedemptionStatusHTTPResponse) Status ¶
func (r UpdateRedemptionStatusHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateRedemptionStatusHTTPResponse) StatusCode ¶
func (r UpdateRedemptionStatusHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateRedemptionStatusJSONRequestBody ¶
type UpdateRedemptionStatusJSONRequestBody = UpdateRedemptionStatusBody
UpdateRedemptionStatusJSONRequestBody defines body for UpdateRedemptionStatus for application/json ContentType.
type UpdateRedemptionStatusParams ¶
type UpdateRedemptionStatusParams struct { // Id A list of IDs that identify the redemptions to update. To specify more than one ID, include this parameter for each redemption you want to update. For example, `id=1234&id=5678`. You may specify a maximum of 50 IDs. Id []string `form:"id" json:"id"` // BroadcasterId The ID of the broadcaster that’s updating the redemption. This ID must match the user ID in the user access token. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // RewardId The ID that identifies the reward that’s been redeemed. RewardId string `form:"reward_id" json:"reward_id"` }
UpdateRedemptionStatusParams defines parameters for UpdateRedemptionStatus.
type UpdateRedemptionStatusResponse ¶
type UpdateRedemptionStatusResponse struct { // Data The list contains the single redemption that you updated. Data []CustomRewardRedemption `json:"data"` }
UpdateRedemptionStatusResponse defines model for UpdateRedemptionStatusResponse.
func (UpdateRedemptionStatusResponse) GetData ¶
func (datatype UpdateRedemptionStatusResponse) GetData() []CustomRewardRedemption
type UpdateShieldModeStatusBody ¶
type UpdateShieldModeStatusBody struct { // IsActive A Boolean value that determines whether to activate Shield Mode. Set to **true** to activate Shield Mode; otherwise, **false** to deactivate Shield Mode. IsActive bool `json:"is_active"` }
UpdateShieldModeStatusBody defines model for UpdateShieldModeStatusBody.
func (UpdateShieldModeStatusBody) GetIsActive ¶
func (datatype UpdateShieldModeStatusBody) GetIsActive() bool
type UpdateShieldModeStatusHTTPResponse ¶
type UpdateShieldModeStatusHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *UpdateShieldModeStatusResponse }
func ParseUpdateShieldModeStatusHTTPResponse ¶
func ParseUpdateShieldModeStatusHTTPResponse(rsp *http.Response) (*UpdateShieldModeStatusHTTPResponse, error)
ParseUpdateShieldModeStatusHTTPResponse parses an HTTP response from a UpdateShieldModeStatusWithResponse call
func (UpdateShieldModeStatusHTTPResponse) Status ¶
func (r UpdateShieldModeStatusHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateShieldModeStatusHTTPResponse) StatusCode ¶
func (r UpdateShieldModeStatusHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateShieldModeStatusJSONRequestBody ¶
type UpdateShieldModeStatusJSONRequestBody = UpdateShieldModeStatusBody
UpdateShieldModeStatusJSONRequestBody defines body for UpdateShieldModeStatus for application/json ContentType.
type UpdateShieldModeStatusParams ¶
type UpdateShieldModeStatusParams struct { // BroadcasterId The ID of the broadcaster whose Shield Mode you want to activate or deactivate. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the broadcaster or a user that is one of the broadcaster’s moderators. This ID must match the user ID in the access token. ModeratorId string `form:"moderator_id" json:"moderator_id"` }
UpdateShieldModeStatusParams defines parameters for UpdateShieldModeStatus.
type UpdateShieldModeStatusResponse ¶
type UpdateShieldModeStatusResponse struct { // Data A list that contains a single object with the broadcaster’s updated Shield Mode status. Data []struct { // IsActive A Boolean value that determines whether Shield Mode is active. Is **true** if Shield Mode is active; otherwise, **false**. IsActive bool `json:"is_active"` // LastActivatedAt The UTC timestamp (in RFC3339 format) of when Shield Mode was last activated. LastActivatedAt time.Time `json:"last_activated_at"` // ModeratorId An ID that identifies the moderator that last activated Shield Mode. ModeratorId string `json:"moderator_id"` // ModeratorLogin The moderator’s login name. ModeratorLogin string `json:"moderator_login"` // ModeratorName The moderator’s display name. ModeratorName string `json:"moderator_name"` } `json:"data"` }
UpdateShieldModeStatusResponse defines model for UpdateShieldModeStatusResponse.
func (UpdateShieldModeStatusResponse) GetData ¶
func (datatype UpdateShieldModeStatusResponse) GetData() []struct { // IsActive A Boolean value that determines whether Shield Mode is active. Is **true** if Shield Mode is active; otherwise, **false**. IsActive bool `json:"is_active"` // LastActivatedAt The UTC timestamp (in RFC3339 format) of when Shield Mode was last activated. LastActivatedAt time.Time `json:"last_activated_at"` // ModeratorId An ID that identifies the moderator that last activated Shield Mode. ModeratorId string `json:"moderator_id"` // ModeratorLogin The moderator’s login name. ModeratorLogin string `json:"moderator_login"` // ModeratorName The moderator’s display name. ModeratorName string `json:"moderator_name"` }
type UpdateUserChatColorHTTPResponse ¶
func ParseUpdateUserChatColorHTTPResponse ¶
func ParseUpdateUserChatColorHTTPResponse(rsp *http.Response) (*UpdateUserChatColorHTTPResponse, error)
ParseUpdateUserChatColorHTTPResponse parses an HTTP response from a UpdateUserChatColorWithResponse call
func (UpdateUserChatColorHTTPResponse) Status ¶
func (r UpdateUserChatColorHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateUserChatColorHTTPResponse) StatusCode ¶
func (r UpdateUserChatColorHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateUserChatColorParams ¶
type UpdateUserChatColorParams struct { // UserId The ID of the user whose chat color you want to update. This ID must match the user ID in the access token. UserId string `form:"user_id" json:"user_id"` // Color The color to use for the user's name in chat. All users may specify one of the following named color values. // // * blue // * blue\_violet // * cadet\_blue // * chocolate // * coral // * dodger\_blue // * firebrick // * golden\_rod // * green // * hot\_pink // * orange\_red // * red // * sea\_green // * spring\_green // * yellow\_green // // Turbo and Prime users may specify a named color or a Hex color code like #9146FF. If you use a Hex color code, remember to URL encode it. Color UpdateUserChatColorParamsColor `form:"color" json:"color"` }
UpdateUserChatColorParams defines parameters for UpdateUserChatColor.
type UpdateUserChatColorParamsColor ¶
type UpdateUserChatColorParamsColor string
UpdateUserChatColorParamsColor defines parameters for UpdateUserChatColor.
const ( UpdateUserChatColorParamsColorBlue UpdateUserChatColorParamsColor = "blue" UpdateUserChatColorParamsColorBlueViolet UpdateUserChatColorParamsColor = "blue_violet" UpdateUserChatColorParamsColorCadetBlue UpdateUserChatColorParamsColor = "cadet_blue" UpdateUserChatColorParamsColorChocolate UpdateUserChatColorParamsColor = "chocolate" UpdateUserChatColorParamsColorCoral UpdateUserChatColorParamsColor = "coral" UpdateUserChatColorParamsColorDodgerBlue UpdateUserChatColorParamsColor = "dodger_blue" UpdateUserChatColorParamsColorFirebrick UpdateUserChatColorParamsColor = "firebrick" UpdateUserChatColorParamsColorGoldenRod UpdateUserChatColorParamsColor = "golden_rod" UpdateUserChatColorParamsColorGreen UpdateUserChatColorParamsColor = "green" UpdateUserChatColorParamsColorHotPink UpdateUserChatColorParamsColor = "hot_pink" UpdateUserChatColorParamsColorOrangeRed UpdateUserChatColorParamsColor = "orange_red" UpdateUserChatColorParamsColorRed UpdateUserChatColorParamsColor = "red" UpdateUserChatColorParamsColorSeaGreen UpdateUserChatColorParamsColor = "sea_green" UpdateUserChatColorParamsColorSpringGreen UpdateUserChatColorParamsColor = "spring_green" UpdateUserChatColorParamsColorYellowGreen UpdateUserChatColorParamsColor = "yellow_green" )
Defines values for UpdateUserChatColorParamsColor.
type UpdateUserExtensionsBody ¶
type UpdateUserExtensionsBody struct { // Data The extensions to update. The `data` field is a dictionary of extension types. The dictionary’s possible keys are: panel, overlay, or component. The key’s value is a dictionary of extensions. // // For the extension’s dictionary, the key is a sequential number beginning with 1\. For panel and overlay extensions, the key’s value is an object that contains the following fields: `active` (true/false), `id` (the extension’s ID), and `version` (the extension’s version). // // For component extensions, the key’s value includes the above fields plus the `x` and `y` fields, which identify the coordinate where the extension is placed. Data struct { Component *map[string]UserExtensionComponentUpdate `json:"component,omitempty"` Overlay *map[string]UserExtensionOverlayUpdate `json:"overlay,omitempty"` Panel *map[string]UserExtensionPanelUpdate `json:"panel,omitempty"` } `json:"data"` }
UpdateUserExtensionsBody defines model for UpdateUserExtensionsBody.
func (UpdateUserExtensionsBody) GetData ¶
func (datatype UpdateUserExtensionsBody) GetData() struct { Component *map[string]UserExtensionComponentUpdate `json:"component,omitempty"` Overlay *map[string]UserExtensionOverlayUpdate `json:"overlay,omitempty"` Panel *map[string]UserExtensionPanelUpdate `json:"panel,omitempty"` }
type UpdateUserExtensionsHTTPResponse ¶
type UpdateUserExtensionsHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *UpdateUserExtensionsResponse }
func ParseUpdateUserExtensionsHTTPResponse ¶
func ParseUpdateUserExtensionsHTTPResponse(rsp *http.Response) (*UpdateUserExtensionsHTTPResponse, error)
ParseUpdateUserExtensionsHTTPResponse parses an HTTP response from a UpdateUserExtensionsWithResponse call
func (UpdateUserExtensionsHTTPResponse) Status ¶
func (r UpdateUserExtensionsHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateUserExtensionsHTTPResponse) StatusCode ¶
func (r UpdateUserExtensionsHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateUserExtensionsJSONRequestBody ¶
type UpdateUserExtensionsJSONRequestBody = UpdateUserExtensionsBody
UpdateUserExtensionsJSONRequestBody defines body for UpdateUserExtensions for application/json ContentType.
type UpdateUserExtensionsResponse ¶
type UpdateUserExtensionsResponse struct { // Data The extensions that the broadcaster updated. Data struct { // Component A dictionary that contains the data for a video-component extension. The dictionary’s key is a sequential number beginning with 1\. The following fields contain the component’s data for each key. Component map[string]UserExtensionComponent `json:"component"` // Overlay A dictionary that contains the data for a video-overlay extension. The dictionary’s key is a sequential number beginning with 1\. The following fields contain the overlay’s data for each key. Overlay map[string]UserExtensionOverlay `json:"overlay"` // Panel A dictionary that contains the data for a panel extension. The dictionary’s key is a sequential number beginning with 1\. The following fields contain the panel’s data for each key. Panel map[string]UserExtensionPanel `json:"panel"` } `json:"data"` }
UpdateUserExtensionsResponse defines model for UpdateUserExtensionsResponse.
func (UpdateUserExtensionsResponse) GetData ¶
func (datatype UpdateUserExtensionsResponse) GetData() struct { // Component A dictionary that contains the data for a video-component extension. The dictionary’s key is a sequential number beginning with 1\. The following fields contain the component’s data for each key. Component map[string]UserExtensionComponent `json:"component"` // Overlay A dictionary that contains the data for a video-overlay extension. The dictionary’s key is a sequential number beginning with 1\. The following fields contain the overlay’s data for each key. Overlay map[string]UserExtensionOverlay `json:"overlay"` // Panel A dictionary that contains the data for a panel extension. The dictionary’s key is a sequential number beginning with 1\. The following fields contain the panel’s data for each key. Panel map[string]UserExtensionPanel `json:"panel"` }
type UpdateUserHTTPResponse ¶
type UpdateUserHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *UpdateUserResponse }
func ParseUpdateUserHTTPResponse ¶
func ParseUpdateUserHTTPResponse(rsp *http.Response) (*UpdateUserHTTPResponse, error)
ParseUpdateUserHTTPResponse parses an HTTP response from a UpdateUserWithResponse call
func (UpdateUserHTTPResponse) Status ¶
func (r UpdateUserHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateUserHTTPResponse) StatusCode ¶
func (r UpdateUserHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateUserParams ¶
type UpdateUserParams struct { // Description The string to update the channel’s description to. The description is limited to a maximum of 300 characters. // // To remove the description, specify this parameter but don’t set it’s value (for example, `?description=`). Description *string `form:"description,omitempty" json:"description,omitempty"` }
UpdateUserParams defines parameters for UpdateUser.
type UpdateUserResponse ¶
type UpdateUserResponse struct { // Data A list contains the single user that you updated. Data []User `json:"data"` }
UpdateUserResponse defines model for UpdateUserResponse.
func (UpdateUserResponse) GetData ¶
func (datatype UpdateUserResponse) GetData() []User
type User ¶
type User struct { // BroadcasterType The type of broadcaster. Possible values are: // // * affiliate — An [affiliate broadcaster](https://help.twitch.tv/s/article/joining-the-affiliate-program) // * partner — A [partner broadcaster](https://help.twitch.tv/s/article/partner-program-overview) // * "" — A normal broadcaster BroadcasterType UserBroadcasterType `json:"broadcaster_type"` // CreatedAt The UTC date and time that the user's account was created. The timestamp is in RFC3339 format. CreatedAt time.Time `json:"created_at"` // Description The user's description of their channel. Description string `json:"description"` // DisplayName The user's display name. DisplayName string `json:"display_name"` // Email The user's verified email address. The object includes this field only if the user access token includes the **user:read:email** scope. // // If the request contains more than one user, only the user associated with the access token that provided consent will include an email address — the email address for all other users will be empty. Email *string `json:"email,omitempty"` // Id An ID that identifies the user. Id string `json:"id"` // Login The user's login name. Login string `json:"login"` // OfflineImageUrl A URL to the user's offline image. OfflineImageUrl string `json:"offline_image_url"` // ProfileImageUrl A URL to the user's profile image. ProfileImageUrl string `json:"profile_image_url"` // Type The type of user. Possible values are: // // * admin — Twitch administrator // * global\_mod // * staff — Twitch staff // * "" — Normal user Type UserType `json:"type"` // ViewCount The number of times the user's channel has been viewed. // // **NOTE**: This field has been deprecated (see [Get Users API endpoint – "view\_count" deprecation](https://discuss.dev.twitch.tv/t/get-users-api-endpoint-view-count-deprecation/37777)). Any data in this field is not valid and should not be used. ViewCount int32 `json:"view_count"` }
User defines model for User.
func (User) GetBroadcasterType ¶
func (datatype User) GetBroadcasterType() UserBroadcasterType
func (User) GetCreatedAt ¶
func (User) GetDescription ¶
func (User) GetDisplayName ¶
func (User) GetOfflineImageUrl ¶
func (User) GetProfileImageUrl ¶
func (User) GetViewCount ¶
type UserBlockList ¶
type UserBlockList struct { // DisplayName The blocked user’s display name. DisplayName string `json:"display_name"` // UserId An ID that identifies the blocked user. UserId string `json:"user_id"` // UserLogin The blocked user’s login name. UserLogin string `json:"user_login"` }
UserBlockList defines model for UserBlockList.
func (UserBlockList) GetDisplayName ¶
func (datatype UserBlockList) GetDisplayName() string
func (UserBlockList) GetUserId ¶
func (datatype UserBlockList) GetUserId() string
func (UserBlockList) GetUserLogin ¶
func (datatype UserBlockList) GetUserLogin() string
type UserBroadcasterType ¶
type UserBroadcasterType string
UserBroadcasterType The type of broadcaster. Possible values are:
* affiliate — An [affiliate broadcaster](https://help.twitch.tv/s/article/joining-the-affiliate-program) * partner — A [partner broadcaster](https://help.twitch.tv/s/article/partner-program-overview) * "" — A normal broadcaster
const ( UserBroadcasterTypeAffiliate UserBroadcasterType = "affiliate" UserBroadcasterTypeEmpty UserBroadcasterType = "" UserBroadcasterTypePartner UserBroadcasterType = "partner" )
Defines values for UserBroadcasterType.
type UserChatColor ¶
type UserChatColor struct { // Color The Hex color code that the user uses in chat for their name. If the user hasn’t specified a color in their settings, the string is empty. Color string `json:"color"` // UserId An ID that uniquely identifies the user. UserId string `json:"user_id"` // UserLogin The user’s login name. UserLogin string `json:"user_login"` // UserName The user’s display name. UserName string `json:"user_name"` }
UserChatColor defines model for UserChatColor.
func (UserChatColor) GetColor ¶
func (datatype UserChatColor) GetColor() string
func (UserChatColor) GetUserId ¶
func (datatype UserChatColor) GetUserId() string
func (UserChatColor) GetUserLogin ¶
func (datatype UserChatColor) GetUserLogin() string
func (UserChatColor) GetUserName ¶
func (datatype UserChatColor) GetUserName() string
type UserExtension ¶
type UserExtension struct { // CanActivate A Boolean value that determines whether the extension is configured and can be activated. Is **true** if the extension is configured and can be activated. CanActivate bool `json:"can_activate"` // Id An ID that identifies the extension. Id string `json:"id"` // Name The extension's name. Name string `json:"name"` // Type The extension types that you can activate for this extension. Possible values are: // // * component // * mobile // * overlay // * panel Type []UserExtensionType `json:"type"` // Version The extension's version. Version string `json:"version"` }
UserExtension defines model for UserExtension.
func (UserExtension) GetCanActivate ¶
func (datatype UserExtension) GetCanActivate() bool
func (UserExtension) GetId ¶
func (datatype UserExtension) GetId() string
func (UserExtension) GetName ¶
func (datatype UserExtension) GetName() string
func (UserExtension) GetType ¶
func (datatype UserExtension) GetType() []UserExtensionType
func (UserExtension) GetVersion ¶
func (datatype UserExtension) GetVersion() string
type UserExtensionComponent ¶
type UserExtensionComponent struct { // Active A Boolean value that determines the extension’s activation state. If **false**, the user has not configured a component extension. Active bool `json:"active"` // Id An ID that identifies the extension. Id *string `json:"id,omitempty"` // Name The extension’s name. Name *string `json:"name,omitempty"` // Version The extension’s version. Version *string `json:"version,omitempty"` // X The x-coordinate where the extension is placed. X *int32 `json:"x,omitempty"` // Y The y-coordinate where the extension is placed. Y *int32 `json:"y,omitempty"` }
UserExtensionComponent defines model for UserExtensionComponent.
func (UserExtensionComponent) GetActive ¶
func (datatype UserExtensionComponent) GetActive() bool
func (UserExtensionComponent) GetId ¶
func (datatype UserExtensionComponent) GetId() string
func (UserExtensionComponent) GetName ¶
func (datatype UserExtensionComponent) GetName() string
func (UserExtensionComponent) GetVersion ¶
func (datatype UserExtensionComponent) GetVersion() string
func (UserExtensionComponent) GetX ¶
func (datatype UserExtensionComponent) GetX() int32
func (UserExtensionComponent) GetY ¶
func (datatype UserExtensionComponent) GetY() int32
type UserExtensionComponentUpdate ¶
type UserExtensionComponentUpdate struct { // Active A Boolean value that determines the extension’s activation state. If **false**, the user has not configured a component extension. Active bool `json:"active"` // Id An ID that identifies the extension. Id *string `json:"id,omitempty"` // Version The extension’s version. Version *string `json:"version,omitempty"` // X The x-coordinate where the extension is placed. X *int32 `json:"x,omitempty"` // Y The y-coordinate where the extension is placed. Y *int32 `json:"y,omitempty"` }
UserExtensionComponentUpdate defines model for UserExtensionComponentUpdate.
func (UserExtensionComponentUpdate) GetActive ¶
func (datatype UserExtensionComponentUpdate) GetActive() bool
func (UserExtensionComponentUpdate) GetId ¶
func (datatype UserExtensionComponentUpdate) GetId() string
func (UserExtensionComponentUpdate) GetVersion ¶
func (datatype UserExtensionComponentUpdate) GetVersion() string
func (UserExtensionComponentUpdate) GetX ¶
func (datatype UserExtensionComponentUpdate) GetX() int32
func (UserExtensionComponentUpdate) GetY ¶
func (datatype UserExtensionComponentUpdate) GetY() int32
type UserExtensionOverlay ¶
type UserExtensionOverlay struct { // Active A Boolean value that determines the extension’s activation state. If **false**, the user has not configured an overlay extension. Active bool `json:"active"` // Id An ID that identifies the extension. Id *string `json:"id,omitempty"` // Name The extension’s name. Name *string `json:"name,omitempty"` // Version The extension’s version. Version *string `json:"version,omitempty"` }
UserExtensionOverlay defines model for UserExtensionOverlay.
func (UserExtensionOverlay) GetActive ¶
func (datatype UserExtensionOverlay) GetActive() bool
func (UserExtensionOverlay) GetId ¶
func (datatype UserExtensionOverlay) GetId() string
func (UserExtensionOverlay) GetName ¶
func (datatype UserExtensionOverlay) GetName() string
func (UserExtensionOverlay) GetVersion ¶
func (datatype UserExtensionOverlay) GetVersion() string
type UserExtensionOverlayUpdate ¶
type UserExtensionOverlayUpdate struct { // Active A Boolean value that determines the extension’s activation state. If **false**, the user has not configured an overlay extension. Active bool `json:"active"` // Id An ID that identifies the extension. Id *string `json:"id,omitempty"` // Version The extension’s version. Version *string `json:"version,omitempty"` }
UserExtensionOverlayUpdate defines model for UserExtensionOverlayUpdate.
func (UserExtensionOverlayUpdate) GetActive ¶
func (datatype UserExtensionOverlayUpdate) GetActive() bool
func (UserExtensionOverlayUpdate) GetId ¶
func (datatype UserExtensionOverlayUpdate) GetId() string
func (UserExtensionOverlayUpdate) GetVersion ¶
func (datatype UserExtensionOverlayUpdate) GetVersion() string
type UserExtensionPanel ¶
type UserExtensionPanel struct { // Active A Boolean value that determines the extension’s activation state. If **false**, the user has not configured a panel extension. Active bool `json:"active"` // Id An ID that identifies the extension. Id *string `json:"id,omitempty"` // Name The extension’s name. Name *string `json:"name,omitempty"` // Version The extension’s version. Version *string `json:"version,omitempty"` }
UserExtensionPanel defines model for UserExtensionPanel.
func (UserExtensionPanel) GetActive ¶
func (datatype UserExtensionPanel) GetActive() bool
func (UserExtensionPanel) GetId ¶
func (datatype UserExtensionPanel) GetId() string
func (UserExtensionPanel) GetName ¶
func (datatype UserExtensionPanel) GetName() string
func (UserExtensionPanel) GetVersion ¶
func (datatype UserExtensionPanel) GetVersion() string
type UserExtensionPanelUpdate ¶
type UserExtensionPanelUpdate struct { // Active A Boolean value that determines the extension’s activation state. If **false**, the user has not configured a panel extension. Active bool `json:"active"` // Id An ID that identifies the extension. Id *string `json:"id,omitempty"` // Version The extension’s version. Version *string `json:"version,omitempty"` }
UserExtensionPanelUpdate defines model for UserExtensionPanelUpdate.
func (UserExtensionPanelUpdate) GetActive ¶
func (datatype UserExtensionPanelUpdate) GetActive() bool
func (UserExtensionPanelUpdate) GetId ¶
func (datatype UserExtensionPanelUpdate) GetId() string
func (UserExtensionPanelUpdate) GetVersion ¶
func (datatype UserExtensionPanelUpdate) GetVersion() string
type UserExtensionType ¶
type UserExtensionType string
UserExtensionType defines model for UserExtension.Type.
const ( Component UserExtensionType = "component" Mobile UserExtensionType = "mobile" Overlay UserExtensionType = "overlay" Panel UserExtensionType = "panel" )
Defines values for UserExtensionType.
type UserModerator ¶
type UserModerator struct { // UserId The ID of the user that has permission to moderate the broadcaster’s channel. UserId string `json:"user_id"` // UserLogin The user’s login name. UserLogin string `json:"user_login"` // UserName The user’s display name. UserName string `json:"user_name"` }
UserModerator defines model for UserModerator.
func (UserModerator) GetUserId ¶
func (datatype UserModerator) GetUserId() string
func (UserModerator) GetUserLogin ¶
func (datatype UserModerator) GetUserLogin() string
func (UserModerator) GetUserName ¶
func (datatype UserModerator) GetUserName() string
type UserSubscription ¶
type UserSubscription struct { // BroadcasterId An ID that identifies the broadcaster. BroadcasterId string `json:"broadcaster_id"` // BroadcasterLogin The broadcaster’s login name. BroadcasterLogin string `json:"broadcaster_login"` // BroadcasterName The broadcaster’s display name. BroadcasterName string `json:"broadcaster_name"` // GifterId The ID of the user that gifted the subscription. The object includes this field only if `is_gift` is **true**. GifterId *string `json:"gifter_id,omitempty"` // GifterLogin The gifter’s login name. The object includes this field only if `is_gift` is **true**. GifterLogin *string `json:"gifter_login,omitempty"` // GifterName The gifter’s display name. The object includes this field only if `is_gift` is **true**. GifterName *string `json:"gifter_name,omitempty"` // IsGift A Boolean value that determines whether the subscription is a gift subscription. Is **true** if the subscription was gifted. IsGift bool `json:"is_gift"` // Tier The type of subscription. Possible values are: // // * 1000 — Tier 1 // * 2000 — Tier 2 // * 3000 — Tier 3 Tier UserSubscriptionTier `json:"tier"` }
UserSubscription defines model for UserSubscription.
func (UserSubscription) GetBroadcasterId ¶
func (datatype UserSubscription) GetBroadcasterId() string
func (UserSubscription) GetBroadcasterLogin ¶
func (datatype UserSubscription) GetBroadcasterLogin() string
func (UserSubscription) GetBroadcasterName ¶
func (datatype UserSubscription) GetBroadcasterName() string
func (UserSubscription) GetGifterId ¶
func (datatype UserSubscription) GetGifterId() string
func (UserSubscription) GetGifterLogin ¶
func (datatype UserSubscription) GetGifterLogin() string
func (UserSubscription) GetGifterName ¶
func (datatype UserSubscription) GetGifterName() string
func (UserSubscription) GetIsGift ¶
func (datatype UserSubscription) GetIsGift() bool
func (UserSubscription) GetTier ¶
func (datatype UserSubscription) GetTier() UserSubscriptionTier
type UserSubscriptionTier ¶
type UserSubscriptionTier string
UserSubscriptionTier The type of subscription. Possible values are:
* 1000 — Tier 1 * 2000 — Tier 2 * 3000 — Tier 3
const ( N1000 UserSubscriptionTier = "1000" N2000 UserSubscriptionTier = "2000" N3000 UserSubscriptionTier = "3000" )
Defines values for UserSubscriptionTier.
type UserType ¶
type UserType string
UserType The type of user. Possible values are:
* admin — Twitch administrator * global\_mod * staff — Twitch staff * "" — Normal user
type UserVip ¶
type UserVip struct { // UserId An ID that uniquely identifies the VIP user. UserId string `json:"user_id"` // UserLogin The user’s login name. UserLogin string `json:"user_login"` // UserName The user’s display name. UserName string `json:"user_name"` }
UserVip defines model for UserVip.
func (UserVip) GetUserLogin ¶
func (UserVip) GetUserName ¶
type Video ¶
type Video struct { // CreatedAt The date and time, in UTC, of when the video was created. The timestamp is in RFC3339 format. CreatedAt time.Time `json:"created_at"` // Description The video's description. Description string `json:"description"` // Duration The video's length in ISO 8601 duration format. For example, 3m21s represents 3 minutes, 21 seconds. Duration string `json:"duration"` // Id An ID that identifies the video. Id string `json:"id"` // Language The ISO 639-1 two-letter language code that the video was broadcast in. For example, the language code is DE if the video was broadcast in German. For a list of supported languages, see [Supported Stream Language](https://help.twitch.tv/s/article/languages-on-twitch#streamlang). The language value is "other" if the video was broadcast in a language not in the list of supported languages. Language string `json:"language"` // MutedSegments The segments that Twitch Audio Recognition muted; otherwise, **null**. MutedSegments *[]struct { // Duration The duration of the muted segment, in seconds. Duration int32 `json:"duration"` // Offset The offset, in seconds, from the beginning of the video to where the muted segment begins. Offset int32 `json:"offset"` } `json:"muted_segments"` // PublishedAt The date and time, in UTC, of when the video was published. The timestamp is in RFC3339 format. PublishedAt time.Time `json:"published_at"` // StreamId The ID of the stream that the video originated from if the video's type is "archive;" otherwise, **null**. StreamId *string `json:"stream_id"` // ThumbnailUrl A URL to a thumbnail image of the video. Before using the URL, you must replace the `%{width}` and `%{height}` placeholders with the width and height of the thumbnail you want returned. Due to current limitations, `${width}` must be 320 and `${height}` must be 180. ThumbnailUrl string `json:"thumbnail_url"` // Title The video's title. Title string `json:"title"` // Type The video's type. Possible values are: // // * archive — An on-demand video (VOD) of one of the broadcaster's past streams. // * highlight — A highlight reel of one of the broadcaster's past streams. See [Creating Highlights](https://help.twitch.tv/s/article/creating-highlights-and-stream-markers). // * upload — A video that the broadcaster uploaded to their video library. See Upload under [Video Producer](https://help.twitch.tv/s/article/video-on-demand?language=en%5FUS#videoproducer). Type VideoType `json:"type"` // Url The video's URL. Url string `json:"url"` // UserId The ID of the broadcaster that owns the video. UserId string `json:"user_id"` // UserLogin The broadcaster's login name. UserLogin string `json:"user_login"` // UserName The broadcaster's display name. UserName string `json:"user_name"` // ViewCount The number of times that users have watched the video. ViewCount int32 `json:"view_count"` // Viewable The video's viewable state. Always set to **public**. Viewable string `json:"viewable"` }
Video defines model for Video.
func (Video) GetCreatedAt ¶
func (Video) GetDescription ¶
func (Video) GetDuration ¶
func (Video) GetLanguage ¶
func (Video) GetMutedSegments ¶
func (Video) GetPublishedAt ¶
func (Video) GetStreamId ¶
func (Video) GetThumbnailUrl ¶
func (Video) GetUserLogin ¶
func (Video) GetUserName ¶
func (Video) GetViewCount ¶
func (Video) GetViewable ¶
type VideoType ¶
type VideoType string
VideoType The video's type. Possible values are:
* archive — An on-demand video (VOD) of one of the broadcaster's past streams. * highlight — A highlight reel of one of the broadcaster's past streams. See [Creating Highlights](https://help.twitch.tv/s/article/creating-highlights-and-stream-markers). * upload — A video that the broadcaster uploaded to their video library. See Upload under [Video Producer](https://help.twitch.tv/s/article/video-on-demand?language=en%5FUS#videoproducer).
type WarnChatUserBody ¶
type WarnChatUserBody struct { // Data A list that contains information about the warning. Data struct { // Reason A custom reason for the warning. **Max 500 chars.** Reason string `json:"reason"` // UserId The ID of the twitch user to be warned. UserId string `json:"user_id"` } `json:"data"` }
WarnChatUserBody defines model for WarnChatUserBody.
func (WarnChatUserBody) GetData ¶
func (datatype WarnChatUserBody) GetData() struct { // Reason A custom reason for the warning. **Max 500 chars.** Reason string `json:"reason"` // UserId The ID of the twitch user to be warned. UserId string `json:"user_id"` }
type WarnChatUserHTTPResponse ¶
type WarnChatUserHTTPResponse struct { Body []byte HTTPResponse *http.Response JSON200 *WarnChatUserResponse }
func ParseWarnChatUserHTTPResponse ¶
func ParseWarnChatUserHTTPResponse(rsp *http.Response) (*WarnChatUserHTTPResponse, error)
ParseWarnChatUserHTTPResponse parses an HTTP response from a WarnChatUserWithResponse call
func (WarnChatUserHTTPResponse) Status ¶
func (r WarnChatUserHTTPResponse) Status() string
Status returns HTTPResponse.Status
func (WarnChatUserHTTPResponse) StatusCode ¶
func (r WarnChatUserHTTPResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type WarnChatUserJSONRequestBody ¶
type WarnChatUserJSONRequestBody = WarnChatUserBody
WarnChatUserJSONRequestBody defines body for WarnChatUser for application/json ContentType.
type WarnChatUserParams ¶
type WarnChatUserParams struct { // BroadcasterId The ID of the channel in which the warning will take effect. BroadcasterId string `form:"broadcaster_id" json:"broadcaster_id"` // ModeratorId The ID of the twitch user who requested the warning. ModeratorId string `form:"moderator_id" json:"moderator_id"` }
WarnChatUserParams defines parameters for WarnChatUser.
type WarnChatUserResponse ¶
type WarnChatUserResponse struct { // Data A list that contains information about the warning. Data []struct { // BroadcasterId The ID of the channel in which the warning will take effect. BroadcasterId string `json:"broadcaster_id"` // ModeratorId The ID of the user who applied the warning. ModeratorId string `json:"moderator_id"` // Reason The reason provided for warning. Reason string `json:"reason"` // UserId The ID of the warned user. UserId string `json:"user_id"` } `json:"data"` }
WarnChatUserResponse defines model for WarnChatUserResponse.
func (WarnChatUserResponse) GetData ¶
func (datatype WarnChatUserResponse) GetData() []struct { // BroadcasterId The ID of the channel in which the warning will take effect. BroadcasterId string `json:"broadcaster_id"` // ModeratorId The ID of the user who applied the warning. ModeratorId string `json:"moderator_id"` // Reason The reason provided for warning. Reason string `json:"reason"` // UserId The ID of the warned user. UserId string `json:"user_id"` }