A Twitch Kraken API (v5) client written in Go. If you are looking for a client for Twitch's Helix API, see helix.
This project is a work in progress. Below is a list of currently supported endpoints. Until a release is cut, consider this API to be unstable.
- Bits
- Channel Feed
- Channels
- Chat
- Clips
- Collections
- Communities
- Games
- Ingests
- Search
- Streams
- Teams
- Users
- Videos
It's recommended that you use a dependency management tool such as Dep. If you are using Dep you can import kraken by running:
dep ensure -add github.com/nicklaw5/kraken
Or you can simply import using the Go toolchain:
go get -u github.com/nicklaw5/kraken
This is a quick example of how to get a clip.
client, err := kraken.NewClient("your-client-id", nil)
if err != nil {
// handle error
}
clip, err := client.GetClip("AwkwardHelplessSalamanderSwiftRage")
if err != nil {
// handle error
}
fmt.Printf("%+v\n", clip)
This package is distributed under the terms of the MIT License.