PeopleSection

tmdb-js/sections/types. PeopleSection

A class that represents the people section in TMDb.

Constructor

new PeopleSection(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

(async) getChangesAsync(startDate, endDate, page) → {Promise.<*>}

Gets person changes.
Source:
Parameters:
Name Type Default Description
startDate string The start date.
endDate string The end date.
page Number null The page.
Returns:
Type:
Promise.<*>
A Promise of JSON data with person changes.

(async) getLatestAsync() → {Promise.<*>}

Gets the latest created person.
Source:
Returns:
Type:
Promise.<*>
A Promise of JSON data with the latest people.

getPerson(id) → {exports.Person}

Gets a Person instance with the passed ID.
Source:
Parameters:
Name Type Description
id string The ID of the person.
Returns:
Type:
exports.Person
A Person object with the passed ID.

(async) getPopularAsync(page) → {Promise.<*>}

Gets popular people.
Source:
Parameters:
Name Type Default Description
page Number null The page.
Returns:
Type:
Promise.<*>
A Promise of JSON data with popular people.