Skip to content

amahi/go-themoviedb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-themoviedb Build Status

Golang interface to The Movie DB (TMDb) APIs

See the godoc go-themoviedb documentation

Golang library for requesting metadata from themoviedb.org It's used by

  1. Initializing the library via Init(), with the caller's API key from http://www.themoviedb.org like

  2. Calling MovieData() to get the actual data, like

package main

import "fmt"
import "github.com/amahi/go-themoviedb"

func main() {
        tmdb := tmdb.Init("your-api-key")
        metadata, err := tmdb.MovieData("Pulp Fiction")
        if err != nil {
                fmt.Printf("Error: %s\n", err)
        } else {
                fmt.Printf("TMDb Metadata: %s\n", metadata)
        }
}

the metadata is returned in XML format according to TMDB guidelines.

About

Golang interface to The Movie DB (TMDB) APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages