Constructor
new Movie(id, movieSection)
Initializes this object.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The id of the movie. |
movieSection |
exports.MovieSection
|
The parent MovieSection. |
Methods
(async) getAccountStatesAsync(sessionId, guestSessionId) → {Promise.<*>}
Gets the account states on the movie in question.
Only one of the IDs is allowed to be null or non-null in the same method call.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
sessionId |
string
|
The session ID. |
guestSessionId |
string
|
The guest session ID. |
Returns:
- Type:
-
Promise.<*>
A Promise of account state JSON data.
(async) getAlternativeTitlesAsync(country) → {Promise.<*>}
Gets the alternative titles of the movie in question.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
country |
string
|
The country to get alternative titles from. |
Returns:
- Type:
-
Promise.<*>
A Promise of JSON data with alternative titles.
(async) getChangesAsync(startDate, endDate, page) → {Promise.<*>}
Gets the changes of the movie 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 movie changes.
(async) getCreditsAsync() → {Promise.<*>}
Gets the credits of the movie in question.
- Source:
Returns:
- Type:
-
Promise.<*>
A Promise of JSON data with movie credits.
(async) getDetailsAsync() → {Promise.<*>}
Gets all details about this movie.
- Source:
Returns:
- Type:
-
Promise.<*>
A Promise of movie details.
(async) getExternalIdsAsync() → {Promise.<*>}
Gets the external IDs of the movie in question.
- Source:
Returns:
- Type:
-
Promise.<*>
A Promise of JSON data with external IDs.
(async) getImagesAsync(includeImageLanguage) → {Promise.<*>}
Gets the images of the movie in question.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
includeImageLanguage |
string
|
The include_image_language parameter. |
Returns:
- Type:
-
Promise.<*>
A Promise of JSON data with movie images.
(async) getKeywordsAsync() → {Promise.<*>}
Gets the keywords of the movie in question.
- Source:
Returns:
- Type:
-
Promise.<*>
A Promise of JSON data with movie keywords.
(async) getListsAsync(page) → {Promise.<*>}
Gets the lists of the movie in question.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
page |
Number
|
null | The page. |
Returns:
- Type:
-
Promise.<*>
A Promise of JSON data with lists.
(async) getRecommendationsAsync(page) → {Promise.<*>}
Gets the recommendations based on the movie in question.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
page |
Number
|
null | The page. |
Returns:
- Type:
-
Promise.<*>
A Promise of JSON data with recommendations.
(async) getReleaseDatesAsync() → {Promise.<*>}
Gets the release dates of the movie in question.
- Source:
Returns:
- Type:
-
Promise.<*>
A Promise of JSON data with movie release dates.
(async) getReviewsAsync(page) → {Promise.<*>}
Gets the reviews of the movie in question.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
page |
Number
|
null | The page. |
Returns:
- Type:
-
Promise.<*>
A Promise of JSON data with movie reviews.
(async) getSimilarMoviesAsync(page) → {Promise.<*>}
Gets the similar movies to the movie in question.
- Source:
Parameters:
Name | Type | Default | Description |
---|---|---|---|
page |
Number
|
null | The page. |
Returns:
- Type:
-
Promise.<*>
A Promise of JSON data with similar movies.
(async) getTranslationsAsync() → {Promise.<*>}
Gets the translations of the movie in question.
- Source:
Returns:
- Type:
-
Promise.<*>
A Promise of JSON data with movie translations.
(async) getVideosAsync() → {Promise.<*>}
Gets the videos of the movie in question.
- Source:
Returns:
- Type:
-
Promise.<*>
A Promise of JSON data with movie videos.