Categorygithub.com/dashotv/tmdb
repositorypackage
0.2.0
Repository: https://github.com/dashotv/tmdb.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

dashotv/tmdb

TMDB API in Go

Build Status GoDoc Go Report Card License

Usage

Install the package with:

go get github.com/dashotv/tmdb

Import the package with:

import "github.com/dashotv/tvdb"

Create a new client with the code below. This will create the client and configure Bearer authentication.

client, err := tvdb.New("https://api.themoviedb.org", "TOKEN")

Your TMDB Account page API section will have the token. See their docs for more info.

Development

Crate a local .env file with the following content:

# .env
TMDB_API_URL=https://api.themoviedb.org
TMDB_API_TOKEN=<TOKEN>

Run the following to get the make targets:

make help


Usage:
  make <target>

Targets:
    clean               Remove build related file
  Test:
    test                Run the tests of the project
    coverage            Run the tests of the project and export the coverage
  Lint:
    lint                Run all available linters
    lint-go             Use golintci-lint on your project
  Help:
    help                Show this help.