tmdb

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2019 License: MIT Imports: 9 Imported by: 29

README

Build Status Build status Coverage Status Go Report Card GoDoc GitHub license

This is a Golang wrapper for working with TMDb API. It aims to support version 3.

An API Key is required. To register for one, head over to themoviedb.org.

This product uses the TMDb API but is not endorsed or certified by TMDb.

Requirements

  • Go 1.11.x or higher. We aim to support the latest supported versions of go.

Installation

go get -u github.com/cyruzin/golang-tmdb

Usage

To get started, import the tmdb package and initiate the client:

import "github.com/cyruzin/golang-tmdb"

tmdbClient, err := tmdb.Init("YOUR_APIKEY")

// OPTIONAL: Setting a custom config for the http.Client.
tmdbClient.SetClientConfig(http.Client{Timeout: time.Second * 10})

if err != nil {
    fmt.Println(err)
}
    
movie, err := tmdbClient.GetMovieDetails(297802, nil)

With optional params:

options := make(map[string]string)
options["language"] = "pt-BR"
options["append_to_response"] = "credits,images"
movie, err := tmdbClient.GetMovieDetails(297802, options)

For more examples, click here.

Contributing

To start contributing, please check CONTRIBUTING.

License

MIT

Documentation

Overview

Package tmdb is a wrapper for working with TMDb API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
	AccessToken string `json:"access_token"`
}

AccessToken type is a struct for access token JSON request.

type AccountDetails

type AccountDetails struct {
	Avatar struct {
		Gravatar struct {
			Hash string `json:"hash"`
		} `json:"gravatar"`
	} `json:"avatar"`
	ID           int64  `json:"id"`
	Iso639_1     string `json:"iso_639_1"`
	Iso3166_1    string `json:"iso_3166_1"`
	Name         string `json:"name"`
	IncludeAdult bool   `json:"include_adult"`
	Username     string `json:"username"`
}

AccountDetails type is a struct for details JSON response.

type Certification

type Certification struct {
	Certification string `json:"certification"`
	Meaning       string `json:"meaning"`
	Order         int    `json:"order"`
}

Certification type is a struct for a single certification JSON response.

type CertificationMovie

type CertificationMovie struct {
	Certifications struct {
		US []struct {
			*Certification
		} `json:"US"`
		CA []struct {
			*Certification
		} `json:"CA"`
		AU []struct {
			*Certification
		} `json:"AU"`
		DE []struct {
			*Certification
		} `json:"DE"`
		FR []struct {
			*Certification
		} `json:"FR"`
		NZ []struct {
			*Certification
		} `json:"NZ"`
		IN []struct {
			*Certification
		} `json:"IN"`
		GB []struct {
			*Certification
		} `json:"GB"`
		NL []struct {
			*Certification
		} `json:"NL"`
		BR []struct {
			*Certification
		} `json:"BR"`
		FI []struct {
			*Certification
		} `json:"FI"`
		BG []struct {
			*Certification
		} `json:"BG"`
		ES []struct {
			*Certification
		} `json:"ES"`
		PH []struct {
			*Certification
		} `json:"PH"`
		PT []struct {
			*Certification
		} `json:"PT"`
	} `json:"certifications"`
}

CertificationMovie type is a struct for movie certifications JSON response.

type CertificationTV

type CertificationTV struct {
	Certifications struct {
		RU []struct {
			*Certification
		} `json:"RU"`
		US []struct {
			*Certification
		} `json:"US"`
		CA []struct {
			*Certification
		} `json:"CA"`
		AU []struct {
			*Certification
		} `json:"AU"`
		FR []struct {
			*Certification
		} `json:"FR"`
		DE []struct {
			*Certification
		} `json:"DE"`
		TH []struct {
			*Certification
		} `json:"TH"`
		KR []struct {
			*Certification
		} `json:"KR"`
		GB []struct {
			*Certification
		} `json:"GB"`
		BR []struct {
			*Certification
		} `json:"BR"`
	} `json:"certifications"`
}

CertificationTV type is a struct for tv certifications JSON response.

type ChangesMovie

type ChangesMovie struct {
	Results []struct {
		ID    int64 `json:"id"`
		Adult bool  `json:"adult"`
	} `json:"results"`
	Page         int64 `json:"page"`
	TotalPages   int64 `json:"total_pages"`
	TotalResults int64 `json:"total_results"`
}

ChangesMovie type is a struct for movie changes JSON response.

type ChangesPerson

type ChangesPerson struct {
	*ChangesMovie
}

ChangesPerson type is a struct for person changes JSON response.

type ChangesTV

type ChangesTV struct {
	*ChangesMovie
}

ChangesTV type is a struct for tv changes JSON response.

type Client

type Client struct {
	APIKey string
	// contains filtered or unexported fields
}

Client type is a struct to instantiate this pkg.

func Init

func Init(apiKey string) (*Client, error)

Init setups the Client with an APIKey.

func (*Client) CreateGuestSession

func (c *Client) CreateGuestSession() (*RequestToken, error)

CreateGuestSession creates a temporary request token that can be used to validate a TMDb user login.

https://developers.themoviedb.org/3/authentication/create-guest-session

func (*Client) CreateRequestToken

func (c *Client) CreateRequestToken() (*RequestToken, error)

CreateRequestToken creates a temporary request token that can be used to validate a TMDb user login.

https://developers.themoviedb.org/3/authentication/create-request-token

func (*Client) GetCertificationMovie

func (c *Client) GetCertificationMovie() (
	*CertificationMovie, error,
)

GetCertificationMovie get an up to date list of the officially supported movie certifications on TMDb.

https://developers.themoviedb.org/3/certifications/get-movie-certifications

func (*Client) GetCertificationTV

func (c *Client) GetCertificationTV() (
	*CertificationTV, error,
)

GetCertificationTV get an up to date list of the officially supported TV show certifications on TMDb.

https://developers.themoviedb.org/3/certifications/get-tv-certifications

func (*Client) GetChangesMovie

func (c *Client) GetChangesMovie(
	o map[string]string,
) (*ChangesMovie, error)

GetChangesMovie get a list of all of the movie ids that have been changed in the past 24 hours.

You can query it for up to 14 days worth of changed IDs at a time with the start_date and end_date query parameters. 100 items are returned per page.

https://developers.themoviedb.org/3/changes/get-movie-change-list

func (*Client) GetChangesPerson

func (c *Client) GetChangesPerson(
	o map[string]string,
) (*ChangesPerson, error)

GetChangesPerson get a list of all of the person ids that have been changed in the past 24 hours.

You can query it for up to 14 days worth of changed IDs at a time with the start_date and end_date query parameters. 100 items are returned per page.

https://developers.themoviedb.org/3/changes/get-person-change-list

func (*Client) GetChangesTV

func (c *Client) GetChangesTV(
	o map[string]string,
) (*ChangesTV, error)

GetChangesTV get a list of all of the TV show ids that have been changed in the past 24 hours.

You can query it for up to 14 days worth of changed IDs at a time with the start_date and end_date query parameters. 100 items are returned per page.

https://developers.themoviedb.org/3/changes/get-tv-change-list

func (*Client) GetCollectionDetails

func (c *Client) GetCollectionDetails(
	id int, o map[string]string,
) (*CollectionDetails, error)

GetCollectionDetails get collection details by id.

https://developers.themoviedb.org/3/collections/get-collection-details

func (*Client) GetCollectionImages

func (c *Client) GetCollectionImages(
	id int, o map[string]string,
) (*CollectionImages, error)

GetCollectionImages get the images for a collection by id.

https://developers.themoviedb.org/3/collections/get-collection-images

func (*Client) GetCollectionTranslations

func (c *Client) GetCollectionTranslations(
	id int, o map[string]string,
) (*CollectionTranslations, error)

GetCollectionTranslations get the list translations for a collection by id.

https://developers.themoviedb.org/3/collections/get-collection-translations

func (*Client) GetCompanyAlternativeNames

func (c *Client) GetCompanyAlternativeNames(
	id int,
) (*CompanyAlternativeNames, error)

GetCompanyAlternativeNames get the alternative names of a company.

https://developers.themoviedb.org/3/companies/get-company-alternative-names

func (*Client) GetCompanyDetails

func (c *Client) GetCompanyDetails(id int) (*CompanyDetails, error)

GetCompanyDetails get a companies details by id.

https://developers.themoviedb.org/3/companies/get-company-details

func (*Client) GetCompanyImages

func (c *Client) GetCompanyImages(id int) (*CompanyImages, error)

GetCompanyImages get a companies logos by id.

There are two image formats that are supported for companies, PNG's and SVG's. You can see which type the original file is by looking at the file_type field. We prefer SVG's as they are resolution independent and as such, the width and height are only there to reflect the original asset that was uploaded. An SVG can be scaled properly beyond those dimensions if you call them as a PNG.

https://developers.themoviedb.org/3/companies/get-company-images

func (*Client) GetConfigurationAPI

func (c *Client) GetConfigurationAPI() (*ConfigurationAPI, error)

GetConfigurationAPI get the system wide configuration information.

Some elements of the API require some knowledge of this configuration data. The purpose of this is to try and keep the actual API responses as light as possible. It is recommended you cache this data within your application and check for updates every few days.

This method currently holds the data relevant to building image URLs as well as the change key map.

To build an image URL, you will need 3 pieces of data. The base_url, size and file_path. Simply combine them all and you will have a fully qualified URL. Here’s an example URL:

https://image.tmdb.org/t/p/w500/8uO0gUM8aNqYLs1OsTBQiXu0fEv.jpg

The configuration method also contains the list of change keys which can be useful if you are building an app that consumes data from the change feed.

https://developers.themoviedb.org/3/companies/get-company-images

func (*Client) GetConfigurationCountries

func (c *Client) GetConfigurationCountries() (
	*ConfigurationCountries, error,
)

GetConfigurationCountries get the list of countries (ISO 3166-1 tags) used throughout TMDb.

https://developers.themoviedb.org/3/configuration/get-countries

func (*Client) GetConfigurationJobs

func (c *Client) GetConfigurationJobs() (*ConfigurationJobs, error)

GetConfigurationJobs get a list of the jobs and departments we use on TMDb.

https://developers.themoviedb.org/3/configuration/get-jobs

func (*Client) GetConfigurationLanguages

func (c *Client) GetConfigurationLanguages() (
	*ConfigurationLanguages, error,
)

GetConfigurationLanguages get the list of languages (ISO 639-1 tags) used throughout TMDb.

https://developers.themoviedb.org/3/configuration/get-languages

func (*Client) GetConfigurationPrimaryTranslations

func (c *Client) GetConfigurationPrimaryTranslations() (
	*ConfigurationPrimaryTranslations, error,
)

GetConfigurationPrimaryTranslations get a list of the officially supported translations on TMDb.

While it's technically possible to add a translation in any one of the languages we have added to TMDb (we don't restrict content), the ones listed in this method are the ones we also support for localizing the website with which means they are what we refer to as the "primary" translations.

These are all specified as IETF tags to identify the languages we use on TMDb. There is one exception which is image languages. They are currently only designated by a ISO-639-1 tag. This is a planned upgrade for the future.

We're always open to adding more if you think one should be added. You can ask about getting a new primary translation added by posting on the forums.

One more thing to mention, these are the translations that map to our website translation project.

https://developers.themoviedb.org/3/configuration/get-primary-translations

func (*Client) GetConfigurationTimezones

func (c *Client) GetConfigurationTimezones() (
	*ConfigurationTimezones, error,
)

GetConfigurationTimezones get the list of timezones used throughout TMDb.

https://developers.themoviedb.org/3/configuration/get-timezones

func (*Client) GetCreditDetails

func (c *Client) GetCreditDetails(id string) (*CreditsDetails, error)

GetCreditDetails get the list of timezones used throughout TMDb.

https://developers.themoviedb.org/3/credits/get-credit-details

func (*Client) GetDiscoverMovie

func (c *Client) GetDiscoverMovie(
	o map[string]string,
) (*DiscoverMovie, error)

GetDiscoverMovie discover movies by different types of data like average rating, number of votes, genres and certifications. You can get a valid list of certifications from the method.

Discover also supports a nice list of sort options. See below for all of the available options.

Please note, when using certification \ certification.lte you must also specify certification_country. These two parameters work together in order to filter the results. You can only filter results with the countries we have added to our certifications list.

If you specify the region parameter, the regional release date will be used instead of the primary release date. The date returned will be the first date based on your query (ie. if a with_release_type is specified). It's important to note the order of the release types that are used. Specifying "2|3" would return the limited theatrical release date as opposed to "3|2" which would return the theatrical date.

Also note that a number of filters support being comma (,) or pipe (|) separated. Comma's are treated like an AND and query while pipe's are an OR.

https://developers.themoviedb.org/3/discover/movie-discover

func (*Client) GetDiscoverTV

func (c *Client) GetDiscoverTV(
	o map[string]string,
) (*DiscoverTV, error)

GetDiscoverTV Discover TV shows by different types of data like average rating, number of votes, genres, the network they aired on and air dates.

Discover also supports a nice list of sort options. See below for all of the available options.

Also note that a number of filters support being comma (,) or pipe (|) separated. Comma's are treated like an AND and query while pipe's are an OR.

https://developers.themoviedb.org/3/discover/tv-discover

func (*Client) GetFindByID

func (c *Client) GetFindByID(
	id string, o map[string]string,
) (*FindByID, error)

GetFindByID the find method makes it easy to search for objects in our database by an external id. For example, an IMDB ID.

This method will search all objects (movies, TV shows and people) and return the results in a single response.

https://developers.themoviedb.org/3/find/find-by-id

func (*Client) GetGenreMovieList

func (c *Client) GetGenreMovieList(
	o map[string]string,
) (*GenreMovieList, error)

GetGenreMovieList get the list of official genres for movies.

https://developers.themoviedb.org/3/keywords/get-keyword-details

func (*Client) GetGenreTVList

func (c *Client) GetGenreTVList(
	o map[string]string,
) (*GenreMovieList, error)

GetGenreTVList get the list of official genres for TV shows.

https://developers.themoviedb.org/3/genres/get-tv-list

func (*Client) GetGuestSessionRatedMovies

func (c *Client) GetGuestSessionRatedMovies(
	id string, o map[string]string,
) (*GuestSessionRatedMovies, error)

GetGuestSessionRatedMovies get the rated movies for a guest session.

https://developers.themoviedb.org/3/guest-sessions/get-guest-session-rated-movies

func (*Client) GetGuestSessionRatedTVEpisodes

func (c *Client) GetGuestSessionRatedTVEpisodes(
	id string, o map[string]string,
) (*GuestSessionRatedTVEpisodes, error)

GetGuestSessionRatedTVEpisodes get the rated TV episodes for a guest session.

https://developers.themoviedb.org/3/guest-sessions/get-gest-session-rated-tv-episodes

func (*Client) GetGuestSessionRatedTVShows

func (c *Client) GetGuestSessionRatedTVShows(
	id string, o map[string]string,
) (*GuestSessionRatedTVShows, error)

GetGuestSessionRatedTVShows get the rated TV shows for a guest session.

https://developers.themoviedb.org/3/guest-sessions/get-guest-session-rated-tv-shows

func (*Client) GetKeywordDetails

func (c *Client) GetKeywordDetails(id int) (*KeywordDetails, error)

GetKeywordDetails get keyword details by id.

https://developers.themoviedb.org/3/keywords/get-keyword-details

func (*Client) GetKeywordMovies

func (c *Client) GetKeywordMovies(
	id int, o map[string]string,
) (*KeywordMovies, error)

GetKeywordMovies get the movies that belong to a keyword.

We highly recommend using movie discover instead of this method as it is much more flexible.

https://developers.themoviedb.org/3/keywords/get-movies-by-keyword

func (*Client) GetListDetails

func (c *Client) GetListDetails(
	id string, o map[string]string,
) (*ListDetails, error)

GetListDetails get the details of a list.

https://developers.themoviedb.org/3/lists/get-list-details

func (*Client) GetListItemStatus

func (c *Client) GetListItemStatus(
	id string, o map[string]string,
) (*ListItemStatus, error)

GetListItemStatus check if a movie has already been added to the list.

https://developers.themoviedb.org/3/lists/check-item-status

func (*Client) GetMovieAccountStates

func (c *Client) GetMovieAccountStates(
	id int, o map[string]string,
) (*MovieAccountStates, error)

GetMovieAccountStates grab the following account states for a session:

Movie rating.

If it belongs to your watchlist.

If it belongs to your favourite list.

https://developers.themoviedb.org/3/movies/get-movie-account-states

func (*Client) GetMovieAlternativeTitles

func (c *Client) GetMovieAlternativeTitles(
	id int, o map[string]string,
) (*MovieAlternativeTitles, error)

GetMovieAlternativeTitles get all of the alternative titles for a movie.

https://developers.themoviedb.org/3/movies/get-movie-alternative-titles

func (*Client) GetMovieChanges

func (c *Client) GetMovieChanges(
	id int, o map[string]string,
) (*MovieChanges, error)

GetMovieChanges get the changes for a movie.

By default only the last 24 hours are returned. You can query up to 14 days in a single query by using the start_date and end_date query parameters.

https://developers.themoviedb.org/3/movies/get-movie-changes

func (*Client) GetMovieCredits

func (c *Client) GetMovieCredits(
	id int, o map[string]string,
) (*MovieCredits, error)

GetMovieCredits get the cast and crew for a movie.

https://developers.themoviedb.org/3/movies/get-movie-credits

func (*Client) GetMovieDetails

func (c *Client) GetMovieDetails(
	id int, o map[string]string,
) (*MovieDetails, error)

GetMovieDetails get the primary information about a movie.

https://developers.themoviedb.org/3/movies

func (*Client) GetMovieExternalIDs

func (c *Client) GetMovieExternalIDs(
	id int, o map[string]string,
) (*MovieExternalIDs, error)

GetMovieExternalIDs get the external ids for a movie.

We currently support the following external sources.

Media Databases: IMDb ID.

Social IDs: Facebook, Instagram and Twitter.

https://developers.themoviedb.org/3/movies/get-movie-external-ids

func (*Client) GetMovieImages

func (c *Client) GetMovieImages(
	id int, o map[string]string,
) (*MovieImages, error)

GetMovieImages get the images that belong to a movie.

Querying images with a language parameter will filter the results. If you want to include a fallback language (especially useful for backdrops) you can use the include_image_language parameter. This should be a comma separated value like so: include_image_language=en,null.

https://developers.themoviedb.org/3/movies/get-movie-images

func (*Client) GetMovieKeywords

func (c *Client) GetMovieKeywords(id int) (*MovieKeywords, error)

GetMovieKeywords get the keywords that have been added to a movie.

https://developers.themoviedb.org/3/movies/get-movie-keywords

func (*Client) GetMovieLatest

func (c *Client) GetMovieLatest(
	o map[string]string,
) (*MovieLatest, error)

GetMovieLatest get the most newly created movie.

This is a live response and will continuously change.

https://developers.themoviedb.org/3/movies/get-latest-movie

func (*Client) GetMovieLists

func (c *Client) GetMovieLists(
	id int, o map[string]string,
) (*MovieLists, error)

GetMovieLists get a list of lists that this movie belongs to.

https://developers.themoviedb.org/3/movies/get-movie-lists

func (*Client) GetMovieNowPlaying

func (c *Client) GetMovieNowPlaying(
	o map[string]string,
) (*MovieNowPlaying, error)

GetMovieNowPlaying get a list of movies in theatres.

This is a release type query that looks for all movies that have a release type of 2 or 3 within the specified date range.

You can optionally specify a region prameter which will narrow the search to only look for theatrical release dates within the specified country.

https://developers.themoviedb.org/3/movies/get-now-playing

func (*Client) GetMoviePopular

func (c *Client) GetMoviePopular(
	o map[string]string,
) (*MoviePopular, error)

GetMoviePopular get a list of the current popular movies on TMDb.

This list updates daily.

https://developers.themoviedb.org/3/movies/get-popular-movies

func (*Client) GetMovieRecommendations

func (c *Client) GetMovieRecommendations(
	id int, o map[string]string,
) (*MovieRecommendations, error)

GetMovieRecommendations get a list of recommended movies for a movie.

https://developers.themoviedb.org/3/movies/get-movie-recommendations

func (*Client) GetMovieReleaseDates

func (c *Client) GetMovieReleaseDates(
	id int,
) (*MovieReleaseDates, error)

GetMovieReleaseDates get the release date along with the certification for a movie.

https://developers.themoviedb.org/3/movies/get-movie-release-dates

func (*Client) GetMovieReviews

func (c *Client) GetMovieReviews(
	id int, o map[string]string,
) (*MovieReviews, error)

GetMovieReviews get the user reviews for a movie.

https://developers.themoviedb.org/3/movies/get-movie-reviews

func (*Client) GetMovieSimilar

func (c *Client) GetMovieSimilar(
	id int, o map[string]string,
) (*MovieSimilar, error)

GetMovieSimilar get a list of similar movies.

This is not the same as the "Recommendation" system you see on the website. These items are assembled by looking at keywords and genres.

https://developers.themoviedb.org/3/movies/get-similar-movies

func (*Client) GetMovieTopRated

func (c *Client) GetMovieTopRated(
	o map[string]string,
) (*MovieTopRated, error)

GetMovieTopRated get the top rated movies on TMDb.

https://developers.themoviedb.org/3/movies/get-top-rated-movies

func (*Client) GetMovieTranslations

func (c *Client) GetMovieTranslations(
	id int, o map[string]string,
) (*MovieTranslations, error)

GetMovieTranslations get a list of translations that have been created for a movie.

https://developers.themoviedb.org/3/movies/get-movie-translations

func (*Client) GetMovieUpcoming

func (c *Client) GetMovieUpcoming(
	o map[string]string,
) (*MovieUpcoming, error)

GetMovieUpcoming get a list of upcoming movies in theatres.

This is a release type query that looks for all movies that have a release type of 2 or 3 within the specified date range.

You can optionally specify a region prameter which will narrow the search to only look for theatrical release dates within the specified country.

https://developers.themoviedb.org/3/movies/get-upcoming

func (*Client) GetMovieVideos

func (c *Client) GetMovieVideos(
	id int, o map[string]string,
) (*MovieVideos, error)

GetMovieVideos get the videos that have been added to a movie.

https://developers.themoviedb.org/3/movies/get-movie-videos

func (*Client) GetNetworkAlternativeNames

func (c *Client) GetNetworkAlternativeNames(
	id int,
) (*NetworkAlternativeNames, error)

GetNetworkAlternativeNames get the alternative names of a network.

https://developers.themoviedb.org/3/networks/get-network-alternative-names

func (*Client) GetNetworkDetails

func (c *Client) GetNetworkDetails(id int) (*NetworkDetails, error)

GetNetworkDetails get the details of a network.

https://developers.themoviedb.org/3/networks/get-network-details

func (*Client) GetNetworkImages

func (c *Client) GetNetworkImages(id int) (*NetworkImages, error)

GetNetworkImages get the TV network logos by id.

There are two image formats that are supported for networks, PNG's and SVG's. You can see which type the original file is by looking at the file_type field. We prefer SVG's as they are resolution independent and as such, the width and height are only there to reflect the original asset that was uploaded. An SVG can be scaled properly beyond those dimensions if you call them as a PNG.

https://developers.themoviedb.org/3/networks/get-network-images

func (*Client) GetPersonChanges

func (c *Client) GetPersonChanges(
	id int, o map[string]string,
) (*PersonChanges, error)

GetPersonChanges get the changes for a person. By default only the last 24 hours are returned.

You can query up to 14 days in a single query by using the start_date and end_date query parameters.

https://developers.themoviedb.org/3/people/get-person-changes

func (*Client) GetPersonCombinedCredits

func (c *Client) GetPersonCombinedCredits(
	id int, o map[string]string,
) (*PersonCombinedCredits, error)

GetPersonCombinedCredits get the movie and TV credits together in a single response.

https://developers.themoviedb.org/3/people/get-person-combined-credits

func (*Client) GetPersonDetails

func (c *Client) GetPersonDetails(
	id int, o map[string]string,
) (*PersonDetails, error)

GetPersonDetails get the primary person details by id.

Supports append_to_response.

https://developers.themoviedb.org/3/people/get-person-details

func (*Client) GetPersonExternalIDs

func (c *Client) GetPersonExternalIDs(
	id int, o map[string]string,
) (*PersonExternalIDs, error)

GetPersonExternalIDs get the external ids for a person. We currently support the following external sources.

External Sources: IMDb ID, Facebook, Freebase MID, Freebase ID, Instagram, TVRage ID, Twitter.

https://developers.themoviedb.org/3/people/get-person-external-ids

func (*Client) GetPersonImages

func (c *Client) GetPersonImages(id int) (*PersonImages, error)

GetPersonImages get the images for a person.

https://developers.themoviedb.org/3/people/get-person-images

func (*Client) GetPersonLatest

func (c *Client) GetPersonLatest(
	o map[string]string,
) (*PersonLatest, error)

GetPersonLatest get the most newly created person. This is a live response and will continuously change.

https://developers.themoviedb.org/3/people/get-latest-person

func (*Client) GetPersonMovieCredits

func (c *Client) GetPersonMovieCredits(
	id int, o map[string]string,
) (*PersonMovieCredits, error)

GetPersonMovieCredits get the movie credits for a person.

https://developers.themoviedb.org/3/people/get-person-movie-credits

func (*Client) GetPersonPopular

func (c *Client) GetPersonPopular(
	o map[string]string,
) (*PersonPopular, error)

GetPersonPopular get the list of popular people on TMDb. This list updates daily.

https://developers.themoviedb.org/3/people/get-popular-people

func (*Client) GetPersonTVCredits

func (c *Client) GetPersonTVCredits(
	id int, o map[string]string,
) (*PersonTVCredits, error)

GetPersonTVCredits get the TV show credits for a person.

https://developers.themoviedb.org/3/people/get-person-tv-credits

func (*Client) GetPersonTaggedImages

func (c *Client) GetPersonTaggedImages(
	id int, o map[string]string,
) (*PersonTaggedImages, error)

GetPersonTaggedImages get the images that this person has been tagged in.

https://developers.themoviedb.org/3/people/get-tagged-images

func (*Client) GetPersonTranslations

func (c *Client) GetPersonTranslations(
	id int, o map[string]string,
) (*PersonTranslations, error)

GetPersonTranslations get the images that this person has been tagged in.

https://developers.themoviedb.org/3/people/get-tagged-images

func (*Client) GetReviewDetails

func (c *Client) GetReviewDetails(
	id string,
) (*ReviewDetails, error)

GetReviewDetails get review details by id.

https://developers.themoviedb.org/3/movies/get-movie-details

func (*Client) GetSearchCollections

func (c *Client) GetSearchCollections(
	q string, o map[string]string,
) (*SearchCollections, error)

GetSearchCollections search for collections.

https://developers.themoviedb.org/3/search/search-collections

func (*Client) GetSearchCompanies

func (c *Client) GetSearchCompanies(
	q string, o map[string]string,
) (*SearchCompanies, error)

GetSearchCompanies search for companies.

https://developers.themoviedb.org/3/search/search-companies

func (*Client) GetSearchKeywords

func (c *Client) GetSearchKeywords(
	q string, o map[string]string,
) (*SearchKeywords, error)

GetSearchKeywords search for keywords.

https://developers.themoviedb.org/3/search/search-keywords

func (*Client) GetSearchMovies

func (c *Client) GetSearchMovies(
	q string, o map[string]string,
) (*SearchMovies, error)

GetSearchMovies search for keywords.

https://developers.themoviedb.org/3/search/search-movies

func (*Client) GetSearchMulti

func (c *Client) GetSearchMulti(
	q string, o map[string]string,
) (*SearchMulti, error)

GetSearchMulti search multiple models in a single request. Multi search currently supports searching for movies, tv shows and people in a single request.

https://developers.themoviedb.org/3/search/multi-search

func (*Client) GetSearchPeople

func (c *Client) GetSearchPeople(
	q string, o map[string]string,
) (*SearchPeople, error)

GetSearchPeople search for people.

https://developers.themoviedb.org/3/search/search-people

func (*Client) GetSearchTVShow

func (c *Client) GetSearchTVShow(
	q string, o map[string]string,
) (*SearchTVShows, error)

GetSearchTVShow search for a TV Show.

https://developers.themoviedb.org/3/search/search-tv-shows

func (*Client) GetTVAccountStates

func (c *Client) GetTVAccountStates(
	id int, o map[string]string,
) (*TVAccountStates, error)

GetTVAccountStates grab the following account states for a session:

TV show rating.

If it belongs to your watchlist.

If it belongs to your favourite list.

https://developers.themoviedb.org/3/tv/get-tv-account-states

func (*Client) GetTVAiringToday

func (c *Client) GetTVAiringToday(
	o map[string]string,
) (*TVAiringToday, error)

GetTVAiringToday get a list of TV shows that are airing today. This query is purely day based as we do not currently support airing times.

You can specify a to offset the day calculation. Without a specified timezone, this query defaults to EST (Eastern Time UTC-05:00).

https://developers.themoviedb.org/3/tv/get-tv-airing-today

func (*Client) GetTVAlternativeTitles

func (c *Client) GetTVAlternativeTitles(
	id int, o map[string]string,
) (*TVAlternativeTitles, error)

GetTVAlternativeTitles get all of the alternative titles for a TV show.

https://developers.themoviedb.org/3/tv/get-tv-alternative-titles

func (*Client) GetTVChanges

func (c *Client) GetTVChanges(
	id int, o map[string]string,
) (*TVChanges, error)

GetTVChanges get the changes for a TV show.

By default only the last 24 hours are returned. You can query up to 14 days in a single query by using the start_date and end_date query parameters.

TV show changes are different than movie changes in that there are some edits on seasons and episodes that will create a change entry at the show level. These can be found under the season and episode keys. These keys will contain a series_id and episode_id. You can use the and methods to look these up individually.

https://developers.themoviedb.org/3/tv/get-tv-changes

func (*Client) GetTVContentRatings

func (c *Client) GetTVContentRatings(
	id int, o map[string]string,
) (*TVContentRatings, error)

GetTVContentRatings get the list of content ratings (certifications) that have been added to a TV show.

https://developers.themoviedb.org/3/tv/get-tv-content-ratings

func (*Client) GetTVCredits

func (c *Client) GetTVCredits(
	id int, o map[string]string,
) (*TVCredits, error)

GetTVCredits get the credits (cast and crew) that have been added to a TV show.

https://developers.themoviedb.org/3/tv/get-tv-credits

func (*Client) GetTVDetails

func (c *Client) GetTVDetails(
	id int, o map[string]string,
) (*TVDetails, error)

GetTVDetails get the primary TV show details by id.

Supports append_to_response.

https://developers.themoviedb.org/3/tv/get-tv-details

func (*Client) GetTVEpisodeChanges

func (c *Client) GetTVEpisodeChanges(
	id int, o map[string]string,
) (*TVEpisodeChanges, error)

GetTVEpisodeChanges get the changes for a TV episode. By default only the last 24 hours are returned.

You can query up to 14 days in a single query by using the start_date and end_date query parameters.

https://developers.themoviedb.org/3/tv-episodes/get-tv-episode-changes

func (*Client) GetTVEpisodeCredits

func (c *Client) GetTVEpisodeCredits(
	id, s, e int,
) (*TVEpisodeCredits, error)

GetTVEpisodeCredits get the credits (cast, crew and guest stars) for a TV episode.

https://developers.themoviedb.org/3/tv-episodes/get-tv-episode-credits

func (*Client) GetTVEpisodeDetails

func (c *Client) GetTVEpisodeDetails(
	id, s, e int, o map[string]string,
) (*TVEpisodeDetails, error)

GetTVEpisodeDetails get the TV episode details by id.

Supports append_to_response.

https://developers.themoviedb.org/3/tv-episodes/get-tv-episode-details

func (*Client) GetTVEpisodeExternalIDs

func (c *Client) GetTVEpisodeExternalIDs(
	id, s, e int,
) (*TVEpisodeExternalIDs, error)

GetTVEpisodeExternalIDs get the external ids for a TV episode. We currently support the following external sources.

Media Databases: IMDb ID, TVDB ID, Freebase MID*, Freebase ID* TVRage ID*.

*Defunct or no longer available as a service.

https://developers.themoviedb.org/3/tv-episodes/get-tv-episode-external-ids

func (*Client) GetTVEpisodeGroups

func (c *Client) GetTVEpisodeGroups(
	id int, o map[string]string,
) (*TVEpisodeGroups, error)

GetTVEpisodeGroups get all of the episode groups that have been created for a TV show.

With a group ID you can call the get TV episode group details method.

https://developers.themoviedb.org/3/tv/get-tv-episode-groups

func (*Client) GetTVEpisodeGroupsDetails

func (c *Client) GetTVEpisodeGroupsDetails(
	id string, o map[string]string,
) (*TVEpisodeGroupsDetails, error)

GetTVEpisodeGroupsDetails the details of a TV episode group. Groups support 7 different types which are enumerated as the following:

1. Original air date 2. Absolute 3. DVD 4. Digital 5. Story arc 6. Production 7. TV

https://developers.themoviedb.org/3/tv-episode-groups/get-tv-episode-group-details

func (*Client) GetTVEpisodeImages

func (c *Client) GetTVEpisodeImages(
	id, s, e int,
) (*TVEpisodeImages, error)

GetTVEpisodeImages get the images that belong to a TV episode.

Querying images with a language parameter will filter the results. If you want to include a fallback language (especially useful for backdrops) you can use the include_image_language parameter. This should be a comma separated value like so: include_image_language=en,null.

https://developers.themoviedb.org/3/tv-episodes/get-tv-episode-images

func (*Client) GetTVEpisodeTranslations

func (c *Client) GetTVEpisodeTranslations(
	id, s, e int,
) (*TVEpisodeTranslations, error)

GetTVEpisodeTranslations get the translation data for an episode.

https://developers.themoviedb.org/3/tv-episodes/get-tv-episode-translations

func (*Client) GetTVEpisodeVideos

func (c *Client) GetTVEpisodeVideos(
	id, s, e int, o map[string]string,
) (*TVEpisodeVideos, error)

GetTVEpisodeVideos get the videos that have been added to a TV episode.

https://developers.themoviedb.org/3/tv-episodes/get-tv-episode-videos

func (*Client) GetTVExternalIDs

func (c *Client) GetTVExternalIDs(
	id int, o map[string]string,
) (*TVExternalIDs, error)

GetTVExternalIDs get the external ids for a TV show.

We currently support the following external sources.

Media Databases: IMDb ID, TVDB ID, Freebase MID*, Freebase ID* TVRage ID*.

Social IDs: Facebook, Instagram and Twitter.

*Defunct or no longer available as a service.

https://developers.themoviedb.org/3/tv/get-tv-external-ids

func (*Client) GetTVImages

func (c *Client) GetTVImages(
	id int, o map[string]string,
) (*TVImages, error)

GetTVImages get the images that belong to a TV show.

Querying images with a language parameter will filter the results. If you want to include a fallback language (especially useful for backdrops) you can use the include_image_language parameter. This should be a comma separated value like so: include_image_language=en,null.

https://developers.themoviedb.org/3/tv/get-tv-images

func (*Client) GetTVKeywords

func (c *Client) GetTVKeywords(id int) (*TVKeywords, error)

GetTVKeywords get the keywords that have been added to a TV show.

https://developers.themoviedb.org/3/tv/get-tv-keywords

func (*Client) GetTVLatest

func (c *Client) GetTVLatest(
	o map[string]string,
) (*TVLatest, error)

GetTVLatest get the most newly created TV show.

This is a live response and will continuously change.

https://developers.themoviedb.org/3/tv/get-latest-tv

func (*Client) GetTVOnTheAir

func (c *Client) GetTVOnTheAir(
	o map[string]string,
) (*TVOnTheAir, error)

GetTVOnTheAir get a list of shows that are currently on the air.

This query looks for any TV show that has an episode with an air date in the next 7 days.

https://developers.themoviedb.org/3/tv/get-tv-on-the-air

func (*Client) GetTVPopular

func (c *Client) GetTVPopular(
	o map[string]string,
) (*TVPopular, error)

GetTVPopular get a list of the current popular TV shows on TMDb. This list updates daily.

https://developers.themoviedb.org/3/tv/get-popular-tv-shows

func (*Client) GetTVRecommendations

func (c *Client) GetTVRecommendations(
	id int, o map[string]string,
) (*TVRecommendations, error)

GetTVRecommendations get the list of TV show recommendations for this item.

https://developers.themoviedb.org/3/tv/get-tv-recommendations

func (*Client) GetTVReviews

func (c *Client) GetTVReviews(
	id int, o map[string]string,
) (*TVReviews, error)

GetTVReviews get the reviews for a TV show.

https://developers.themoviedb.org/3/tv/get-tv-reviews

func (*Client) GetTVScreenedTheatrically

func (c *Client) GetTVScreenedTheatrically(
	id int,
) (*TVScreenedTheatrically, error)

GetTVScreenedTheatrically get a list of seasons or episodes that have been screened in a film festival or theatre.

https://developers.themoviedb.org/3/tv/get-screened-theatrically

func (*Client) GetTVSeasonChanges

func (c *Client) GetTVSeasonChanges(
	id int, o map[string]string,
) (*TVSeasonChanges, error)

GetTVSeasonChanges get the changes for a TV season. By default only the last 24 hours are returned.

You can query up to 14 days in a single query by using the start_date and end_date query parameters.

https://developers.themoviedb.org/3/tv-seasons/get-tv-season-changes

func (*Client) GetTVSeasonCredits

func (c *Client) GetTVSeasonCredits(
	id, s int, o map[string]string,
) (*TVSeasonCredits, error)

GetTVSeasonCredits get the credits for TV season.

https://developers.themoviedb.org/3/tv-seasons/get-tv-season-credits

func (*Client) GetTVSeasonDetails

func (c *Client) GetTVSeasonDetails(
	id, s int, o map[string]string,
) (*TVSeasonDetails, error)

GetTVSeasonDetails get the TV season details by id.

Supports append_to_response.

https://developers.themoviedb.org/3/tv-seasons/get-tv-season-details

func (*Client) GetTVSeasonExternalIDs

func (c *Client) GetTVSeasonExternalIDs(
	id, s int, o map[string]string,
) (*TVSeasonExternalIDs, error)

GetTVSeasonExternalIDs get the external ids for a TV season. We currently support the following external sources.

Media Databases: TVDB ID, Freebase MID*, Freebase ID* TVRage ID*.

*Defunct or no longer available as a service.

https://developers.themoviedb.org/3/tv-seasons/get-tv-season-external-ids

func (*Client) GetTVSeasonImages

func (c *Client) GetTVSeasonImages(
	id, s int, o map[string]string,
) (*TVSeasonImages, error)

GetTVSeasonImages get the images that belong to a TV season.

Querying images with a language parameter will filter the results. If you want to include a fallback language (especially useful for backdrops) you can use the include_image_language parameter. This should be a comma separated value like so: include_image_language=en,null.

https://developers.themoviedb.org/3/tv-seasons/get-tv-season-images

func (*Client) GetTVSeasonVideos

func (c *Client) GetTVSeasonVideos(
	id, s int, o map[string]string,
) (*TVSeasonVideos, error)

GetTVSeasonVideos get the videos that have been added to a TV season.

https://developers.themoviedb.org/3/tv-seasons/get-tv-season-videos

func (*Client) GetTVSimilar

func (c *Client) GetTVSimilar(
	id int, o map[string]string,
) (*TVSimilar, error)

GetTVSimilar a list of similar TV shows. These items are assembled by looking at keywords and genres.

https://developers.themoviedb.org/3/tv/get-similar-tv-shows

func (*Client) GetTVTopRated

func (c *Client) GetTVTopRated(
	o map[string]string,
) (*TVTopRated, error)

GetTVTopRated get a list of the top rated TV shows on TMDb.

https://developers.themoviedb.org/3/tv/get-top-rated-tv

func (*Client) GetTVTranslations

func (c *Client) GetTVTranslations(
	id int, o map[string]string,
) (*TVTranslations, error)

GetTVTranslations get a list fo translations that have been created for a TV Show.

https://developers.themoviedb.org/3/tv/get-tv-translations

func (*Client) GetTVVideos

func (c *Client) GetTVVideos(
	id int, o map[string]string,
) (*TVVideos, error)

GetTVVideos get the videos that have been added to a TV show.

https://developers.themoviedb.org/3/tv/get-tv-videos

func (*Client) GetTrending

func (c *Client) GetTrending(m, t string) (*Trending, error)

GetTrending get the daily or weekly trending items.

The daily trending list tracks items over the period of a day while items have a 24 hour half life. The weekly list tracks items over a 7 day period, with a 7 day half life.

Valid Media Types

all - Include all movies, TV shows and people in the results as a global trending list.

movie - Show the trending movies in the results.

tv - Show the trending tv shows in the results.

person - Show the trending people in the results.

Valid Time Windows

day - View the trending list for the day.

week - View the trending list for the week.

https://developers.themoviedb.org/3/trending/get-trending

func (*Client) SetClientConfig

func (c *Client) SetClientConfig(httpClient http.Client)

SetClientConfig sets a custom configuration for the http.Client.

type CollectionDetails

type CollectionDetails struct {
	ID           int64  `json:"id"`
	Name         string `json:"name"`
	Overview     string `json:"overview"`
	PosterPath   string `json:"poster_path"`
	BackdropPath string `json:"backdrop_path"`
	Parts        []struct {
		Adult            bool    `json:"adult"`
		BackdropPath     string  `json:"backdrop_path"`
		GenreIDs         []int64 `json:"genre_ids"`
		ID               int64   `json:"id"`
		OriginalLanguage string  `json:"original_language"`
		OriginalTitle    string  `json:"original_title"`
		Overview         string  `json:"overview"`
		PosterPath       string  `json:"poster_path"`
		ReleaseDate      string  `json:"release_date"`
		Title            string  `json:"title"`
		Video            bool    `json:"video"`
		VoteAverage      float32 `json:"vote_average"`
		VoteCount        int64   `json:"vote_count"`
		Popularity       float32 `json:"popularity"`
	} `json:"parts"`
}

CollectionDetails type is a struct for details JSON response.

type CollectionImages

type CollectionImages struct {
	ID        int64 `json:"id"`
	Backdrops []struct {
		AspectRatio float32 `json:"aspect_ratio"`
		FilePath    string  `json:"file_path"`
		Height      int     `json:"height"`
		Iso639_1    string  `json:"iso_639_1"`
		VoteAverage float32 `json:"vote_average"`
		VoteCount   int64   `json:"vote_count"`
		Width       int     `json:"width"`
	} `json:"backdrops"`
	Posters []struct {
		AspectRatio float32 `json:"aspect_ratio"`
		FilePath    string  `json:"file_path"`
		Height      int     `json:"height"`
		Iso639_1    string  `json:"iso_639_1"`
		VoteAverage float32 `json:"vote_average"`
		VoteCount   int64   `json:"vote_count"`
		Width       int     `json:"width"`
	} `json:"posters"`
}

CollectionImages type is a struct for images JSON response.

type CollectionTranslations

type CollectionTranslations struct {
	ID           int64 `json:"id"`
	Translations []struct {
		Iso3166_1   string `json:"iso_3166_1"`
		Iso639_1    string `json:"iso_639_1"`
		Name        string `json:"name"`
		EnglishName string `json:"english_name"`
		Data        struct {
			Title    string `json:"title"`
			Overview string `json:"overview"`
			Homepage string `json:"homepage"`
		} `json:"data"`
	} `json:"translations"`
}

CollectionTranslations type is a struct for translations JSON response.

type CompanyAlternativeNames

type CompanyAlternativeNames struct {
	ID      int64 `json:"id"`
	Results []struct {
		Name string `json:"name"`
		Type string `json:"type"`
	} `json:"results"`
}

CompanyAlternativeNames type is a struct for alternative names JSON response.

type CompanyDetails

type CompanyDetails struct {
	Description   string `json:"description"`
	Headquarters  string `json:"headquarters"`
	Homepage      string `json:"homepage"`
	ID            int64  `json:"id"`
	LogoPath      string `json:"logo_path"`
	Name          string `json:"name"`
	OriginCountry string `json:"origin_country"`
	ParentCompany struct {
		Name     string `json:"name"`
		ID       int64  `json:"id"`
		LogoPath string `json:"logo_path"`
	} `json:"parent_company"`
}

CompanyDetails type is a struct for details JSON response.

type CompanyImages

type CompanyImages struct {
	ID    int64 `json:"id"`
	Logos []struct {
		AspectRatio float32 `json:"aspect_ratio"`
		FilePath    string  `json:"file_path"`
		Height      int     `json:"height"`
		ID          string  `json:"id"`
		FileType    string  `json:"file_type"`
		VoteAverage float32 `json:"vote_average"`
		VoteCount   int64   `json:"vote_count"`
		Width       int     `json:"width"`
	} `json:"logos"`
}

CompanyImages type is a struct for images JSON response.

type ConfigurationAPI

type ConfigurationAPI struct {
	Images struct {
		BaseURL       string   `json:"base_url"`
		SecureBaseURL string   `json:"secure_base_url"`
		BackdropSizes []string `json:"backdrop_sizes"`
		LogoSizes     []string `json:"logo_sizes"`
		PosterSizes   []string `json:"poster_sizes"`
		ProfileSizes  []string `json:"profile_sizes"`
		StillSizes    []string `json:"still_sizes"`
	} `json:"images"`
	ChangeKeys []string `json:"change_keys"`
}

ConfigurationAPI type is a struct for api configuration JSON response.

type ConfigurationCountries

type ConfigurationCountries []struct {
	Iso3166_1   string `json:"iso_3166_1"`
	EnglishName string `json:"english_name"`
}

ConfigurationCountries type is a struct for countries configuration JSON response.

type ConfigurationJobs

type ConfigurationJobs []struct {
	Department string   `json:"department"`
	Jobs       []string `json:"jobs"`
}

ConfigurationJobs type is a struct for jobs configuration JSON response.

type ConfigurationLanguages

type ConfigurationLanguages []struct {
	Iso639_1    string `json:"iso_639_1"`
	EnglishName string `json:"english_name"`
	Name        string `json:"name"`
}

ConfigurationLanguages type is a struct for languages configuration JSON response.

type ConfigurationPrimaryTranslations

type ConfigurationPrimaryTranslations []string

ConfigurationPrimaryTranslations type is a struct for primary translations configuration JSON response.

type ConfigurationTimezones

type ConfigurationTimezones []struct {
	Iso3166_1 string   `json:"iso_3166_1"`
	Zones     []string `json:"zones"`
}

ConfigurationTimezones type is a struct for timezones configuration JSON response.

type CreditsDetails

type CreditsDetails struct {
	CreditType string `json:"credit_type"`
	Department string `json:"department"`
	Job        string `json:"job"`
	Media      struct {
		OriginalName     string   `json:"original_name"`
		ID               int64    `json:"id"`
		Name             string   `json:"name"`
		VoteCount        int64    `json:"vote_count"`
		VoteAverage      float32  `json:"vote_average"`
		FirstAirDate     string   `json:"first_air_date"`
		PosterPath       string   `json:"poster_path"`
		GenreIDs         []int64  `json:"genre_ids"`
		OriginalLanguage string   `json:"original_language"`
		BackdropPath     string   `json:"backdrop_path"`
		Overview         string   `json:"overview"`
		OriginCountry    []string `json:"origin_country"`
		Popularity       float32  `json:"popularity"`
		Character        string   `json:"character"`
		Episodes         []struct {
			AirDate       string `json:"air_date"`
			EpisodeNumber int64  `json:"episode_number"`
			Name          string `json:"name"`
			Overview      string `json:"overview"`
			SeasonNumber  int    `json:"season_number"`
			StillPath     string `json:"still_path"`
		} `json:"episodes"`
		Seasons []struct {
			AirDate      string `json:"air_date"`
			EpisodeCount int    `json:"episode_count"`
			ID           int64  `json:"id"`
			Name         string `json:"name"`
			Overview     string `json:"overview"`
			PosterPath   string `json:"poster_path"`
			SeasonNumber int    `json:"season_number"`
			ShowID       int64  `json:"show_id"`
		} `json:"seasons"`
	} `json:"media"`
	MediaType string `json:"media_type"`
	ID        string `json:"id"`
	Person    struct {
		Adult    bool   `json:"adult"`
		Gender   int    `json:"gender"`
		Name     string `json:"name"`
		ID       int64  `json:"id"`
		KnownFor []struct {
			Adult            bool     `json:"adult,omitempty"`
			BackdropPath     string   `json:"backdrop_path"`
			GenreIDs         []int64  `json:"genre_ids"`
			ID               int64    `json:"id"`
			OriginalLanguage string   `json:"original_language"`
			OriginalTitle    string   `json:"original_title,omitempty"`
			Overview         string   `json:"overview"`
			PosterPath       string   `json:"poster_path"`
			ReleaseDate      string   `json:"release_date,omitempty"`
			Title            string   `json:"title,omitempty"`
			Video            bool     `json:"video,omitempty"`
			VoteAverage      float32  `json:"vote_average"`
			VoteCount        int64    `json:"vote_count"`
			Popularity       float32  `json:"popularity"`
			MediaType        string   `json:"media_type"`
			OriginalName     string   `json:"original_name,omitempty"`
			Name             string   `json:"name,omitempty"`
			FirstAirDate     string   `json:"first_air_date,omitempty"`
			OriginCountry    []string `json:"origin_country,omitempty"`
		} `json:"known_for"`
		KnownForDepartment string  `json:"known_for_department"`
		ProfilePath        string  `json:"profile_path"`
		Popularity         float32 `json:"popularity"`
	} `json:"person"`
}

CreditsDetails type is a struct for credits JSON response.

type DiscoverMovie

type DiscoverMovie struct {
	Page         int64 `json:"page"`
	TotalResults int64 `json:"total_results"`
	TotalPages   int64 `json:"total_pages"`
	Results      []struct {
		VoteCount        int64   `json:"vote_count"`
		ID               int64   `json:"id"`
		Video            bool    `json:"video"`
		VoteAverage      float32 `json:"vote_average"`
		Title            string  `json:"title"`
		Popularity       float32 `json:"popularity"`
		PosterPath       string  `json:"poster_path"`
		OriginalLanguage string  `json:"original_language"`
		OriginalTitle    string  `json:"original_title"`
		GenreIDs         []int64 `json:"genre_ids"`
		BackdropPath     string  `json:"backdrop_path"`
		Adult            bool    `json:"adult"`
		Overview         string  `json:"overview"`
		ReleaseDate      string  `json:"release_date"`
	} `json:"results"`
}

DiscoverMovie type is a struct for movie JSON response.

type DiscoverTV

type DiscoverTV struct {
	Page         int64 `json:"page"`
	TotalResults int64 `json:"total_results"`
	TotalPages   int64 `json:"total_pages"`
	Results      []struct {
		OriginalName     string   `json:"original_name"`
		GenreIDs         []int64  `json:"genre_ids"`
		Name             string   `json:"name"`
		Popularity       float32  `json:"popularity"`
		OriginCountry    []string `json:"origin_country"`
		VoteCount        int64    `json:"vote_count"`
		FirstAirDate     string   `json:"first_air_date"`
		BackdropPath     string   `json:"backdrop_path"`
		OriginalLanguage string   `json:"original_language"`
		ID               int64    `json:"id"`
		VoteAverage      float32  `json:"vote_average"`
		Overview         string   `json:"overview"`
		PosterPath       string   `json:"poster_path"`
	} `json:"results"`
}

DiscoverTV type is a struct for tv JSON response.

type Error

type Error struct {
	StatusMessage string `json:"status_message,omitempty"`
	Success       bool   `json:"success,omitempty"`
	StatusCode    int    `json:"status_code,omitempty"`
}

Error type represents an error returned by the TMDB API.

func (Error) Error

func (e Error) Error() string

type FindByID

type FindByID struct {
	MovieResults []struct {
		Adult            bool    `json:"adult"`
		BackdropPath     string  `json:"backdrop_path"`
		GenreIDs         []int64 `json:"genre_ids"`
		ID               int64   `json:"id"`
		OriginalLanguage string  `json:"original_language"`
		OriginalTitle    string  `json:"original_title"`
		Overview         string  `json:"overview"`
		PosterPath       string  `json:"poster_path"`
		ReleaseDate      string  `json:"release_date"`
		Title            string  `json:"title"`
		Video            bool    `json:"video"`
		VoteAverage      float32 `json:"vote_average"`
		VoteCount        int64   `json:"vote_count"`
		Popularity       float32 `json:"popularity"`
	} `json:"movie_results,omitempty"`
	PersonResults []struct {
		Adult    bool   `json:"adult"`
		Gender   int    `json:"gender"`
		Name     string `json:"name"`
		ID       int64  `json:"id"`
		KnownFor []struct {
			Adult            bool    `json:"adult"`
			BackdropPath     string  `json:"backdrop_path"`
			GenreIDs         []int64 `json:"genre_ids"`
			ID               int64   `json:"id"`
			OriginalLanguage string  `json:"original_language"`
			OriginalTitle    string  `json:"original_title"`
			Overview         string  `json:"overview"`
			PosterPath       string  `json:"poster_path"`
			ReleaseDate      string  `json:"release_date"`
			Title            string  `json:"title"`
			Video            bool    `json:"video"`
			VoteAverage      float32 `json:"vote_average"`
			VoteCount        int64   `json:"vote_count"`
			Popularity       float32 `json:"popularity"`
			MediaType        string  `json:"media_type"`
		} `json:"known_for"`
		KnownForDepartment string  `json:"known_for_department"`
		ProfilePath        string  `json:"profile_path"`
		Popularity         float32 `json:"popularity"`
	} `json:"person_results,omitempty"`
	TvResults []struct {
		OriginalName     string   `json:"original_name"`
		ID               int64    `json:"id"`
		Name             string   `json:"name"`
		VoteCount        int64    `json:"vote_count"`
		VoteAverage      float32  `json:"vote_average"`
		FirstAirDate     string   `json:"first_air_date"`
		PosterPath       string   `json:"poster_path"`
		GenreIDs         []int64  `json:"genre_ids"`
		OriginalLanguage string   `json:"original_language"`
		BackdropPath     string   `json:"backdrop_path"`
		Overview         string   `json:"overview"`
		OriginCountry    []string `json:"origin_country"`
		Popularity       float32  `json:"popularity"`
	} `json:"tv_results,omitempty"`
	TvEpisodeResults []struct {
		AirDate        string  `json:"air_date"`
		EpisodeNumber  int     `json:"episode_number"`
		ID             int64   `json:"id"`
		Name           string  `json:"name"`
		Overview       string  `json:"overview"`
		ProductionCode string  `json:"production_code"`
		SeasonNumber   int     `json:"season_number"`
		ShowID         int64   `json:"show_id"`
		StillPath      string  `json:"still_path"`
		VoteAverage    float32 `json:"vote_average"`
		VoteCount      int64   `json:"vote_count"`
	} `json:"tv_episode_results,omitempty"`
	TvSeasonResults []struct {
		AirDate      string `json:"air_date"`
		Name         string `json:"name"`
		ID           int64  `json:"id"`
		SeasonNumber int    `json:"season_number"`
		ShowID       int64  `json:"show_id"`
	} `json:"tv_season_results,omitempty"`
}

FindByID type is a struct for find JSON response.

type GenreMovieList

type GenreMovieList struct {
	Genres []struct {
		ID   int64  `json:"id"`
		Name string `json:"name"`
	} `json:"genres"`
}

GenreMovieList type is a struct for genres movie list JSON response.

type GuestSessionRatedMovies

type GuestSessionRatedMovies struct {
	Page    int64 `json:"page"`
	Results []struct {
		Adult            bool    `json:"adult"`
		BackdropPath     string  `json:"backdrop_path"`
		GenreIDs         []int64 `json:"genre_ids"`
		ID               int64   `json:"id"`
		OriginalLanguage string  `json:"original_language"`
		OriginalTitle    string  `json:"original_title"`
		Overview         string  `json:"overview"`
		ReleaseDate      string  `json:"release_date"`
		PosterPath       string  `json:"poster_path"`
		Popularity       float32 `json:"popularity"`
		Title            string  `json:"title"`
		Video            bool    `json:"video"`
		VoteAverage      float32 `json:"vote_average"`
		VoteCount        int64   `json:"vote_count"`
		Rating           float32 `json:"rating"`
	} `json:"results"`
	TotalPages   int64 `json:"total_pages"`
	TotalResults int64 `json:"total_results"`
}

GuestSessionRatedMovies type is a struct for rated movies JSON response.

type GuestSessionRatedTVEpisodes

type GuestSessionRatedTVEpisodes struct {
	Page    int64 `json:"page"`
	Results []struct {
		AirDate        string  `json:"air_date"`
		EpisodeNumber  int     `json:"episode_number"`
		ID             int64   `json:"id"`
		Name           string  `json:"name"`
		Overview       string  `json:"overview"`
		ProductionCode string  `json:"production_code"`
		SeasonNumber   int     `json:"season_number"`
		ShowID         int64   `json:"show_id"`
		StillPath      string  `json:"still_path"`
		VoteAverage    float32 `json:"vote_average"`
		VoteCount      int64   `json:"vote_count"`
		Rating         float32 `json:"rating"`
	} `json:"results"`
	TotalPages   int64 `json:"total_pages"`
	TotalResults int64 `json:"total_results"`
}

GuestSessionRatedTVEpisodes type is a struct for rated tv episodes JSON response.

type GuestSessionRatedTVShows

type GuestSessionRatedTVShows struct {
	Page    int64 `json:"page"`
	Results []struct {
		BackdropPath     string   `json:"backdrop_path"`
		FirstAirDate     string   `json:"first_air_date"`
		GenreIDs         []int64  `json:"genre_ids"`
		ID               int64    `json:"id"`
		OriginalLanguage string   `json:"original_language"`
		OriginalName     string   `json:"original_name"`
		Overview         string   `json:"overview"`
		OriginCountry    []string `json:"origin_country"`
		PosterPath       string   `json:"poster_path"`
		Popularity       float32  `json:"popularity"`
		Name             string   `json:"name"`
		VoteAverage      float32  `json:"vote_average"`
		VoteCount        int64    `json:"vote_count"`
		Rating           float32  `json:"rating"`
	} `json:"results"`
	TotalPages   int64 `json:"total_pages"`
	TotalResults int64 `json:"total_results"`
}

GuestSessionRatedTVShows type is a struct for rated tv shows JSON response.

type KeywordDetails

type KeywordDetails struct {
	ID   int64  `json:"id"`
	Name string `json:"name"`
}

KeywordDetails type is a struct for keyword JSON response.

type KeywordMovies

type KeywordMovies struct {
	ID      int64 `json:"id"`
	Page    int64 `json:"page"`
	Results []struct {
		Adult            bool    `json:"adult"`
		BackdropPath     string  `json:"backdrop_path"`
		GenreIDs         []int64 `json:"genre_ids"`
		ID               int64   `json:"id"`
		OriginalLanguage string  `json:"original_language"`
		OriginalTitle    string  `json:"original_title"`
		Overview         string  `json:"overview"`
		PosterPath       string  `json:"poster_path"`
		ReleaseDate      string  `json:"release_date"`
		Title            string  `json:"title"`
		Video            bool    `json:"video"`
		VoteAverage      float32 `json:"vote_average"`
		VoteCount        int64   `json:"vote_count"`
		Popularity       float32 `json:"popularity"`
	} `json:"results"`
	TotalPages   int64 `json:"total_pages"`
	TotalResults int64 `json:"total_results"`
}

KeywordMovies type is a struct for movies that belong to a keyword JSON response.

type ListDetails

type ListDetails struct {
	CreatedBy     string `json:"created_by"`
	Description   string `json:"description"`
	FavoriteCount int64  `json:"favorite_count"`
	ID            string `json:"id"`
	Items         []struct {
		VoteAverage      float32 `json:"vote_average"`
		VoteCount        int64   `json:"vote_count"`
		ID               int64   `json:"id"`
		Video            bool    `json:"video"`
		MediaType        string  `json:"media_type"`
		Title            string  `json:"title"`
		Popularity       float32 `json:"popularity"`
		PosterPath       string  `json:"poster_path"`
		OriginalLanguage string  `json:"original_language"`
		OriginalTitle    string  `json:"original_title"`
		GenreIDs         []int64 `json:"genre_ids"`
		BackdropPath     string  `json:"backdrop_path"`
		Adult            bool    `json:"adult"`
		Overview         string  `json:"overview"`
		ReleaseDate      string  `json:"release_date"`
	} `json:"items"`
	ItemCount  int64  `json:"item_count"`
	Iso639_1   string `json:"iso_639_1"`
	Name       string `json:"name"`
	PosterPath string `json:"poster_path"`
}

ListDetails type is a struct for details JSON response.

type ListItemStatus

type ListItemStatus struct {
	ID          string `json:"id"`
	ItemPresent bool   `json:"item_present"`
}

ListItemStatus type is a struct for item status JSON response.

type MovieAccountStates

type MovieAccountStates struct {
	ID        int64           `json:"id"`
	Favorite  bool            `json:"favorite"`
	Rated     json.RawMessage `json:"rated"`
	Watchlist bool            `json:"watchlist"`
}

MovieAccountStates type is a struct for account states JSON response.

type MovieAlternativeTitles

type MovieAlternativeTitles struct {
	ID     int `json:"id,omitempty"`
	Titles []struct {
		Iso3166_1 string `json:"iso_3166_1"`
		Title     string `json:"title"`
		Type      string `json:"type"`
	} `json:"titles"`
}

MovieAlternativeTitles type is a struct for alternative titles JSON response.

type MovieAlternativeTitlesAppend

type MovieAlternativeTitlesAppend struct {
	AlternativeTitles *MovieAlternativeTitles `json:"alternative_titles,omitempty"`
}

MovieAlternativeTitlesAppend type is a struct for alternative titles in append to response.

type MovieChanges

type MovieChanges struct {
	Changes []struct {
		Key   string `json:"key"`
		Items []struct {
			ID            json.RawMessage `json:"id"`
			Action        json.RawMessage `json:"action"`
			Time          json.RawMessage `json:"time"`
			Iso639_1      json.RawMessage `json:"iso_639_1"`
			Value         json.RawMessage `json:"value"`
			OriginalValue json.RawMessage `json:"original_value"`
		} `json:"items"`
	} `json:"changes"`
}

MovieChanges type is a struct for changes JSON response.

type MovieChangesAppend

type MovieChangesAppend struct {
	Changes *MovieChanges `json:"changes,omitempty"`
}

MovieChangesAppend type is a struct for changes in append to response.

type MovieCredits

type MovieCredits struct {
	ID   int64 `json:"id,omitempty"`
	Cast []struct {
		CastID      int64  `json:"cast_id"`
		Character   string `json:"character"`
		CreditID    string `json:"credit_id"`
		Gender      int    `json:"gender"`
		ID          int64  `json:"id"`
		Name        string `json:"name"`
		Order       int    `json:"order"`
		ProfilePath string `json:"profile_path"`
	} `json:"cast"`
	Crew []struct {
		CreditID    string `json:"credit_id"`
		Department  string `json:"department"`
		Gender      int    `json:"gender"`
		ID          int64  `json:"id"`
		Job         string `json:"job"`
		Name        string `json:"name"`
		ProfilePath string `json:"profile_path"`
	} `json:"crew"`
}

MovieCredits type is a struct for credits JSON response.

type MovieCreditsAppend

type MovieCreditsAppend struct {
	Credits struct {
		*MovieCredits
	} `json:"credits,omitempty"`
}

MovieCreditsAppend type is a struct for credits in append to response.

type MovieDetails

type MovieDetails struct {
	Adult               bool   `json:"adult"`
	BackdropPath        string `json:"backdrop_path"`
	BelongsToCollection struct {
		ID           int64  `json:"id"`
		Name         string `json:"name"`
		PosterPath   string `json:"poster_path"`
		BackdropPath string `json:"backdrop_path"`
	} `json:"belongs_to_collection"`
	Budget int64 `json:"budget"`
	Genres []struct {
		ID   int64  `json:"id"`
		Name string `json:"name"`
	} `json:"genres"`
	Homepage            string  `json:"homepage"`
	ID                  int64   `json:"id"`
	IMDbID              string  `json:"imdb_id"`
	OriginalLanguage    string  `json:"original_language"`
	OriginalTitle       string  `json:"original_title"`
	Overview            string  `json:"overview"`
	Popularity          float32 `json:"popularity"`
	PosterPath          string  `json:"poster_path"`
	ProductionCompanies []struct {
		Name          string `json:"name"`
		ID            int64  `json:"id"`
		LogoPath      string `json:"logo_path"`
		OriginCountry string `json:"origin_country"`
	} `json:"production_companies"`
	ProductionCountries []struct {
		Iso3166_1 string `json:"iso_31661_1"`
		Name      string `json:"name"`
	} `json:"production_countries"`
	ReleaseDate     string `json:"release_date"`
	Revenue         int64  `json:"revenue"`
	Runtime         int    `json:"runtime"`
	SpokenLanguages []struct {
		Iso639_1 string `json:"iso_639_1"`
		Name     string `json:"name"`
	} `json:"spoken_languages"`
	Status      string  `json:"status"`
	Tagline     string  `json:"tagline"`
	Title       string  `json:"title"`
	Video       bool    `json:"video"`
	VoteAverage float32 `json:"vote_average"`
	VoteCount   int64   `json:"vote_count"`
	*MovieAlternativeTitlesAppend
	*MovieChangesAppend
	*MovieCreditsAppend
	*MovieExternalIDsAppend
	*MovieImagesAppend
	*MovieKeywordsAppend
	*MovieReleaseDatesAppend
	*MovieVideosAppend
	*MovieTranslationsAppend
	*MovieRecommendationsAppend
	*MovieSimilarAppend
	*MovieReviewsAppend
	*MovieListsAppend
}

MovieDetails type is a struct for movie details JSON response.

type MovieExternalIDs

type MovieExternalIDs struct {
	IMDbID      string `json:"imdb_id"`
	FacebookID  string `json:"facebook_id"`
	InstagramID string `json:"instagram_id"`
	TwitterID   string `json:"twitter_id"`
	ID          int64  `json:"id,omitempty"`
}

MovieExternalIDs type is a struct for external ids JSON response.

type MovieExternalIDsAppend

type MovieExternalIDsAppend struct {
	*MovieExternalIDs `json:"external_ids,omitempty"`
}

MovieExternalIDsAppend type is a struct for external ids in append to response.

type MovieImages

type MovieImages struct {
	ID        int64 `json:"id,omitempty"`
	Backdrops []struct {
		AspectRatio float32 `json:"aspect_ratio"`
		FilePath    string  `json:"file_path"`
		Height      int     `json:"height"`
		Iso639_1    string  `json:"iso_639_1"`
		VoteAverage float32 `json:"vote_average"`
		VoteCount   int64   `json:"vote_count"`
		Width       int     `json:"width"`
	} `json:"backdrops"`
	Posters []struct {
		AspectRatio float32 `json:"aspect_ratio"`
		FilePath    string  `json:"file_path"`
		Height      int     `json:"height"`
		Iso639_1    string  `json:"iso_639_1"`
		VoteAverage float32 `json:"vote_average"`
		VoteCount   int64   `json:"vote_count"`
		Width       int     `json:"width"`
	} `json:"posters"`
}

MovieImages type is a struct for images JSON response.

type MovieImagesAppend

type MovieImagesAppend struct {
	Images *MovieImages `json:"images,omitempty"`
}

MovieImagesAppend type is a struct for images in append to response.

type MovieKeywords

type MovieKeywords struct {
	ID       int64 `json:"id,omitempty"`
	Keywords []struct {
		ID   int64  `json:"id"`
		Name string `json:"name"`
	} `json:"keywords"`
}

MovieKeywords type is a struct for keywords JSON response.

type MovieKeywordsAppend

type MovieKeywordsAppend struct {
	Keywords struct {
		*MovieKeywords
	} `json:"keywords,omitempty"`
}

MovieKeywordsAppend type is a struct for keywords in append to response.

type MovieLatest

type MovieLatest struct {
	*MovieDetails
}

MovieLatest type is a struct for latest JSON response.

type MovieLists

type MovieLists struct {
	ID      int64 `json:"id"`
	Page    int64 `json:"page"`
	Results []struct {
		Description   string `json:"description"`
		FavoriteCount int64  `json:"favorite_count"`
		ID            int64  `json:"id"`
		ItemCount     int64  `json:"item_count"`
		Iso639_1      string `json:"iso_639_1"`
		ListType      string `json:"list_type"`
		Name          string `json:"name"`
		PosterPath    string `json:"poster_path"`
	} `json:"results"`
	TotalPages   int64 `json:"total_pages"`
	TotalResults int64 `json:"total_results"`
}

MovieLists type is a struct for lists JSON response.

type MovieListsAppend

type MovieListsAppend struct {
	Lists *MovieLists `json:"lists,omitempty"`
}

MovieListsAppend type is a struct for lists in append to response.

type MovieNowPlaying

type MovieNowPlaying struct {
	Page    int64 `json:"page"`
	Results []struct {
		PosterPath  string `json:"poster_path"`
		Adult       bool   `json:"adult"`
		Overview    string `json:"overview"`
		ReleaseDate string `json:"release_date"`
		Genres      []struct {
			ID   int64  `json:"id"`
			Name string `json:"name"`
		} `json:"genres"`
		ID               int64   `json:"id"`
		OriginalTitle    string  `json:"original_title"`
		OriginalLanguage string  `json:"original_language"`
		Title            string  `json:"title"`
		BackdropPath     string  `json:"backdrop_path"`
		Popularity       float32 `json:"popularity"`
		VoteCount        int64   `json:"vote_count"`
		Video            bool    `json:"video"`
		VoteAverage      float32 `json:"vote_average"`
	} `json:"results"`
	Dates struct {
		Maximum string `json:"maximum"`
		Minimum string `json:"minimum"`
	} `json:"dates"`
	TotalPages   int64 `json:"total_pages"`
	TotalResults int64 `json:"total_results"`
}

MovieNowPlaying type is a struct for now playing JSON response.

type MoviePopular

type MoviePopular struct {
	Page    int64 `json:"page"`
	Results []struct {
		PosterPath  string `json:"poster_path"`
		Adult       bool   `json:"adult"`
		Overview    string `json:"overview"`
		ReleaseDate string `json:"release_date"`
		Genres      []struct {
			ID   int64  `json:"id"`
			Name string `json:"name"`
		} `json:"genres"`
		ID               int64   `json:"id"`
		OriginalTitle    string  `json:"original_title"`
		OriginalLanguage string  `json:"original_language"`
		Title            string  `json:"title"`
		BackdropPath     string  `json:"backdrop_path"`
		Popularity       float32 `json:"popularity"`
		VoteCount        int64   `json:"vote_count"`
		Video            bool    `json:"video"`
		VoteAverage      float32 `json:"vote_average"`
	} `json:"results"`
	TotalPages   int64 `json:"total_pages"`
	TotalResults int64 `json:"total_results"`
}

MoviePopular type is a struct for popular JSON response.

type MovieRecommendations

type MovieRecommendations struct {
	Page    int64 `json:"page"`
	Results []struct {
		PosterPath       string  `json:"poster_path"`
		Adult            bool    `json:"adult"`
		Overview         string  `json:"overview"`
		ReleaseDate      string  `json:"release_date"`
		GenreIDs         []int64 `json:"genre_ids"`
		ID               int64   `json:"id"`
		OriginalTitle    string  `json:"original_title"`
		OriginalLanguage string  `json:"original_language"`
		Title            string  `json:"title"`
		BackdropPath     string  `json:"backdrop_path"`
		Popularity       float32 `json:"popularity"`
		VoteCount        int64   `json:"vote_count"`
		Video            bool    `json:"video"`
		VoteAverage      float32 `json:"vote_average"`
	} `json:"results"`
	TotalPages   int64 `json:"total_pages"`
	TotalResults int64 `json:"total_results"`
}

MovieRecommendations type is a struct for recommendations JSON response.

type MovieRecommendationsAppend

type MovieRecommendationsAppend struct {
	Recommendations *MovieRecommendations `json:"recommendations,omitempty"`
}

MovieRecommendationsAppend type is a struct for recommendations in append to response.

type MovieReleaseDates

type MovieReleaseDates struct {
	ID      int64 `json:"id,omitempty"`
	Results []struct {
		Iso3166_1    string `json:"iso_3166_1"`
		ReleaseDates []struct {
			Certification string `json:"certification"`
			Iso639_1      string `json:"iso_639_1"`
			ReleaseDate   string `json:"release_date"`
			Type          int    `json:"type"`
			Note          string `json:"note"`
		} `json:"release_dates"`
	} `json:"results"`
}

MovieReleaseDates type is a struct for release dates JSON response.

type MovieReleaseDatesAppend

type MovieReleaseDatesAppend struct {
	ReleaseDates *MovieReleaseDates `json:"release_dates,omitempty"`
}

MovieReleaseDatesAppend type is a struct for release dates in append to response.

type MovieReviews

type MovieReviews struct {
	ID      int64 `json:"id,omitempty"`
	Page    int64 `json:"page"`
	Results []struct {
		ID      string `json:"id"`
		Author  string `json:"author"`
		Content string `json:"content"`
		URL     string `json:"url"`
	} `json:"results"`
	TotalPages   int64 `json:"total_pages"`
	TotalResults int64 `json:"total_results"`
}

MovieReviews type is a struct for reviews JSON response.

type MovieReviewsAppend

type MovieReviewsAppend struct {
	Reviews struct {
		*MovieReviews
	} `json:"reviews,omitempty"`
}

MovieReviewsAppend type is a struct for reviews in append to response.

type MovieSimilar

type MovieSimilar struct {
	*MovieRecommendations
}

MovieSimilar type is a struct for similar movies JSON response.

type MovieSimilarAppend

type MovieSimilarAppend struct {
	Similar *MovieSimilar `json:"similar,omitempty"`
}

MovieSimilarAppend type is a struct for similar movies in append to response.

type MovieTopRated

type MovieTopRated struct {
	*MoviePopular
}

MovieTopRated type is a struct for top rated JSON response.

type MovieTranslations

type MovieTranslations struct {
	ID           int64 `json:"id,omitempty"`
	Translations []struct {
		Iso639_1    string `json:"iso_639_1"`
		Iso3166_1   string `json:"iso_3166_1"`
		Name        string `json:"name"`
		EnglishName string `json:"english_name"`
		Data        struct {
			Title    string `json:"title"`
			Overview string `json:"overview"`
			Homepage string `json:"homepage"`
		} `json:"data"`
	} `json:"translations"`
}

MovieTranslations type is a struct for translations JSON response.

type MovieTranslationsAppend

type MovieTranslationsAppend struct {
	Translations *MovieTranslations `json:"translations,omitempty"`
}

MovieTranslationsAppend type is a struct for translations in append to response.

type MovieUpcoming

type MovieUpcoming struct {
	*MovieNowPlaying
}

MovieUpcoming type is a struct for upcoming JSON response.

type MovieVideos

type MovieVideos struct {
	ID      int64 `json:"id,omitempty"`
	Results []struct {
		ID        string `json:"id"`
		Iso639_1  string `json:"iso_639_1"`
		Iso3166_1 string `json:"iso_3166_1"`
		Key       string `json:"key"`
		Name      string `json:"name"`
		Site      string `json:"site"`
		Size      int    `json:"size"`
		Type      string `json:"type"`
	} `json:"results"`
}

MovieVideos type is a struct for videos JSON response.

type MovieVideosAppend

type MovieVideosAppend struct {
	Videos struct {
		*MovieVideos
	} `json:"videos,omitempty"`
}

MovieVideosAppend type is a struct for videos in append to response.

type NetworkAlternativeNames

type NetworkAlternativeNames struct {
	ID      int64 `json:"id"`
	Results []struct {
		Name string `json:"name"`
		Type string `json:"type"`
	} `json:"results"`
}

NetworkAlternativeNames type is a struct for alternative names JSON response.

type NetworkDetails

type NetworkDetails struct {
	Headquarters  string `json:"headquarters"`
	Homepage      string `json:"homepage"`
	ID            int64  `json:"id"`
	Name          string `json:"name"`
	OriginCountry string `json:"origin_country"`
}

NetworkDetails type is a struct for details JSON response.

type NetworkImages

type NetworkImages struct {
	ID    int64 `json:"id"`
	Logos []struct {
		AspectRatio float64 `json:"aspect_ratio"`
		FilePath    string  `json:"file_path"`
		Height      int     `json:"height"`
		ID          string  `json:"id"`
		FileType    string  `json:"file_type"`
		VoteAverage float64 `json:"vote_average"`
		VoteCount   int64   `json:"vote_count"`
		Width       int     `json:"width"`
	} `json:"logos"`
}

NetworkImages type is a struct for images JSON response.

type PersonChanges

type PersonChanges struct {
	Changes []struct {
		Key   string `json:"key"`
		Items []struct {
			ID            string `json:"id"`
			Action        string `json:"action"`
			Time          string `json:"time"`
			OriginalValue struct {
				Profile struct {
					FilePath string `json:"file_path"`
				} `json:"profile"`
			} `json:"original_value"`
		} `json:"items"`
	} `json:"changes"`
}

PersonChanges type is a struct for changes JSON response.

type PersonChangesAppend

type PersonChangesAppend struct {
	Changes *PersonChanges `json:"changes,omitempty"`
}

PersonChangesAppend type is a struct for changes JSON in append to response.

type PersonCombinedCredits

type PersonCombinedCredits struct {
	Cast []struct {
		ID               int64    `json:"id"`
		Character        string   `json:"character"`
		OriginalTitle    string   `json:"original_title"`
		Overview         string   `json:"overview"`
		VoteCount        int64    `json:"vote_count"`
		Video            bool     `json:"video"`
		MediaType        string   `json:"media_type"`
		ReleaseDate      string   `json:"release_date"`
		VoteAverage      float32  `json:"vote_average"`
		Title            string   `json:"title"`
		Popularity       float32  `json:"popularity"`
		OriginalLanguage string   `json:"original_language"`
		GenreIDs         []int64  `json:"genre_ids"`
		BackdropPath     string   `json:"backdrop_path"`
		Adult            bool     `json:"adult"`
		PosterPath       string   `json:"poster_path"`
		CreditID         string   `json:"credit_id"`
		EpisodeCount     int      `json:"episode_count"`
		OriginCountry    []string `json:"origin_country"`
		OriginalName     string   `json:"original_name"`
		Name             string   `json:"name"`
		FirstAirDate     string   `json:"first_air_date"`
	} `json:"cast"`
	Crew []struct {
		ID               int64   `json:"id"`
		Department       string  `json:"department"`
		OriginalLanguage string  `json:"original_language"`
		OriginalTitle    string  `json:"original_title"`
		Job              string  `json:"job"`
		Overview         string  `json:"overview"`
		VoteCount        int64   `json:"vote_count"`
		Video            bool    `json:"video"`
		MediaType        string  `json:"media_type"`
		PosterPath       string  `json:"poster_path"`
		BackdropPath     string  `json:"backdrop_path"`
		Title            string  `json:"title"`
		Popularity       float32 `json:"popularity"`
		GenreIDs         []int64 `json:"genre_ids"`
		VoteAverage      float32 `json:"vote_average"`
		Adult            bool    `json:"adult"`
		ReleaseDate      string  `json:"release_date"`
		CreditID         string  `json:"credit_id"`
	} `json:"crew"`
	ID int64 `json:"id,omitempty"`
}

PersonCombinedCredits type is a struct for combined credits JSON response.

type PersonCombinedCreditsAppend

type PersonCombinedCreditsAppend struct {
	CombinedCredits *PersonCombinedCredits `json:"combined_credits,omitempty"`
}

PersonCombinedCreditsAppend type is a struct for combined credits in append to response.

type PersonDetails

type PersonDetails struct {
	Birthday           string   `json:"birthday"`
	KnownForDepartment string   `json:"known_for_department"`
	Deathday           string   `json:"deathday"`
	ID                 int64    `json:"id"`
	Name               string   `json:"name"`
	AlsoKnownAs        []string `json:"also_known_as"`
	Gender             int      `json:"gender"`
	Biography          string   `json:"biography"`
	Popularity         float32  `json:"popularity"`
	PlaceOfBirth       string   `json:"place_of_birth"`
	ProfilePath        string   `json:"profile_path"`
	Adult              bool     `json:"adult"`
	IMDbID             string   `json:"imdb_id"`
	Homepage           string   `json:"homepage"`
	*PersonChangesAppend
	*PersonMovieCreditsAppend
	*PersonTVCreditsAppend
	*PersonCombinedCreditsAppend
	*PersonExternalIDsAppend
	*PersonImagesAppend
	*PersonTaggedImagesAppend
	*PersonTranslationsAppend
}

PersonDetails type is a struct for details JSON response.

type PersonExternalIDs

type PersonExternalIDs struct {
	ID          int64  `json:"id,omitempty"`
	TwitterID   string `json:"twitter_id"`
	FacebookID  string `json:"facebook_id"`
	TvrageID    int64  `json:"tvrage_id"`
	InstagramID string `json:"instagram_id"`
	FreebaseMid string `json:"freebase_mid"`
	IMDbID      string `json:"imdb_id"`
	FreebaseID  string `json:"freebase_id"`
}

PersonExternalIDs type is a struct for external ids JSON response.

type PersonExternalIDsAppend

type PersonExternalIDsAppend struct {
	ExternalIDs *PersonExternalIDs `json:"external_ids,omitempty"`
}

PersonExternalIDsAppend type is a struct for external ids in append to response.

type PersonImages

type PersonImages struct {
	Profiles []struct {
		Iso639_1    string  `json:"iso_639_1"`
		Width       int     `json:"width"`
		Height      int     `json:"height"`
		VoteCount   int64   `json:"vote_count"`
		VoteAverage float32 `json:"vote_average"`
		FilePath    string  `json:"file_path"`
		AspectRatio float32 `json:"aspect_ratio"`
	} `json:"profiles"`
	ID int `json:"id,omitempty"`
}

PersonImages type is a struct for images JSON response.

type PersonImagesAppend

type PersonImagesAppend struct {
	Images *PersonImages `json:"images,omitempty"`
}

PersonImagesAppend type is a struct for images in append to response.

type PersonLatest

type PersonLatest struct {
	Birthday     string   `json:"birthday"`
	Deathday     string   `json:"deathday"`
	ID           int64    `json:"id"`
	Name         string   `json:"name"`
	AlsoKnownAs  []string `json:"also_known_as"`
	Gender       int      `json:"gender"`
	Biography    string   `json:"biography"`
	Popularity   float32  `json:"popularity"`
	PlaceOfBirth string   `json:"place_of_birth"`
	ProfilePath  string   `json:"profile_path"`
	Adult        bool     `json:"adult"`
	IMDbID       string   `json:"imdb_id"`
	Homepage     string   `json:"homepage"`
}

PersonLatest type is a struct for latest JSON response.

type PersonMovieCredits

type PersonMovieCredits struct {
	Cast []struct {
		Character        string  `json:"character"`
		CreditID         string  `json:"credit_id"`
		PosterPath       string  `json:"poster_path"`
		ID               int64   `json:"id"`
		Video            bool    `json:"video"`
		VoteCount        int64   `json:"vote_count"`
		Adult            bool    `json:"adult"`
		BackdropPath     string  `json:"backdrop_path"`
		GenreIDs         []int64 `json:"genre_ids"`
		OriginalLanguage string  `json:"original_language"`
		OriginalTitle    string  `json:"original_title"`
		Popularity       float32 `json:"popularity"`
		Title            string  `json:"title"`
		VoteAverage      float32 `json:"vote_average"`
		Overview         string  `json:"overview"`
		ReleaseDate      string  `json:"release_date"`
	} `json:"cast"`
	Crew []struct {
		ID               int64   `json:"id"`
		Department       string  `json:"department"`
		OriginalLanguage string  `json:"original_language"`
		OriginalTitle    string  `json:"original_title"`
		Job              string  `json:"job"`
		Overview         string  `json:"overview"`
		VoteCount        int64   `json:"vote_count"`
		Video            bool    `json:"video"`
		ReleaseDate      string  `json:"release_date"`
		VoteAverage      float32 `json:"vote_average"`
		Title            string  `json:"title"`
		Popularity       float32 `json:"popularity"`
		GenreIDs         []int64 `json:"genre_ids"`
		BackdropPath     string  `json:"backdrop_path"`
		Adult            bool    `json:"adult"`
		PosterPath       string  `json:"poster_path"`
		CreditID         string  `json:"credit_id"`
	} `json:"crew"`
	ID int64 `json:"id,omitempty"`
}

PersonMovieCredits type is a struct for movie credits JSON response.

type PersonMovieCreditsAppend

type PersonMovieCreditsAppend struct {
	MovieCredits *PersonMovieCredits `json:"movie_credits,omitempty"`
}

PersonMovieCreditsAppend type is a struct for movie credits in append to response.

type PersonPopular

type PersonPopular struct {
	Page         int64 `json:"page"`
	TotalResults int64 `json:"total_results"`
	TotalPages   int64 `json:"total_pages"`
	Results      []struct {
		Popularity  float32 `json:"popularity"`
		ID          int64   `json:"id"`
		ProfilePath string  `json:"profile_path"`
		Name        string  `json:"name"`
		KnownFor    []struct {
			OriginalTitle    string   `json:"original_title,omitempty"`
			OriginalName     string   `json:"original_name,omitempty"`
			ID               int64    `json:"id"`
			MediaType        string   `json:"media_type"`
			Name             string   `json:"name,omitempty"`
			Title            string   `json:"title,omitempty"`
			VoteCount        int64    `json:"vote_count"`
			VoteAverage      float32  `json:"vote_average"`
			PosterPath       string   `json:"poster_path"`
			FirstAirDate     string   `json:"first_air_date,omitempty"`
			ReleaseDate      string   `json:"release_date,omitempty"`
			Popularity       float32  `json:"popularity"`
			GenreIDs         []int64  `json:"genre_ids"`
			OriginalLanguage string   `json:"original_language"`
			BackdropPath     string   `json:"backdrop_path"`
			Overview         string   `json:"overview"`
			OriginCountry    []string `json:"origin_country,omitempty"`
		} `json:"known_for"`
		Adult bool `json:"adult"`
	} `json:"results"`
}

PersonPopular type is a struct for popular JSON response.

type PersonTVCredits

type PersonTVCredits struct {
	Cast []struct {
		CreditID         string   `json:"credit_id"`
		OriginalName     string   `json:"original_name"`
		ID               int64    `json:"id"`
		GenreIDs         []int64  `json:"genre_ids"`
		Character        string   `json:"character"`
		Name             string   `json:"name"`
		PosterPath       string   `json:"poster_path"`
		VoteCount        int64    `json:"vote_count"`
		VoteAverage      float32  `json:"vote_average"`
		Popularity       float32  `json:"popularity"`
		EpisodeCount     int      `json:"episode_count"`
		OriginalLanguage string   `json:"original_language"`
		FirstAirDate     string   `json:"first_air_date"`
		BackdropPath     string   `json:"backdrop_path"`
		Overview         string   `json:"overview"`
		OriginCountry    []string `json:"origin_country"`
	} `json:"cast"`
	Crew []struct {
		ID               int64    `json:"id"`
		Department       string   `json:"department"`
		OriginalLanguage string   `json:"original_language"`
		EpisodeCount     int      `json:"episode_count"`
		Job              string   `json:"job"`
		Overview         string   `json:"overview"`
		OriginCountry    []string `json:"origin_country"`
		OriginalName     string   `json:"original_name"`
		GenreIDs         []int64  `json:"genre_ids"`
		Name             string   `json:"name"`
		FirstAirDate     string   `json:"first_air_date"`
		BackdropPath     string   `json:"backdrop_path"`
		Popularity       float32  `json:"popularity"`
		VoteCount        int64    `json:"vote_count"`
		VoteAverage      float32  `json:"vote_average"`
		PosterPath       string   `json:"poster_path"`
		CreditID         string   `json:"credit_id"`
	} `json:"crew"`
	ID int64 `json:"id,omitempty"`
}

PersonTVCredits type is a struct for tv credits JSON response.

type PersonTVCreditsAppend

type PersonTVCreditsAppend struct {
	TVCredits *PersonTVCredits `json:"tv_credits,omitempty"`
}

PersonTVCreditsAppend type is a struct for tv credits in append to response.

type PersonTaggedImages

type PersonTaggedImages struct {
	ID           int64 `json:"id"`
	Page         int64 `json:"page"`
	TotalResults int64 `json:"total_results"`
	TotalPages   int64 `json:"total_pages"`
	Results      []struct {
		Iso639_1    string  `json:"iso_639_1"`
		VoteCount   int64   `json:"vote_count"`
		MediaType   string  `json:"media_type"`
		FilePath    string  `json:"file_path"`
		AspectRatio float32 `json:"aspect_ratio"`
		Media       struct {
			Popularity       float32 `json:"popularity"`
			VoteCount        int64   `json:"vote_count"`
			Video            bool    `json:"video"`
			PosterPath       string  `json:"poster_path"`
			ID               int64   `json:"id"`
			Adult            bool    `json:"adult"`
			BackdropPath     string  `json:"backdrop_path"`
			OriginalLanguage string  `json:"original_language"`
			OriginalTitle    string  `json:"original_title"`
			GenreIDs         []int64 `json:"genre_ids"`
			Title            string  `json:"title"`
			VoteAverage      float32 `json:"vote_average"`
			Overview         string  `json:"overview"`
			ReleaseDate      string  `json:"release_date"`
		} `json:"media"`
		Height      int     `json:"height"`
		VoteAverage float32 `json:"vote_average"`
		Width       int     `json:"width"`
	} `json:"results"`
}

PersonTaggedImages type is a struct for tagged images JSON response.

type PersonTaggedImagesAppend

type PersonTaggedImagesAppend struct {
	TaggedImages *PersonTaggedImages `json:"tagged_images,omitempty"`
}

PersonTaggedImagesAppend type is a struct for tagged images in append to response.

type PersonTranslations

type PersonTranslations struct {
	Translations []struct {
		Iso639_1  string `json:"iso_639_1"`
		Iso3166_1 string `json:"iso_3166_1"`
		Name      string `json:"name"`
		Data      struct {
			Biography string `json:"biography"`
		} `json:"data"`
		EnglishName string `json:"english_name"`
	} `json:"translations"`
	ID int64 `json:"id,omitempty"`
}

PersonTranslations type is a struct for translations JSON response.

type PersonTranslationsAppend

type PersonTranslationsAppend struct {
	Translations *PersonTranslations `json:"translations,omitempty"`
}

PersonTranslationsAppend type is a struct for translations in append to response.

type RequestToken

type RequestToken struct {
	Success        bool   `json:"success"`
	ExpiresAt      string `json:"expires_at"`
	GuestSessionID string `json:"guest_session_id,omitempty"`
	RequestToken   string `json:"request_token,omitempty"`
}

RequestToken type is a struct for request token JSON response.

type ReviewDetails

type ReviewDetails struct {
	ID         string `json:"id"`
	Author     string `json:"author"`
	Content    string `json:"content"`
	Iso639_1   string `json:"iso_639_1"`
	MediaID    int64  `json:"media_id"`
	MediaTitle string `json:"media_title"`
	MediaType  string `json:"media_type"`
	URL        string `json:"url"`
}

ReviewDetails type is a struct for details JSON response.

type SearchCollections

type SearchCollections struct {
	Page    int64 `json:"page"`
	Results []struct {
		Adult            bool   `json:"adult"`
		BackdropPath     string `json:"backdrop_path"`
		ID               int64  `json:"id"`
		Name             string `json:"name"`
		OriginalLanguage string `json:"original_language"`
		OriginalName     string `json:"original_name"`
		Overview         string `json:"overview"`
		PosterPath       string `json:"poster_path"`
	} `json:"results"`
	TotalPages   int64 `json:"total_pages"`
	TotalResults int64 `json:"total_results"`
}

SearchCollections type is a strcut for collections JSON response.

type SearchCompanies

type SearchCompanies struct {
	Page    int64 `json:"page"`
	Results []struct {
		ID       int64  `json:"id"`
		LogoPath string `json:"logo_path"`
		Name     string `json:"name"`
	} `json:"results"`
	TotalPages   int64 `json:"total_pages"`
	TotalResults int64 `json:"total_results"`
}

SearchCompanies type is a struct for companies JSON response.

type SearchKeywords

type SearchKeywords struct {
	Page    int64 `json:"page"`
	Results []struct {
		ID   int64  `json:"id"`
		Name string `json:"name"`
	} `json:"results"`
	TotalPages   int64 `json:"total_pages"`
	TotalResults int64 `json:"total_results"`
}

SearchKeywords type is a struct for keywords JSON response.

type SearchMovies

type SearchMovies struct {
	Page         int64 `json:"page"`
	TotalResults int64 `json:"total_results"`
	TotalPages   int64 `json:"total_pages"`
	Results      []struct {
		VoteCount        int64   `json:"vote_count"`
		ID               int64   `json:"id"`
		Video            bool    `json:"video"`
		VoteAverage      float32 `json:"vote_average"`
		Title            string  `json:"title"`
		Popularity       float32 `json:"popularity"`
		PosterPath       string  `json:"poster_path"`
		OriginalLanguage string  `json:"original_language"`
		OriginalTitle    string  `json:"original_title"`
		GenreIDs         []int64 `json:"genre_ids"`
		BackdropPath     string  `json:"backdrop_path"`
		Adult            bool    `json:"adult"`
		Overview         string  `json:"overview"`
		ReleaseDate      string  `json:"release_date"`
	} `json:"results"`
}

SearchMovies type is a struct for movies JSON response.

type SearchMulti

type SearchMulti struct {
	Page    int `json:"page"`
	Results []struct {
		PosterPath       string   `json:"poster_path,omitempty"`
		Popularity       float32  `json:"popularity"`
		ID               int64    `json:"id"`
		Overview         string   `json:"overview,omitempty"`
		BackdropPath     string   `json:"backdrop_path,omitempty"`
		VoteAverage      float32  `json:"vote_average,omitempty"`
		MediaType        string   `json:"media_type"`
		FirstAirDate     string   `json:"first_air_date,omitempty"`
		OriginCountry    []string `json:"origin_country,omitempty"`
		GenreIDs         []int64  `json:"genre_ids,omitempty"`
		OriginalLanguage string   `json:"original_language,omitempty"`
		VoteCount        int64    `json:"vote_count,omitempty"`
		Name             string   `json:"name,omitempty"`
		OriginalName     string   `json:"original_name,omitempty"`
		Adult            bool     `json:"adult,omitempty"`
		ReleaseDate      string   `json:"release_date,omitempty"`
		OriginalTitle    string   `json:"original_title,omitempty"`
		Title            string   `json:"title,omitempty"`
		Video            bool     `json:"video,omitempty"`
		ProfilePath      string   `json:"profile_path,omitempty"`
		KnownFor         []struct {
			PosterPath       string  `json:"poster_path"`
			Adult            bool    `json:"adult"`
			Overview         string  `json:"overview"`
			ReleaseDate      string  `json:"release_date"`
			OriginalTitle    string  `json:"original_title"`
			GenreIDs         []int64 `json:"genre_ids"`
			ID               int64   `json:"id"`
			MediaType        string  `json:"media_type"`
			OriginalLanguage string  `json:"original_language"`
			Title            string  `json:"title"`
			BackdropPath     string  `json:"backdrop_path"`
			Popularity       float32 `json:"popularity"`
			VoteCount        int64   `json:"vote_count"`
			Video            bool    `json:"video"`
			VoteAverage      float32 `json:"vote_average"`
		} `json:"known_for,omitempty"`
	} `json:"results"`
	TotalResults int64 `json:"total_results"`
	TotalPages   int64 `json:"total_pages"`
}

SearchMulti type is a struct for multi JSON response.

type SearchPeople

type SearchPeople struct {
	Page         int64 `json:"page"`
	TotalResults int64 `json:"total_results"`
	TotalPages   int64 `json:"total_pages"`
	Results      []struct {
		Popularity  float32 `json:"popularity"`
		ID          int64   `json:"id"`
		ProfilePath string  `json:"profile_path"`
		Name        string  `json:"name"`
		KnownFor    []struct {
			VoteAverage      float32 `json:"vote_average"`
			VoteCount        int64   `json:"vote_count"`
			ID               int64   `json:"id"`
			Video            bool    `json:"video"`
			MediaType        string  `json:"media_type"`
			Title            string  `json:"title"`
			Popularity       float32 `json:"popularity"`
			PosterPath       string  `json:"poster_path"`
			OriginalLanguage string  `json:"original_language"`
			OriginalTitle    string  `json:"original_title"`
			GenreIDs         []int64 `json:"genre_ids"`
			BackdropPath     string  `json:"backdrop_path"`
			Adult            bool    `json:"adult"`
			Overview         string  `json:"overview"`
			ReleaseDate      string  `json:"release_date"`
		} `json:"known_for"`
		Adult bool `json:"adult"`
	} `json:"results"`
}

SearchPeople type is a struct for people JSON response.

type SearchTVShows

type SearchTVShows struct {
	Page         int64 `json:"page"`
	TotalResults int64 `json:"total_results"`
	TotalPages   int64 `json:"total_pages"`
	Results      []struct {
		OriginalName     string   `json:"original_name"`
		ID               int64    `json:"id"`
		Name             string   `json:"name"`
		VoteCount        int64    `json:"vote_count"`
		VoteAverage      float32  `json:"vote_average"`
		PosterPath       string   `json:"poster_path"`
		FirstAirDate     string   `json:"first_air_date"`
		Popularity       float32  `json:"popularity"`
		GenreIDs         []int64  `json:"genre_ids"`
		OriginalLanguage string   `json:"original_language"`
		BackdropPath     string   `json:"backdrop_path"`
		Overview         string   `json:"overview"`
		OriginCountry    []string `json:"origin_country"`
	} `json:"results"`
}

SearchTVShows type is a struct for tv show JSON response.

type Session

type Session struct {
	Success   bool   `json:"success"`
	SessionID string `json:"session_id"`
}

Session type is a struct for session JSON response.

type SessionWithLogin

type SessionWithLogin struct {
	Username     string `json:"username"`
	Password     string `json:"password"`
	RequestToken string `json:"request_token"`
}

SessionWithLogin type is a struct for session with login JSON response.

type TVAccountStates

type TVAccountStates struct {
	ID        int64           `json:"id"`
	Favorite  bool            `json:"favorite"`
	Rated     json.RawMessage `json:"rated"`
	Watchlist bool            `json:"watchlist"`
}

TVAccountStates type is a struct for account states JSON response.

type TVAiringToday

type TVAiringToday struct {
	Page         int64 `json:"page"`
	TotalResults int64 `json:"total_results"`
	TotalPages   int64 `json:"total_pages"`
	Results      []struct {
		OriginalName     string   `json:"original_name"`
		GenreIDs         []int64  `json:"genre_ids"`
		Name             string   `json:"name"`
		Popularity       float32  `json:"popularity"`
		OriginCountry    []string `json:"origin_country"`
		VoteCount        int64    `json:"vote_count"`
		FirstAirDate     string   `json:"first_air_date"`
		BackdropPath     string   `json:"backdrop_path"`
		OriginalLanguage string   `json:"original_language"`
		ID               int64    `json:"id"`
		VoteAverage      float32  `json:"vote_average"`
		Overview         string   `json:"overview"`
		PosterPath       string   `json:"poster_path"`
	} `json:"results"`
}

TVAiringToday type is a struct for airing today JSON response.

type TVAlternativeTitles

type TVAlternativeTitles struct {
	ID      int `json:"id,omitempty"`
	Results []struct {
		Iso3166_1 string `json:"iso_3166_1"`
		Title     string `json:"title"`
		Type      string `json:"type"`
	} `json:"results"`
}

TVAlternativeTitles type is a struct for alternative titles JSON response.

type TVAlternativeTitlesAppend

type TVAlternativeTitlesAppend struct {
	AlternativeTitles *TVAlternativeTitles `json:"alternative_titles,omitempty"`
}

TVAlternativeTitlesAppend type is a struct for alternative titles in append to response.

type TVChanges

type TVChanges struct {
	Changes []struct {
		Key   string `json:"key"`
		Items []struct {
			ID     string `json:"id"`
			Action string `json:"action"`
			Time   string `json:"time"`
			Value  struct {
				SeasonID     int64 `json:"season_id"`
				SeasonNumber int   `json:"season_number"`
			} `json:"value"`
		} `json:"items"`
	} `json:"changes"`
}

TVChanges type is a struct for changes JSON response.

type TVChangesAppend

type TVChangesAppend struct {
	Changes *TVChanges `json:"changes,omitempty"`
}

TVChangesAppend type is a struct for changes in append to response.

type TVContentRatings

type TVContentRatings struct {
	Results []struct {
		Iso3166_1 string `json:"iso_3166_1"`
		Rating    string `json:"rating"`
	} `json:"results"`
	ID int64 `json:"id,omitempty"`
}

TVContentRatings type is a struct for content ratings JSON response.

type TVContentRatingsAppend

type TVContentRatingsAppend struct {
	ContentRatings *TVContentRatings `json:"content_ratings,omitempty"`
}

TVContentRatingsAppend type is a struct for content ratings in append to response.

type TVCredits

type TVCredits struct {
	ID   int64 `json:"id,omitempty"`
	Cast []struct {
		Character   string `json:"character"`
		CreditID    string `json:"credit_id"`
		Gender      int    `json:"gender"`
		ID          int64  `json:"id"`
		Name        string `json:"name"`
		Order       int    `json:"order"`
		ProfilePath string `json:"profile_path"`
	} `json:"cast"`
	Crew []struct {
		CreditID    string `json:"credit_id"`
		Department  string `json:"department"`
		Gender      int    `json:"gender"`
		ID          int64  `json:"id"`
		Job         string `json:"job"`
		Name        string `json:"name"`
		ProfilePath string `json:"profile_path"`
	} `json:"crew"`
}

TVCredits type is a struct for credits JSON response.

type TVCreditsAppend

type TVCreditsAppend struct {
	Credits struct {
		*TVCredits
	} `json:"credits,omitempty"`
}

TVCreditsAppend type is a struct for credits in append to response.

type TVDetails

type TVDetails struct {
	BackdropPath string `json:"backdrop_path"`
	CreatedBy    []struct {
		ID          int64  `json:"id"`
		CreditID    string `json:"credit_id"`
		Name        string `json:"name"`
		Gender      int    `json:"gender"`
		ProfilePath string `json:"profile_path"`
	} `json:"created_by"`
	EpisodeRunTime []int  `json:"episode_run_time"`
	FirstAirDate   string `json:"first_air_date"`
	Genres         []struct {
		ID   int64  `json:"id"`
		Name string `json:"name"`
	} `json:"genres"`
	Homepage         string   `json:"homepage"`
	ID               int64    `json:"id"`
	InProduction     bool     `json:"in_production"`
	Languages        []string `json:"languages"`
	LastAirDate      string   `json:"last_air_date"`
	LastEpisodeToAir struct {
		AirDate        string  `json:"air_date"`
		EpisodeNumber  int     `json:"episode_number"`
		ID             int64   `json:"id"`
		Name           string  `json:"name"`
		Overview       string  `json:"overview"`
		ProductionCode string  `json:"production_code"`
		SeasonNumber   int     `json:"season_number"`
		ShowID         int64   `json:"show_id"`
		StillPath      string  `json:"still_path"`
		VoteAverage    float32 `json:"vote_average"`
		VoteCount      int64   `json:"vote_count"`
	} `json:"last_episode_to_air"`
	Name             string `json:"name"`
	NextEpisodeToAir struct {
		AirDate        string  `json:"air_date"`
		EpisodeNumber  int     `json:"episode_number"`
		ID             int64   `json:"id"`
		Name           string  `json:"name"`
		Overview       string  `json:"overview"`
		ProductionCode string  `json:"production_code"`
		SeasonNumber   int     `json:"season_number"`
		ShowID         int64   `json:"show_id"`
		StillPath      string  `json:"still_path"`
		VoteAverage    float32 `json:"vote_average"`
		VoteCount      int64   `json:"vote_count"`
	} `json:"next_episode_to_air"`
	Networks []struct {
		Name          string `json:"name"`
		ID            int64  `json:"id"`
		LogoPath      string `json:"logo_path"`
		OriginCountry string `json:"origin_country"`
	} `json:"networks"`
	NumberOfEpisodes    int      `json:"number_of_episodes"`
	NumberOfSeasons     int      `json:"number_of_seasons"`
	OriginCountry       []string `json:"origin_country"`
	OriginalLanguage    string   `json:"original_language"`
	OriginalName        string   `json:"original_name"`
	Overview            string   `json:"overview"`
	Popularity          float32  `json:"popularity"`
	PosterPath          string   `json:"poster_path"`
	ProductionCompanies []struct {
		Name          string `json:"name"`
		ID            int64  `json:"id"`
		LogoPath      string `json:"logo_path"`
		OriginCountry string `json:"origin_country"`
	} `json:"production_companies"`
	Seasons []struct {
		AirDate      string `json:"air_date"`
		EpisodeCount int    `json:"episode_count"`
		ID           int64  `json:"id"`
		Name         string `json:"name"`
		Overview     string `json:"overview"`
		PosterPath   string `json:"poster_path"`
		SeasonNumber int    `json:"season_number"`
	} `json:"seasons"`
	Status      string  `json:"status"`
	Type        string  `json:"type"`
	VoteAverage float32 `json:"vote_average"`
	VoteCount   int64   `json:"vote_count"`
	*TVAlternativeTitlesAppend
	*TVChangesAppend
	*TVContentRatingsAppend
	*TVCreditsAppend
	*TVEpisodeGroupsAppend
	*TVExternalIDsAppend
	*TVImagesAppend
	*TVKeywordsAppend
	*TVRecommendationsAppend
	*TVReviewsAppend
	*TVScreenedTheatricallyAppend
	*TVSimilarAppend
	*TVTranslationsAppend
	*TVVideosAppend
}

TVDetails type is a struct for details JSON response.

type TVEpisodeChanges

type TVEpisodeChanges struct {
	Changes []struct {
		Key   string `json:"key"`
		Items []struct {
			ID     string `json:"id"`
			Action string `json:"action"`
			Time   string `json:"time"`
			Value  string `json:"value"`
		} `json:"items"`
	} `json:"changes"`
}

TVEpisodeChanges type is a struct for changes JSON response.

type TVEpisodeCredits

type TVEpisodeCredits struct {
	Cast []struct {
		Character   string `json:"character"`
		CreditID    string `json:"credit_id"`
		Gender      int    `json:"gender"`
		ID          int64  `json:"id"`
		Name        string `json:"name"`
		Order       int    `json:"order"`
		ProfilePath string `json:"profile_path"`
	} `json:"cast"`
	Crew []struct {
		ID          int64  `json:"id"`
		CreditID    string `json:"credit_id"`
		Name        string `json:"name"`
		Department  string `json:"department"`
		Job         string `json:"job"`
		Gender      int    `json:"gender"`
		ProfilePath string `json:"profile_path"`
	} `json:"crew"`
	GuestStars []struct {
		ID          int64  `json:"id"`
		Name        string `json:"name"`
		CreditID    string `json:"credit_id"`
		Character   string `json:"character"`
		Order       int    `json:"order"`
		Gender      int    `json:"gender"`
		ProfilePath string `json:"profile_path"`
	} `json:"guest_stars"`
	ID int64 `json:"id,omitempty"`
}

TVEpisodeCredits type is a struct for credits JSON response.

type TVEpisodeCreditsAppend

type TVEpisodeCreditsAppend struct {
	Credits *TVEpisodeCredits `json:"credits,omitempty"`
}

TVEpisodeCreditsAppend type is a struct for credits in append to response.

type TVEpisodeDetails

type TVEpisodeDetails struct {
	AirDate string `json:"air_date"`
	Crew    []struct {
		ID          int64  `json:"id"`
		CreditID    string `json:"credit_id"`
		Name        string `json:"name"`
		Department  string `json:"department"`
		Job         string `json:"job"`
		Gender      int    `json:"gender"`
		ProfilePath string `json:"profile_path"`
	} `json:"crew"`
	EpisodeNumber int `json:"episode_number"`
	GuestStars    []struct {
		ID          int64  `json:"id"`
		Name        string `json:"name"`
		CreditID    string `json:"credit_id"`
		Character   string `json:"character"`
		Order       int    `json:"order"`
		Gender      int    `json:"gender"`
		ProfilePath string `json:"profile_path"`
	} `json:"guest_stars"`
	Name           string  `json:"name"`
	Overview       string  `json:"overview"`
	ID             int64   `json:"id"`
	ProductionCode string  `json:"production_code"`
	SeasonNumber   int     `json:"season_number"`
	StillPath      string  `json:"still_path"`
	VoteAverage    float32 `json:"vote_average"`
	VoteCount      int64   `json:"vote_count"`
	*TVEpisodeCreditsAppend
	*TVEpisodeExternalIDsAppend
	*TVEpisodeImagesAppend
	*TVEpisodeTranslationsAppend
	*TVEpisodeVideosAppend
}

TVEpisodeDetails type is a struct for details JSON response.

type TVEpisodeExternalIDs

type TVEpisodeExternalIDs struct {
	ID          int64  `json:"id,omitempty"`
	IMDbID      string `json:"imdb_id"`
	FreebaseMID string `json:"freebase_mid"`
	FreebaseID  string `json:"freebase_id"`
	TVDBID      int64  `json:"tvdb_id"`
	TVRageID    int64  `json:"tvrage_id"`
}

TVEpisodeExternalIDs type is a struct for external ids JSON response.

type TVEpisodeExternalIDsAppend

type TVEpisodeExternalIDsAppend struct {
	ExternalIDs *TVEpisodeExternalIDs `json:"external_ids,omitempty"`
}

TVEpisodeExternalIDsAppend type is a struct for external ids in append to response.

type TVEpisodeGroups

type TVEpisodeGroups struct {
	Results []struct {
		Description  string `json:"description"`
		EpisodeCount int    `json:"episode_count"`
		GroupCount   int    `json:"group_count"`
		ID           string `json:"id"`
		Name         string `json:"name"`
		Network      struct {
			ID            int64  `json:"id"`
			LogoPath      string `json:"logo_path"`
			Name          string `json:"name"`
			OriginCountry string `json:"origin_country"`
		} `json:"network"`
		Type int `json:"type"`
	} `json:"results"`
	ID int64 `json:"id,omitempty"`
}

TVEpisodeGroups type is a struct for episode groups JSON response.

type TVEpisodeGroupsAppend

type TVEpisodeGroupsAppend struct {
	EpisodeGroups *TVEpisodeGroups `json:"episode_groups,omitempty"`
}

TVEpisodeGroupsAppend type is a struct for episode groups in append to response.

type TVEpisodeGroupsDetails

type TVEpisodeGroupsDetails struct {
	Description  string `json:"description"`
	EpisodeCount int    `json:"episode_count"`
	GroupCount   int    `json:"group_count"`
	Groups       []struct {
		ID       string `json:"id"`
		Name     string `json:"name"`
		Order    int    `json:"order"`
		Episodes []struct {
			AirDate        string          `json:"air_date"`
			EpisodeNumber  int             `json:"episode_number"`
			ID             int64           `json:"id"`
			Name           string          `json:"name"`
			Overview       string          `json:"overview"`
			ProductionCode json.RawMessage `json:"production_code"`
			SeasonNumber   int             `json:"season_number"`
			ShowID         int64           `json:"show_id"`
			StillPath      string          `json:"still_path"`
			VoteAverage    float32         `json:"vote_average"`
			VoteCount      int64           `json:"vote_count"`
			Order          int             `json:"order"`
		} `json:"episodes"`
		Locked bool `json:"locked"`
	} `json:"groups"`
	ID      string `json:"id"`
	Name    string `json:"name"`
	Network struct {
		ID            int64  `json:"id"`
		LogoPath      string `json:"logo_path"`
		Name          string `json:"name"`
		OriginCountry string `json:"origin_country"`
	} `json:"network"`
	Type int `json:"type"`
}

TVEpisodeGroupsDetails type is a struct for details JSON response.

type TVEpisodeImages

type TVEpisodeImages struct {
	ID     int64 `json:"id,omitempty"`
	Stills []struct {
		AspectRatio float32     `json:"aspect_ratio"`
		FilePath    string      `json:"file_path"`
		Height      int         `json:"height"`
		Iso6391     interface{} `json:"iso_639_1"`
		VoteAverage float32     `json:"vote_average"`
		VoteCount   int64       `json:"vote_count"`
		Width       int         `json:"width"`
	} `json:"stills"`
}

TVEpisodeImages type is a struct for images JSON response.

type TVEpisodeImagesAppend

type TVEpisodeImagesAppend struct {
	Images *TVEpisodeImages `json:"images,omitempty"`
}

TVEpisodeImagesAppend type is a struct for images in append to response.

type TVEpisodeRate

type TVEpisodeRate struct {
	StatusCode    int    `json:"status_code"`
	StatusMessage string `json:"status_message"`
}

TVEpisodeRate type is a struct for rate JSON response.

type TVEpisodeTranslations

type TVEpisodeTranslations struct {
	ID           int64 `json:"id,omitempty"`
	Translations []struct {
		Iso3166_1   string `json:"iso_3166_1"`
		Iso639_1    string `json:"iso_639_1"`
		Name        string `json:"name"`
		EnglishName string `json:"english_name"`
		Data        struct {
			Name     string `json:"name"`
			Overview string `json:"overview"`
		} `json:"data"`
	} `json:"translations"`
}

TVEpisodeTranslations type is a struct for translations JSON response.

type TVEpisodeTranslationsAppend

type TVEpisodeTranslationsAppend struct {
	Translations *TVEpisodeTranslations `json:"translations,omitempty"`
}

TVEpisodeTranslationsAppend type is a struct for translations in append to response.

type TVEpisodeVideos

type TVEpisodeVideos struct {
	ID      int64 `json:"id,omitempty"`
	Results []struct {
		ID        string `json:"id"`
		Iso639_1  string `json:"iso_639_1"`
		Iso3166_1 string `json:"iso_3166_1"`
		Key       string `json:"key"`
		Name      string `json:"name"`
		Site      string `json:"site"`
		Size      int    `json:"size"`
		Type      string `json:"type"`
	} `json:"results"`
}

TVEpisodeVideos type is a struct for videos JSON response.

type TVEpisodeVideosAppend

type TVEpisodeVideosAppend struct {
	Videos *TVEpisodeVideos `json:"videos,omitempty"`
}

TVEpisodeVideosAppend type is a struct for videos in append to response.

type TVExternalIDs

type TVExternalIDs struct {
	IMDbID      string `json:"imdb_id"`
	FreebaseMID string `json:"freebase_mid"`
	FreebaseID  string `json:"freebase_id"`
	TVDBID      int64  `json:"tvdb_id"`
	TVRageID    int64  `json:"tvrage_id"`
	FacebookID  string `json:"facebook_id"`
	InstagramID string `json:"instagram_id"`
	TwitterID   string `json:"twitter_id"`
	ID          int64  `json:"id,omitempty"`
}

TVExternalIDs type is a struct for external ids JSON response.

type TVExternalIDsAppend

type TVExternalIDsAppend struct {
	*TVExternalIDs `json:"external_ids,omitempty"`
}

TVExternalIDsAppend type is a short for external ids in append to response.

type TVImages

type TVImages struct {
	ID        int64 `json:"id,omitempty"`
	Backdrops []struct {
		AspectRatio float32 `json:"aspect_ratio"`
		FilePath    string  `json:"file_path"`
		Height      int     `json:"height"`
		Iso639_1    string  `json:"iso_639_1"`
		VoteAverage float32 `json:"vote_average"`
		VoteCount   int64   `json:"vote_count"`
		Width       int     `json:"width"`
	} `json:"backdrops"`
	Posters []struct {
		AspectRatio float32 `json:"aspect_ratio"`
		FilePath    string  `json:"file_path"`
		Height      int     `json:"height"`
		Iso639_1    string  `json:"iso_639_1"`
		VoteAverage float32 `json:"vote_average"`
		VoteCount   int64   `json:"vote_count"`
		Width       int     `json:"width"`
	} `json:"posters"`
}

TVImages type is a struct for images JSON response.

type TVImagesAppend

type TVImagesAppend struct {
	Images *TVImages `json:"images,omitempty"`
}

TVImagesAppend type is a struct for images in append to response.

type TVKeywords

type TVKeywords struct {
	ID      int64 `json:"id,omitempty"`
	Results []struct {
		ID   int64  `json:"id"`
		Name string `json:"name"`
	} `json:"results"`
}

TVKeywords type is a struct for keywords JSON response.

type TVKeywordsAppend

type TVKeywordsAppend struct {
	Keywords struct {
		*TVKeywords
	} `json:"keywords,omitempty"`
}

TVKeywordsAppend type is a struct for keywords in append to response.

type TVLatest

type TVLatest struct {
	*TVDetails
}

TVLatest type is a struct for latest JSON response.

type TVOnTheAir

type TVOnTheAir struct {
	*TVAiringToday
}

TVOnTheAir type is a struct for on the air JSON response.

type TVPopular

type TVPopular struct {
	*TVAiringToday
}

TVPopular type is a struct for popular JSON response.

type TVRecommendations

type TVRecommendations struct {
	Page    int64 `json:"page"`
	Results []struct {
		PosterPath       string   `json:"poster_path"`
		Popularity       float32  `json:"popularity"`
		ID               int64    `json:"id"`
		BackdropPath     string   `json:"backdrop_path"`
		VoteAverage      float32  `json:"vote_average"`
		Overview         string   `json:"overview"`
		FirstAirDate     string   `json:"first_air_date"`
		OriginCountry    []string `json:"origin_country"`
		GenreIDs         []int64  `json:"genre_ids"`
		OriginalLanguage string   `json:"original_language"`
		VoteCount        int64    `json:"vote_count"`
		Name             string   `json:"name"`
		OriginalName     string   `json:"original_name"`
	} `json:"results"`
	TotalPages   int64 `json:"total_pages"`
	TotalResults int64 `json:"total_results"`
}

TVRecommendations type is a struct for recommendations JSON response.

type TVRecommendationsAppend

type TVRecommendationsAppend struct {
	Recommendations *TVRecommendations `json:"recommendations,omitempty"`
}

TVRecommendationsAppend type is a struct for recommendations in append to response.

type TVReviews

type TVReviews struct {
	ID      int64 `json:"id,omitempty"`
	Page    int64 `json:"page"`
	Results []struct {
		ID      string `json:"id"`
		Author  string `json:"author"`
		Content string `json:"content"`
		URL     string `json:"url"`
	} `json:"results"`
	TotalPages   int64 `json:"total_pages"`
	TotalResults int64 `json:"total_results"`
}

TVReviews type is a struct for reviews JSON response.

type TVReviewsAppend

type TVReviewsAppend struct {
	Reviews struct {
		*TVReviews
	} `json:"reviews,omitempty"`
}

TVReviewsAppend type is a struct for reviews in append to response.

type TVScreenedTheatrically

type TVScreenedTheatrically struct {
	ID      int64 `json:"id,omitempty"`
	Results []struct {
		ID            int64 `json:"id"`
		EpisodeNumber int   `json:"episode_number"`
		SeasonNumber  int   `json:"season_number"`
	} `json:"results"`
}

TVScreenedTheatrically type is a struct for screened theatrically JSON response.

type TVScreenedTheatricallyAppend

type TVScreenedTheatricallyAppend struct {
	ScreenedTheatrically *TVScreenedTheatrically `json:"screened_theatrically,omitempty"`
}

TVScreenedTheatricallyAppend type is a struct for screened theatrically in append to response.

type TVSeasonChanges

type TVSeasonChanges struct {
	Changes []struct {
		Items []struct {
			ID        string `json:"id"`
			Action    string `json:"action"`
			Time      string `json:"time"`
			Iso639_1  string `json:"iso_639_1"`
			Iso3166_1 string `json:"iso_3166_1"`
			Value     struct {
				EpisodeID     int64 `json:"episode_id"`
				EpisodeNumber int   `json:"episode_number"`
			} `json:"value"`
		} `json:"items"`
		Key string `json:"key"`
	} `json:"changes"`
}

TVSeasonChanges is a struct for changes JSON response.

type TVSeasonCredits

type TVSeasonCredits struct {
	Cast []struct {
		Character   string `json:"character"`
		CreditID    string `json:"credit_id"`
		Gender      int    `json:"gender"`
		ID          int64  `json:"id"`
		Name        string `json:"name"`
		Order       int    `json:"order"`
		ProfilePath string `json:"profile_path"`
	} `json:"cast"`
	Crew []struct {
		CreditID    string `json:"credit_id"`
		Department  string `json:"department"`
		Gender      int    `json:"gender"`
		ID          int64  `json:"id"`
		Job         string `json:"job"`
		Name        string `json:"name"`
		ProfilePath string `json:"profile_path"`
	} `json:"crew"`
	ID int `json:"id"`
}

TVSeasonCredits type is a struct for credits JSON response.

type TVSeasonCreditsAppend

type TVSeasonCreditsAppend struct {
	Credits *TVSeasonCredits `json:"credits,omitempty"`
}

TVSeasonCreditsAppend type is a struct for credits in append to response.

type TVSeasonDetails

type TVSeasonDetails struct {
	IDString string `json:"_id"`
	AirDate  string `json:"air_date"`
	Episodes []struct {
		AirDate        string  `json:"air_date"`
		EpisodeNumber  int     `json:"episode_number"`
		ID             int64   `json:"id"`
		Name           string  `json:"name"`
		Overview       string  `json:"overview"`
		ProductionCode string  `json:"production_code"`
		SeasonNumber   int     `json:"season_number"`
		ShowID         int64   `json:"show_id"`
		StillPath      string  `json:"still_path"`
		VoteAverage    float32 `json:"vote_average"`
		VoteCount      int64   `json:"vote_count"`
		Crew           []struct {
			ID          int64  `json:"id"`
			CreditID    string `json:"credit_id"`
			Name        string `json:"name"`
			Department  string `json:"department"`
			Job         string `json:"job"`
			Gender      int    `json:"gender"`
			ProfilePath string `json:"profile_path"`
		} `json:"crew"`
		GuestStars []struct {
			ID          int64  `json:"id"`
			Name        string `json:"name"`
			CreditID    string `json:"credit_id"`
			Character   string `json:"character"`
			Order       int    `json:"order"`
			Gender      int    `json:"gender"`
			ProfilePath string `json:"profile_path"`
		} `json:"guest_stars"`
	} `json:"episodes"`
	Name         string `json:"name"`
	Overview     string `json:"overview"`
	ID           int64  `json:"id"`
	PosterPath   string `json:"poster_path"`
	SeasonNumber int    `json:"season_number"`
	*TVSeasonCreditsAppend
	*TVSeasonExternalIDsAppend
	*TVSeasonImagesAppend
	*TVSeasonVideosAppend
}

TVSeasonDetails is a struct for details JSON response.

type TVSeasonExternalIDs

type TVSeasonExternalIDs struct {
	FreebaseMID string `json:"freebase_mid"`
	FreebaseID  string `json:"freebase_id"`
	TVDBID      int64  `json:"tvdb_id"`
	TVRageID    int64  `json:"tvrage_id"`
	ID          int64  `json:"id,omitempty"`
}

TVSeasonExternalIDs type is a struct for external ids JSON response.

type TVSeasonExternalIDsAppend

type TVSeasonExternalIDsAppend struct {
	ExternalIDs *TVSeasonExternalIDs `json:"external_ids,omitempty"`
}

TVSeasonExternalIDsAppend type is a struct for external ids in append to response.

type TVSeasonImages

type TVSeasonImages struct {
	ID      int64 `json:"id,omitempty"`
	Posters []struct {
		AspectRatio float32 `json:"aspect_ratio"`
		FilePath    string  `json:"file_path"`
		Height      int     `json:"height"`
		Iso639_1    string  `json:"iso_639_1"`
		VoteAverage float32 `json:"vote_average"`
		VoteCount   int64   `json:"vote_count"`
		Width       int     `json:"width"`
	} `json:"posters"`
}

TVSeasonImages type is a struct for images JSON response.

type TVSeasonImagesAppend

type TVSeasonImagesAppend struct {
	Images *TVSeasonImages `json:"images,omitempty"`
}

TVSeasonImagesAppend type is a struct for images in append to response.

type TVSeasonVideos

type TVSeasonVideos struct {
	ID      int64 `json:"id,omitempty"`
	Results []struct {
		ID        string `json:"id"`
		Iso639_1  string `json:"iso_639_1"`
		Iso3166_1 string `json:"iso_3166_1"`
		Key       string `json:"key"`
		Name      string `json:"name"`
		Site      string `json:"site"`
		Size      int    `json:"size"`
		Type      string `json:"type"`
	} `json:"results"`
}

TVSeasonVideos type is a struct for videos JSON response.

type TVSeasonVideosAppend

type TVSeasonVideosAppend struct {
	Videos struct {
		*TVSeasonVideos
	} `json:"videos,omitempty"`
}

TVSeasonVideosAppend type is a struct for videos in append to response.

type TVSimilar

type TVSimilar struct {
	*TVRecommendations
}

TVSimilar type is a struct for similar tv shows JSON response.

type TVSimilarAppend

type TVSimilarAppend struct {
	Similar *TVSimilar `json:"similar,omitempty"`
}

TVSimilarAppend type is a struct for similar tv shows in append to response.

type TVTopRated

type TVTopRated struct {
	*TVAiringToday
}

TVTopRated type is a struct for top rated JSON response.

type TVTranslations

type TVTranslations struct {
	ID           int64 `json:"id,omitempty"`
	Translations []struct {
		Iso3166_1   string `json:"iso_3166_1"`
		Iso639_1    string `json:"iso_639_1"`
		Name        string `json:"name"`
		EnglishName string `json:"english_name"`
		Data        struct {
			Name     string `json:"name"`
			Overview string `json:"overview"`
			Homepage string `json:"homepage"`
		} `json:"data"`
	} `json:"translations"`
}

TVTranslations type is a struct for translations JSON response.

type TVTranslationsAppend

type TVTranslationsAppend struct {
	Translations *TVTranslations `json:"translations,omitempty"`
}

TVTranslationsAppend type is a struct for translations in append to response.

type TVVideos

type TVVideos struct {
	ID      int64 `json:"id,omitempty"`
	Results []struct {
		ID        string `json:"id"`
		Iso639_1  string `json:"iso_639_1"`
		Iso3166_1 string `json:"iso_3166_1"`
		Key       string `json:"key"`
		Name      string `json:"name"`
		Site      string `json:"site"`
		Size      int    `json:"size"`
		Type      string `json:"type"`
	} `json:"results"`
}

TVVideos type is a struct for videos JSON response.

type TVVideosAppend

type TVVideosAppend struct {
	Videos struct {
		*TVVideos
	} `json:"videos,omitempty"`
}

TVVideosAppend type is a struct for videos in append to response.

type Trending struct {
	Page    int `json:"page"`
	Results []struct {
		Adult              bool     `json:"adult,omitempty"`
		Gender             int      `json:"gender,omitempty"`
		BackdropPath       string   `json:"backdrop_path,omitempty"`
		GenreIDs           []int64  `json:"genre_ids,omitempty"`
		ID                 int64    `json:"id"`
		OriginalLanguage   string   `json:"original_language"`
		OriginalTitle      string   `json:"original_title,omitempty"`
		Overview           string   `json:"overview,omitempty"`
		PosterPath         string   `json:"poster_path,omitempty"`
		ReleaseDate        string   `json:"release_date,omitempty"`
		Title              string   `json:"title,omitempty"`
		Video              bool     `json:"video,omitempty"`
		VoteAverage        float32  `json:"vote_average,omitempty"`
		VoteCount          int64    `json:"vote_count,omitempty"`
		Popularity         float32  `json:"popularity,omitempty"`
		FirstAirDate       string   `json:"first_air_date,omitempty"`
		Name               string   `json:"name,omitempty"`
		OriginCountry      []string `json:"origin_country,omitempty"`
		OriginalName       string   `json:"original_name,omitempty"`
		KnownForDepartment string   `json:"known_for_department,omitempty"`
		ProfilePath        string   `json:"profile_path,omitempty"`
		KnownFor           []struct {
			Adult            bool    `json:"adult"`
			BackdropPath     string  `json:"backdrop_path"`
			GenreIds         []int   `json:"genre_ids"`
			ID               int     `json:"id"`
			OriginalLanguage string  `json:"original_language"`
			OriginalTitle    string  `json:"original_title"`
			Overview         string  `json:"overview"`
			PosterPath       string  `json:"poster_path"`
			ReleaseDate      string  `json:"release_date"`
			Title            string  `json:"title"`
			Video            bool    `json:"video"`
			VoteAverage      float64 `json:"vote_average"`
			VoteCount        int     `json:"vote_count"`
			Popularity       float64 `json:"popularity"`
			MediaType        string  `json:"media_type"`
		} `json:"known_for,omitempty"`
	} `json:"results"`
	TotalPages   int64 `json:"total_pages"`
	TotalResults int64 `json:"total_results"`
}

Trending type is a struct for treding JSON response.

Directories

Path Synopsis
examples
tv

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL