Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/danesparza/tvdb

:tv: TVDB v2.0 API wrapper for Go
https://github.com/danesparza/tvdb

api api-client client go golang golang-package thetvdb thetvdb-api tv-api tv-series tv-shows

Last synced: 22 days ago
JSON representation

:tv: TVDB v2.0 API wrapper for Go

Awesome Lists containing this project

README

        

# tvdb [![CircleCI](https://circleci.com/gh/danesparza/tvdb.svg?style=shield)](https://circleci.com/gh/danesparza/tvdb) [![Go Report Card](https://goreportcard.com/badge/github.com/danesparza/tvdb)](https://goreportcard.com/report/github.com/danesparza/tvdb) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
TVDB v2.0 API wrapper for Go

## Installation
`go get -u github.com/danesparza/tvdb`

## Example

``` Go
// 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
```