Constructor
new AccountSection(apiKey, language)
Initializes this object.
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.
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.
Parameters:
Name | Type | Description |
---|---|---|
sessionId |
The sessionId. |
Returns:
- Type:
-
Promise.<*>
A Promise of account details.