Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicklaw5/kraken
A Twitch Kraken API (v5) client written in Go (Golang).
https://github.com/nicklaw5/kraken
go golang golang-library golang-package twitch twitch-api twitch-tv twitchtv
Last synced: about 2 months ago
JSON representation
A Twitch Kraken API (v5) client written in Go (Golang).
- Host: GitHub
- URL: https://github.com/nicklaw5/kraken
- Owner: nicklaw5
- License: mit
- Created: 2018-01-27T00:12:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-04T03:33:29.000Z (almost 7 years ago)
- Last Synced: 2024-06-20T15:52:38.485Z (7 months ago)
- Topics: go, golang, golang-library, golang-package, twitch, twitch-api, twitch-tv, twitchtv
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
# kraken
A Twitch Kraken API (v5) client written in Go. If you are looking for a client for Twitch's Helix API, see [helix](https://github.com/nicklaw5/helix).
[![Build Status](https://travis-ci.org/nicklaw5/kraken.svg?branch=master)](https://travis-ci.org/nicklaw5/kraken)
[![Coverage Status](https://coveralls.io/repos/github/nicklaw5/kraken/badge.svg)](https://coveralls.io/github/nicklaw5/kraken)## Package Status
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.
## Supported Endpoints
- [ ] Bits
- [ ] Channel Feed
- [ ] Channels
- [ ] Chat
- [x] Clips
- [ ] Collections
- [ ] Communities
- [ ] Games
- [ ] Ingests
- [ ] Search
- [ ] Streams
- [ ] Teams
- [ ] Users
- [ ] Videos## Getting Started
It's recommended that you use a dependency management tool such as [Dep](https://github.com/golang/dep). If you are using Dep you can import kraken by running:
```bash
dep ensure -add github.com/nicklaw5/kraken
```Or you can simply import using the Go toolchain:
```bash
go get -u github.com/nicklaw5/kraken
```## Usage
This is a quick example of how to get a clip.
```go
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)
```## License
This package is distributed under the terms of the [MIT](License) License.