Documentation ¶
Overview ¶
Package gundyr provides an interface to access the Helix Twitch API and Twich PubSub.
Index ¶
- type Helix
- func (c *Helix) GetAllClips(broadcasterID string, after string) ([]helix.GetClipsData, error)
- func (c *Helix) GetAllVideos(broadcasterID string) ([]helix.GetVideosData, error)
- func (c *Helix) GetFollowers(userID string) ([]string, error)
- func (c *Helix) GetUserEmail(username string) (string, error)
- func (c *Helix) IDToUser(userID string) (string, error)
- func (c *Helix) IDsToUser(userIDs []string) ([]string, error)
- func (c *Helix) UserToID(username string) (string, error)
- func (c *Helix) ViewCount(userID string) (int, error)
- type HelixConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Helix ¶
type Helix struct {
// contains filtered or unexported fields
}
Helix is a wrapper over a HelixClient. See https://godoc.org/github.com/kelr/gundyr/helix for the underlying HelixClient.
func NewHelix ¶
func NewHelix(cfg *HelixConfig) (*Helix, error)
NewHelix returns returns a client credentials Helix API client wrapper
func (*Helix) GetAllClips ¶ added in v0.2.3
func (*Helix) GetAllVideos ¶ added in v0.2.7
func (c *Helix) GetAllVideos(broadcasterID string) ([]helix.GetVideosData, error)
func (*Helix) GetFollowers ¶
GetFollowers returns userIDs for all the users following the provided userID. "Who is following userID?"
func (*Helix) GetUserEmail ¶
GetUserEmail returns the e-mail address of the user by username. The user access token must have scope user:read:email for the username provided.
func (*Helix) IDsToUser ¶
IDsToUser converts multiple user ID strings to multiple username strings. Will accept a maximum of 100 IDs. Requests for more than 100 IDs should call this function in chunks.
Directories ¶
Path | Synopsis |
---|---|
Package auth provides a wrapper over the oauth2 library with additional helper functions.
|
Package auth provides a wrapper over the oauth2 library with additional helper functions. |
Example to show how to generate a new OAuth2 token using the 3-legged flow.
|
Example to show how to generate a new OAuth2 token using the 3-legged flow. |
Package helix provides a HTTP client to communicate with the Twitch Helix API endpoints.
|
Package helix provides a HTTP client to communicate with the Twitch Helix API endpoints. |
Package pubsub provides a client used to subscribe to updates from the Twitch PubSub endpoints.
|
Package pubsub provides a client used to subscribe to updates from the Twitch PubSub endpoints. |