Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct { Id string `json:"id"` Subscription helix.Subscription `json:"event_data"` }
type ManyEvents ¶
type ManyEvents struct {
Events []Event `json:"data"`
}
type SubscriptionWebhook ¶
type SubscriptionWebhook struct { helix.ResponseCommon Data ManyEvents }
example payload: {"data":[{"event_data":{"broadcaster_id":"225469317","broadcaster_name":"ADanaLife_","is_gift":false,"plan_name":"Channel Subscription (adanalife_)","tier":"1000", "user_id":"26784661","user_name":"MathGaming"},"event_timestamp":"2019-11-30T00:44:31Z","event_type":"subscriptions.subscribe","id":"1UJVQq8yMh9kOe0OmHpw3jbKkGH","version":"1.0"}]}
type TwitchAuthentication ¶
type TwitchAuthentication struct { ChannelID string `json:"channel_id"` UserAccessToken string `json:"user_access_token"` ClientID string `json:"client_id"` AppAccessToken string `json:"app_access_token"` }
TwitchAuthentication is sensitive internal twitch access tokens, which are made available via the server to supporting scripts (if properly authenticated)
Click to show internal directories.
Click to hide internal directories.