package
Version:
v0.0.0-...-5a41733
Opens a new window with list of versions in this module.
Published: Nov 20, 2024
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Client manages communication with the twitch API.
Custom returns a new twitch API client with custom API endpoints
New returns a new twitch API client.
M3U8 retrieves the M3U8 file of a specific VOD.
Name retrieves the name of the video from a URL.
type Clip struct {
Broadcaster struct {
DisplayName string `json:"displayName"`
} `json:"broadcaster"`
Title string `json:"title"`
Game struct {
Name string `json:"name"`
} `json:"game"`
}
type ClipVideo struct {
Token struct {
Signature string `json:"signature"`
Value string `json:"value"`
} `json:"playbackAccessToken"`
Qualities []struct {
FrameRate float64 `json:"frameRate"`
Quality string `json:"quality"`
SourceURL string `json:"sourceURL"`
} `json:"videoQualities"`
}
type VOD struct {
Title string `json:"title"`
Owner struct {
DisplayName string `json:"displayName"`
} `json:"owner"`
Game struct {
Name string `json:"name"`
} `json:"game"`
}
VOD contains infos on a twitch VOD.
ID extract the ID/slug and type from a VOD url.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.