AccountSection

tmdb-js/sections/types. AccountSection

A class that represents the account section in TMDb.

Constructor

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

getAccount(id) → {exports.Account}

Gets the account with the passed id.
Source:
Parameters:
Name Type Description
id string The id of the review to get.
Returns:
Type:
exports.Account
A Account instance with the passed id.

(async) getDetailsAsync(sessionId) → {Promise.<*>}

Gets the current account details.
Source:
Parameters:
Name Type Description
sessionId The sessionId.
Returns:
Type:
Promise.<*>
A Promise of account details.