Documentation
¶
Index ¶
- func Authenticate() error
- func CheckUserAccessToken(accessToken string) error
- type AuthTokenResponse
- type Channel
- type ChannelResponse
- type Language
- type Live
- type Pagination
- type Service
- type Stream
- type TwitchVideoResponse
- type Type
- type UserLogin
- type UserName
- type Video
- type Viewable
- type Vod
- type VodResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
func Authenticate() error
func CheckUserAccessToken ¶ added in v1.0.9
Types ¶
type AuthTokenResponse ¶
type Channel ¶
type Channel struct { ID string `json:"id"` Login string `json:"login"` DisplayName string `json:"display_name"` Type string `json:"type"` BroadcasterType string `json:"broadcaster_type"` Description string `json:"description"` ProfileImageURL string `json:"profile_image_url"` OfflineImageURL string `json:"offline_image_url"` ViewCount int64 `json:"view_count"` CreatedAt string `json:"created_at"` }
func GetUserByLogin ¶ added in v1.1.0
type ChannelResponse ¶
type ChannelResponse struct {
Data []Channel `json:"data"`
}
type Live ¶
type Live struct { ID string `json:"id"` UserID string `json:"user_id"` UserLogin string `json:"user_login"` UserName string `json:"user_name"` GameID string `json:"game_id"` GameName string `json:"game_name"` Type string `json:"type"` Title string `json:"title"` ViewerCount int64 `json:"viewer_count"` StartedAt string `json:"started_at"` Language string `json:"language"` ThumbnailURL string `json:"thumbnail_url"` TagIDS []string `json:"tag_ids"` IsMature bool `json:"is_mature"` }
type Pagination ¶
type Pagination struct {
Cursor string `json:"cursor"`
}
type Stream ¶
type Stream struct { Data []Live `json:"data"` Pagination Pagination `json:"pagination"` }
type TwitchVideoResponse ¶ added in v1.1.0
type TwitchVideoResponse struct { Data []Video `json:"data"` Pagination Pagination `json:"pagination"` }
type Video ¶ added in v1.1.0
type Video struct { ID string `json:"id"` StreamID string `json:"stream_id"` UserID string `json:"user_id"` UserLogin UserLogin `json:"user_login"` UserName UserName `json:"user_name"` Title string `json:"title"` Description string `json:"description"` CreatedAt string `json:"created_at"` PublishedAt string `json:"published_at"` URL string `json:"url"` ThumbnailURL string `json:"thumbnail_url"` Viewable Viewable `json:"viewable"` ViewCount int64 `json:"view_count"` Language Language `json:"language"` Type Type `json:"type"` Duration string `json:"duration"` MutedSegments interface{} `json:"muted_segments"` }
type Vod ¶
type Vod struct { ID string `json:"id"` StreamID string `json:"stream_id"` UserID string `json:"user_id"` UserLogin string `json:"user_login"` UserName string `json:"user_name"` Title string `json:"title"` Description string `json:"description"` CreatedAt string `json:"created_at"` PublishedAt string `json:"published_at"` URL string `json:"url"` ThumbnailURL string `json:"thumbnail_url"` Viewable string `json:"viewable"` ViewCount int64 `json:"view_count"` Language string `json:"language"` Type string `json:"type"` Duration string `json:"duration"` MutedSegments interface{} `json:"muted_segments"` }
type VodResponse ¶
type VodResponse struct { Data []Vod `json:"data"` Pagination Pagination `json:"pagination"` }
Click to show internal directories.
Click to hide internal directories.