Constructor
new Person(id, personSection)
Initializes this object.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The id of the person. |
personSection |
exports.PeopleSection
|
The parent PersonSection. |
Methods
(async) getChangesAsync(startDate, endDate, page) → {Promise.<*>}
Gets the changes of the person in question.
- 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) getCombinedCreditsAsync() → {Promise.<*>}
Gets the combined credits of this person.
- Source:
Returns:
- Type:
-
Promise.<*>
A Promise of this person's combined credits in JSON format.
(async) getDetailsAsync() → {Promise.<*>}
Gets all details about this person.
- Source:
Returns:
- Type:
-
Promise.<*>
A Promise of this person's details in JSON format.
(async) getExternalIdsAsync() → {Promise.<*>}
Gets the external IDs of this person.
- Source:
Returns:
- Type:
-
Promise.<*>
A Promise of this person's external IDs in JSON format.
(async) getImagesAsync() → {Promise.<*>}
Gets the images of this person.
- Source:
Returns:
- Type:
-
Promise.<*>
A Promise of images of this person in JSON format.
(async) getMovieCreditsAsync() → {Promise.<*>}
Gets the movie credits of this person.
- Source:
Returns:
- Type:
-
Promise.<*>
A Promise of this person's movie credits in JSON format.
(async) getTaggedImagesAsync(page) → {Promise.<*>}
Gets the tagged images of this person.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
page |
Number
|
null | The page. |
Returns:
- Type:
-
Promise.<*>
A Promise of tagged images of this person in JSON format.
(async) getTranslationsAsync() → {Promise.<*>}
Gets the translations of this person.
- Source:
Returns:
- Type:
-
Promise.<*>
A Promise of person translations in JSON format.
(async) getTvCreditsAsync() → {Promise.<*>}
Gets the TV credits of this person.
- Source:
Returns:
- Type:
-
Promise.<*>
A Promise of this person's TV credits in JSON format.