Documentation ¶
Index ¶
- Variables
- type Session
- func (S *Session) AddBlockedTerm(bcastId, modId, text string) *helixResp
- func (S *Session) AddChannelModerator(bcastId, userId string) *helixResp
- func (S *Session) AddChannelVIP(bcastId, userId string) *helixResp
- func (S *Session) BanUser(bcastId, modId string, opts ...moderationOpt) *helixResp
- func (S *Session) BlockUser(targetUserId string, opts ...usersOpt) *helixResp
- func (S *Session) CancelRaid(bcastId string) *helixResp
- func (S *Session) CheckAutoModStatus(bcastId string, opts ...moderationOpt) *helixResp
- func (S *Session) CheckUserSubscription(bcastId, userId string) *helixResp
- func (S *Session) CreateChannelStreamScheduleSegment(bcastId string, opts ...scheduleOpt) *helixResp
- func (S *Session) CreateClip(bcastId string, hasDelay bool) *helixResp
- func (S *Session) CreateCustomRewards(bcastId string, opts ...chanPointsOpt) *helixResp
- func (S *Session) CreateEventSubSubscription(opts ...eventSubOpt) *helixResp
- func (S *Session) CreateExtensionSecret(extId string, delay int) *helixResp
- func (S *Session) CreatePoll(bcastId string, opts ...pollsOption) *helixResp
- func (S *Session) CreatePrediction(bcastId string, opts ...predictionsOption) *helixResp
- func (S *Session) CreateStreamMarker(userId, desc string) *helixResp
- func (S *Session) DeleteChannelStreamScheduleSegment(bcastId, segId string) *helixResp
- func (S *Session) DeleteChatMessages(bcastId, modId, messId string) *helixResp
- func (S *Session) DeleteCustomReward(bCastId, id string) *helixResp
- func (S *Session) DeleteEventSubSubscription(id string) *helixResp
- func (S *Session) DeleteVideos(opts ...videosOpt) *helixResp
- func (S *Session) Do(method string, url string, body io.Reader) *helixResp
- func (S *Session) EndPoll(bcastId, id, status string) *helixResp
- func (S *Session) EndPrediction(bcastId string, opts ...predictionsOption) *helixResp
- func (S *Session) GetAllStreamTags(opts ...tagsOpt) *helixResp
- func (S *Session) GetAutoModSettings(bcastId, modId string) *helixResp
- func (S *Session) GetBannedUsers(bcastId string, opts ...moderationOpt) *helixResp
- func (S *Session) GetBitsLeaderboard(opts ...bitsOption) *helixResp
- func (S *Session) GetBlockedTerms(bcastId, modId string, opts ...moderationOpt) *helixResp
- func (S *Session) GetBroadcasterSubscriptions(bcastId string, opts ...subsOpt) *helixResp
- func (S *Session) GetChannelChatBadges(bcastId string) *helixResp
- func (S *Session) GetChannelEditors(bcastId string) *helixResp
- func (S *Session) GetChannelEmotes(bcastId string) *helixResp
- func (S *Session) GetChannelFollowers(bcastId string, opts ...channelsOpt) *helixResp
- func (S *Session) GetChannelICalendar(bcastId string) *helixResp
- func (S *Session) GetChannelInformation(bcastIds ...string) *helixResp
- func (S *Session) GetChannelStreamSchedule(bcastId string, opts ...scheduleOpt) *helixResp
- func (S *Session) GetChannelTeams(bcastId string) *helixResp
- func (S *Session) GetCharityCampaign(bcastId string) *helixResp
- func (S *Session) GetCharityCampaignDonations(bcastId string, opts ...charityOpt) *helixResp
- func (S *Session) GetChatSettings(bcastId string, opts ...chatOpt) *helixResp
- func (S *Session) GetChatters(bcastId, modId string, opts ...chatOpt) *helixResp
- func (S *Session) GetCheermotes(bcastId string) *helixResp
- func (S *Session) GetClips(opts ...clipsOpt) *helixResp
- func (S *Session) GetCreatorGoals(bcastId string) *helixResp
- func (S *Session) GetCustomReward(bCastId, onlyManRewards string, ids ...string) *helixResp
- func (S *Session) GetCustomRewardRedemption(bcastId string, opts ...chanPointsOpt) *helixResp
- func (S *Session) GetDropsEntitlements(opts ...entitlementsOpt) *helixResp
- func (S *Session) GetEmoteSets(emoteSetIds ...string) *helixResp
- func (S *Session) GetEventSubSubscriptions(opts ...eventSubOpt) *helixResp
- func (S *Session) GetExtensionAnalytics(opts ...analyticsOpt) *helixResp
- func (S *Session) GetExtensionBitsProducts(includeAll bool) *helixResp
- func (S *Session) GetExtensionConfigurationSegment(opts ...extensionOpt) *helixResp
- func (S *Session) GetExtensionLiveChannels(extId, after string, first int) *helixResp
- func (S *Session) GetExtensionSecrets() *helixResp
- func (S *Session) GetExtensionTransactions(opts ...bitsOption) *helixResp
- func (S *Session) GetExtensions(extId, extVer string) *helixResp
- func (S *Session) GetFollowedChannels(userId string, opts ...channelsOpt) *helixResp
- func (S *Session) GetFollowedStreams(userId string, opts ...streamsOpt) *helixResp
- func (S *Session) GetGameAnalytics(opts ...analyticsOpt) *helixResp
- func (S *Session) GetGames(opts ...gamesOption) *helixResp
- func (S *Session) GetGlobalChatBadges() *helixResp
- func (S *Session) GetGlobalEmotes() *helixResp
- func (S *Session) GetHypeTrainEvents(bcastId string, opts ...hypeTrnOpt) *helixResp
- func (S *Session) GetModerators(bcastId string, opts ...moderationOpt) *helixResp
- func (S *Session) GetPolls(bcastId string, opts ...pollsOption) *helixResp
- func (S *Session) GetPredictions(bcastId string, opts ...predictionsOption) *helixResp
- func (S *Session) GetReleasedExtensions(extId, extVer string) *helixResp
- func (S *Session) GetShieldModeStatus(bcastId, modId string) *helixResp
- func (S *Session) GetSoundtrackCurrentTrack(bcastId string) *helixResp
- func (S *Session) GetSoundtrackPlaylist(id string, opts ...musicOpt) *helixResp
- func (S *Session) GetSoundtrackPlaylists(opts ...musicOpt) *helixResp
- func (S *Session) GetStreamKey(bcasterId string) *helixResp
- func (S *Session) GetStreamMarkers(opts ...streamsOpt) *helixResp
- func (S *Session) GetStreamTags(bcastId string) *helixResp
- func (S *Session) GetStreams(opts ...streamsOpt) *helixResp
- func (S *Session) GetTeams(opts ...teamsOpt) *helixResp
- func (S *Session) GetTopGames(opts ...gamesOption) *helixResp
- func (S *Session) GetUserActiveExtensions(opts ...usersOpt) *helixResp
- func (S *Session) GetUserBlockList(bcastId string, opts ...usersOpt) *helixResp
- func (S *Session) GetUserChatColor(userIds ...string) *helixResp
- func (S *Session) GetUserExtensions() *helixResp
- func (S *Session) GetUsers(opts ...usersOpt) *helixResp
- func (S *Session) GetUsersFollows(opts ...usersOpt) *helixResp
- func (S *Session) GetVIPs(bcastId string, opts ...moderationOpt) *helixResp
- func (S *Session) GetVideos(opts ...videosOpt) *helixResp
- func (S *Session) HasScope(scope string) bool
- func (S *Session) Identity() string
- func (S *Session) Load(ctx context.Context) bool
- func (S *Session) ManageHeldAutoModMessages(userId, msgId, action string) *helixResp
- func (S *Session) ModifyChannelInformation(bcastrId string, opts ...channelsOpt) *helixResp
- func (S *Session) RemoveBlockedTerm(bcastId, modId, id string) *helixResp
- func (S *Session) RemoveChannelModerator(bcastId, userId string) *helixResp
- func (S *Session) RemoveChannelVIP(bcastId, userId string) *helixResp
- func (S *Session) Save() error
- func (S *Session) SearchCategories(query string, opts ...searchOption) *helixResp
- func (S *Session) SearchChannels(query string, opts ...searchOption) *helixResp
- func (S *Session) SendChatAnnouncement(bcastId, modId string, opts ...chatOpt) *helixResp
- func (S *Session) SendExtensionChatMessage(bcastId string, opts ...extensionOpt) *helixResp
- func (S *Session) SendExtensionPubSubMessage(opts ...extensionOpt) *helixResp
- func (S *Session) SendShoutout(frmBcastId, toBcastId, modId string) *helixResp
- func (S *Session) SendWhisper(frmUsrId, toUsrId, mess string) *helixResp
- func (S *Session) SetExtensionConfigurationSegment(opts ...extensionOpt) *helixResp
- func (S *Session) SetExtensionRequiredConfiguration(bcastId string, opts ...extensionOpt) *helixResp
- func (S *Session) StartCommercial(bcastId string, length int) *helixResp
- func (S *Session) StartRaid(frmBcastId, toBcastId string) *helixResp
- func (S *Session) UnbanUser(bcastId, modId, userId string) *helixResp
- func (S *Session) UnblockUser(targetUserId string) *helixResp
- func (S *Session) UpdateAutoModSettings(opts ...moderationOpt) *helixResp
- func (S *Session) UpdateChannelStreamSchedule(bcastId string, opts ...scheduleOpt) *helixResp
- func (S *Session) UpdateChannelStreamScheduleSegment(bcastId, id string, opts ...scheduleOpt) *helixResp
- func (S *Session) UpdateChatSettings(bcastId, modId string, opts ...chatOpt) *helixResp
- func (S *Session) UpdateCustomReward(bcastId, id string, opts ...chanPointsOpt) *helixResp
- func (S *Session) UpdateDropsEntitlements(opts ...entitlementsOpt) *helixResp
- func (S *Session) UpdateExtensionBitsProduct(opts ...extensionOpt) *helixResp
- func (S *Session) UpdateRedemptionStatus(bcastId, rewardId, status string, ids ...string) *helixResp
- func (S *Session) UpdateShieldModeStatus(bcastId, modId string, active bool) *helixResp
- func (S *Session) UpdateUser(description string) *helixResp
- func (S *Session) UpdateUserChatColor(userId, color string) *helixResp
- func (S *Session) UpdateUserExtensions(opts ...usersOpt) *helixResp
Constants ¶
This section is empty.
Variables ¶
var AnaOpts *analyticsOpts
var BitsOpts *bitsOptions
var ChanPointsOpts *chanPointsOpts
var ChansOpts *channelsOpts
var ChrtyOpts *charityOpts
var ChtOpts *chatOpts
var ClpsOpts *clipsOpts
var EntOpts *entitlementsOpts
var EventSubOpts *eventSubOpts
var ExtOpts *extensionOpts
var GamesOpt *gamesOptions
var HypeTrnOpts *hypeTrnOpts
var ModOpts *moderationOpts
var MusicOpts *musicOpts
var PollOpts *pollsOptions
var PredOpts *predictionsOptions
var SchdOpts *scheduleOpts
var SrchOpts *searchOptions
var StrmOpts *streamsOpts
var SubsOpts *subsOpts
var TagsOpts *tagsOpts
var TeamsOpts *teamsOpts
var UsrOpts *usersOpts
var VidOpts *videosOpts
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { AuthConfig oauth2.Config AuthTime time.Time AuthToken oauth2.Token Tag string // contains filtered or unexported fields }
Session
func NewSession ¶
NewSession
func (*Session) AddBlockedTerm ¶
AddBlockedTerm
func (*Session) AddChannelModerator ¶
AddChannelModerator
func (*Session) AddChannelVIP ¶
AddChannelVIP
func (*Session) CheckAutoModStatus ¶
CheckAutoModStatus
func (*Session) CheckUserSubscription ¶
CheckUserSubscription
func (*Session) CreateChannelStreamScheduleSegment ¶
func (S *Session) CreateChannelStreamScheduleSegment(bcastId string, opts ...scheduleOpt) *helixResp
CreateChannelStreamScheduleSegment
func (*Session) CreateClip ¶
func (*Session) CreateCustomRewards ¶
CreateCustomRewards
func (*Session) CreateEventSubSubscription ¶
func (S *Session) CreateEventSubSubscription(opts ...eventSubOpt) *helixResp
CreateEventSubSubscription
func (*Session) CreateExtensionSecret ¶
CreateExtensionSecret
func (*Session) CreatePoll ¶
CreatePoll
func (*Session) CreatePrediction ¶
CreatePrediction
func (*Session) CreateStreamMarker ¶
CreateStreamMarker
func (*Session) DeleteChannelStreamScheduleSegment ¶
DeleteChannelStreamScheduleSegment
func (*Session) DeleteChatMessages ¶
DeleteChatMessages
func (*Session) DeleteCustomReward ¶
DeleteCustomReward
func (*Session) DeleteEventSubSubscription ¶
DeleteEventSubSubscription
func (*Session) DeleteVideos ¶
func (S *Session) DeleteVideos(opts ...videosOpt) *helixResp
DeleteVideos
func (*Session) Do ¶
Do forms a request from the provided inputs, adds any needed Headers, then calls the client's Do() with the assembled request, returning a new helixResp.
func (*Session) EndPrediction ¶
EndPrediction
func (*Session) GetAllStreamTags ¶
func (S *Session) GetAllStreamTags(opts ...tagsOpt) *helixResp
GetAllStreamTags
func (*Session) GetAutoModSettings ¶
GetAutoModSettings
func (*Session) GetBannedUsers ¶
GetBannedUsers
func (*Session) GetBitsLeaderboard ¶
func (S *Session) GetBitsLeaderboard(opts ...bitsOption) *helixResp
GetBitsLeaderboard
func (*Session) GetBlockedTerms ¶
GetBlockedTerms
func (*Session) GetBroadcasterSubscriptions ¶
GetBroadcasterSubscriptions
func (*Session) GetChannelChatBadges ¶
GetChannelChatBadges
func (*Session) GetChannelEditors ¶
GetChannelEditors
func (*Session) GetChannelEmotes ¶
GetChannelEmotes
func (*Session) GetChannelFollowers ¶
GetChannelFollowers
func (*Session) GetChannelICalendar ¶
GetChannelICalendar
func (*Session) GetChannelInformation ¶
GetChannelInformation
func (*Session) GetChannelStreamSchedule ¶
GetChannelStreamSchedule
func (*Session) GetChannelTeams ¶
GetChannelTeams
func (*Session) GetCharityCampaign ¶
GetCharityCampaign
func (*Session) GetCharityCampaignDonations ¶
GetCharityCampaignDonations
func (*Session) GetChatSettings ¶
GetChatSettings
func (*Session) GetChatters ¶
GetChatters
func (*Session) GetCheermotes ¶
GetCheermotes
func (*Session) GetCreatorGoals ¶
GetCreatorGoals
func (*Session) GetCustomReward ¶
GetCustomReward
func (*Session) GetCustomRewardRedemption ¶
GetCustomRewardRedemption
func (*Session) GetDropsEntitlements ¶
func (S *Session) GetDropsEntitlements(opts ...entitlementsOpt) *helixResp
GetDropsEntitlements
func (*Session) GetEmoteSets ¶
GetEmoteSets
func (*Session) GetEventSubSubscriptions ¶
func (S *Session) GetEventSubSubscriptions(opts ...eventSubOpt) *helixResp
GetEventSubSubscriptions
func (*Session) GetExtensionAnalytics ¶
func (S *Session) GetExtensionAnalytics(opts ...analyticsOpt) *helixResp
GetExtensionAnalytics
func (*Session) GetExtensionBitsProducts ¶
GetExtensionBitsProducts
func (*Session) GetExtensionConfigurationSegment ¶
func (S *Session) GetExtensionConfigurationSegment(opts ...extensionOpt) *helixResp
GetExtensionConfigurationSegment
func (*Session) GetExtensionLiveChannels ¶
GetExtensionLiveChannels
func (*Session) GetExtensionSecrets ¶
func (S *Session) GetExtensionSecrets() *helixResp
GetExtensionSecrets
func (*Session) GetExtensionTransactions ¶
func (S *Session) GetExtensionTransactions(opts ...bitsOption) *helixResp
GetExtensionTransactions
func (*Session) GetExtensions ¶
GetExtensions
func (*Session) GetFollowedChannels ¶
GetFollowedChannels
func (*Session) GetFollowedStreams ¶
GetFollowedStreams
func (*Session) GetGameAnalytics ¶
func (S *Session) GetGameAnalytics(opts ...analyticsOpt) *helixResp
GetGameAnalytics
func (*Session) GetGlobalChatBadges ¶
func (S *Session) GetGlobalChatBadges() *helixResp
GetGlobalChatBadges
func (*Session) GetHypeTrainEvents ¶
GetHypeTrainEvents
func (*Session) GetModerators ¶
GetModerators
func (*Session) GetPredictions ¶
GetPredictions
func (*Session) GetReleasedExtensions ¶
GetReleasedExtensions
func (*Session) GetShieldModeStatus ¶
GetShieldModeStatus
func (*Session) GetSoundtrackCurrentTrack ¶
GetSoundtrackCurrentTrack
func (*Session) GetSoundtrackPlaylist ¶
GetSoundtrackPlaylist
func (*Session) GetSoundtrackPlaylists ¶
func (S *Session) GetSoundtrackPlaylists(opts ...musicOpt) *helixResp
GetSoundtrackPlaylists
func (*Session) GetStreamKey ¶
GetStreamKey
func (*Session) GetStreamMarkers ¶
func (S *Session) GetStreamMarkers(opts ...streamsOpt) *helixResp
GetStreamMarkers
func (*Session) GetStreamTags ¶
GetStreamTags
func (*Session) GetTopGames ¶
func (S *Session) GetTopGames(opts ...gamesOption) *helixResp
GetTopGames
func (*Session) GetUserActiveExtensions ¶
func (S *Session) GetUserActiveExtensions(opts ...usersOpt) *helixResp
GetUserActiveExtensions
func (*Session) GetUserBlockList ¶
GetUserBlockList
func (*Session) GetUserChatColor ¶
GetUserChatColor
func (*Session) GetUserExtensions ¶
func (S *Session) GetUserExtensions() *helixResp
GetUserExtensions
func (*Session) GetUsersFollows ¶
func (S *Session) GetUsersFollows(opts ...usersOpt) *helixResp
GetUsersFollows Deprecation: This endpoint is deprecated and will be decommissioned on August 3, 2023. Access to this endpoint is limited to client IDs that have called the endpoint on or before February 17, 2023.
func (*Session) HasScope ¶
HasScope checks if the current Session (authorized id/token) has been granted the given scope.
func (*Session) Identity ¶
Identity returns any relevant information we have about the authenticated user. Currently a place-holder waiting to be implemented.
func (*Session) ManageHeldAutoModMessages ¶
ManageHeldAutoModMessages
func (*Session) ModifyChannelInformation ¶
ModifyChannelInformation
func (*Session) RemoveBlockedTerm ¶
RemoveBlockedTerm
func (*Session) RemoveChannelModerator ¶
RemoveChannelModerator
func (*Session) RemoveChannelVIP ¶
RemoveChannelVIP
func (*Session) Save ¶
Save writes the current session to a gob file in the user's cache directory. The authed user's client id and a label of the user's chosing will be used for the file name. Ex. 'TheLabel-z9b0<TheClientId>uuurgq4fffn2o'
func (*Session) SearchCategories ¶
SearchCategories
func (*Session) SearchChannels ¶
SearchChannels
func (*Session) SendChatAnnouncement ¶
SendChatAnnouncement
func (*Session) SendExtensionChatMessage ¶
SendExtensionChatMessage
func (*Session) SendExtensionPubSubMessage ¶
func (S *Session) SendExtensionPubSubMessage(opts ...extensionOpt) *helixResp
SendExtensionPubSubMessage
func (*Session) SendShoutout ¶
SendShoutout
func (*Session) SendWhisper ¶
SendWhisper
func (*Session) SetExtensionConfigurationSegment ¶
func (S *Session) SetExtensionConfigurationSegment(opts ...extensionOpt) *helixResp
SetExtensionConfigurationSegment
func (*Session) SetExtensionRequiredConfiguration ¶
func (S *Session) SetExtensionRequiredConfiguration(bcastId string, opts ...extensionOpt) *helixResp
SetExtensionRequiredConfiguration
func (*Session) StartCommercial ¶
StartCommercial
func (*Session) UnblockUser ¶
UnblockUser
func (*Session) UpdateAutoModSettings ¶
func (S *Session) UpdateAutoModSettings(opts ...moderationOpt) *helixResp
UpdateAutoModSettings - incomplete
func (*Session) UpdateChannelStreamSchedule ¶
UpdateChannelStreamSchedule
func (*Session) UpdateChannelStreamScheduleSegment ¶
func (S *Session) UpdateChannelStreamScheduleSegment(bcastId, id string, opts ...scheduleOpt) *helixResp
UpdateChannelStreamScheduleSegment
func (*Session) UpdateChatSettings ¶
UpdateChatSettings
func (*Session) UpdateCustomReward ¶
UpdateCustomReward
func (*Session) UpdateDropsEntitlements ¶
func (S *Session) UpdateDropsEntitlements(opts ...entitlementsOpt) *helixResp
UpdateDropsEntitlements
func (*Session) UpdateExtensionBitsProduct ¶
func (S *Session) UpdateExtensionBitsProduct(opts ...extensionOpt) *helixResp
UpdateExtensionBitsProduct
func (*Session) UpdateRedemptionStatus ¶
func (S *Session) UpdateRedemptionStatus(bcastId, rewardId, status string, ids ...string) *helixResp
UpdateRedemptionStatus
func (*Session) UpdateShieldModeStatus ¶
UpdateShieldModeStatus
func (*Session) UpdateUserChatColor ¶
UpdateUserChatColor
func (*Session) UpdateUserExtensions ¶
func (S *Session) UpdateUserExtensions(opts ...usersOpt) *helixResp
UpdateUserExtensions
Source Files ¶
- epAds.go
- epAnalytics.go
- epBits.go
- epChannelPoints.go
- epChannels.go
- epCharity.go
- epChat.go
- epClips.go
- epEntitlements.go
- epEventSub.go
- epExtensions.go
- epGames.go
- epGoals.go
- epHypetrain.go
- epModeration.go
- epMusic.go
- epPolls.go
- epPredictions.go
- epRaids.go
- epSchedule.go
- epSearch.go
- epStreams.go
- epSubscriptions.go
- epTags.go
- epTeams.go
- epUsers.go
- epVideos.go
- epWhisper.go
- session.go
- twitch.go