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
-
Initializing the library via Init(), with the caller's API key from http://www.themoviedb.org like
-
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.