CollectionSection

tmdb-js/sections/types. CollectionSection

Can get collection data from TMDb.

Constructor

new CollectionSection(apiKey, language)

Initializes this object.
Source:
Parameters:
Name Type Default Description
apiKey string The TMDb API key.
language string en-US The language of queries, the default is "en-US".

Methods

getCollection(id) → {exports.Collection}

Gets the collection with the passed id.
Source:
Parameters:
Name Type Description
id string The id of the collection to get.
Returns:
Type:
exports.Collection
A Collection object with the passed id.