Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/danesparza/tvdb
- Owner: danesparza
- License: mit
- Created: 2016-08-23T17:35:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-29T13:09:19.000Z (over 7 years ago)
- Last Synced: 2024-11-24T03:12:31.332Z (3 months ago)
- Topics: api, api-client, client, go, golang, golang-package, thetvdb, thetvdb-api, tv-api, tv-series, tv-shows
- Language: Go
- Homepage:
- Size: 32.2 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```