Skip to content

danesparza/tvdb

Repository files navigation

tvdb CircleCI Go Report Card License: MIT

TVDB v2.0 API wrapper for Go

Installation

go get -u github.com/danesparza/tvdb

Example

// Create a client and search request
client := tvdb.Client{}
request := tvdb.SeriesEpisodesRequest{Name: "Looney Tunes"}

// Search for the series
responses, err := client.SeriesSearch(request)

// Loop through the TV series information in the resopnse:
for _, response := range responses {
  fmt.Printf("Series name: %v", response.SeriesName)
}
  

This should print:

Series name: Looney Tunes
Series name: The Looney Tunes Show (2011)
Series name: ** 403: Series Not Permitted **
Series name: Baby Looney Tunes