Using trakt with trakt.tv

Go integration

Install
go get github.com/jacklaaa89/trakt
Quick start
import "trakt"

// Initialize client
client := trakt.NewClient("YOUR_ACCESS_TOKEN")
Get networks
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://api.trakt.tv/networks
Get list
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://api.trakt.tv/lists/{id}
Get a single show
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://api.trakt.tv/shows/{id}
SDK on GitHub 📄 API Docs
SDK
trakt
Go
API
trakt.tv
trakt.tv
At a glance
Language Go
Endpoints183
Base URLhttps://api.trakt.tv