Constructor
new TvShowSection(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
(async) getCertificationsAsync() → {Promise.<*>}
Gets TV show certifications.
Returns:
- Type:
-
Promise.<*>
A Promise of TV show certification data in JSON format.
(async) getChangesAsync(startDate, endDate, page) → {Promise.<*>}
Gets TV show changes.
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 TV show changes.
(async) getLatestAsync() → {Promise.<*>}
Gets the latest TV shows.
Returns:
- Type:
-
Promise.<*>
A Promise of the latest TV shows in JSON format.
(async) getPopularAsync(page) → {Promise.<*>}
Gets popular TV shows.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
page |
Number
|
null | The page. |
Returns:
- Type:
-
Promise.<*>
A Promise of popular TV show data in JSON format.
(async) getTopRatedAsync(page) → {Promise.<*>}
Gets top rated TV shows.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
page |
Number
|
null | The page. |
Returns:
- Type:
-
Promise.<*>
A Promise of top rated TV show data in JSON format.
(async) getTvAiringTodayAsync(page) → {Promise.<*>}
Gets TV shows airing today.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
page |
Number
|
null | The page. |
Returns:
- Type:
-
Promise.<*>
A Promise of the TV shows airing today in JSON format.
(async) getTvOnTheAirAsync(page) → {Promise.<*>}
Gets TV shows currently on the air.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
page |
Number
|
null | The page. |
Returns:
- Type:
-
Promise.<*>
A Promise of TV shows that are on the air in JSON format.
getTvShow(id) → {exports.TvShow}
Gets a TvShow instance, based on the passed ID.
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The TV show ID. |
Returns:
- Type:
-
exports.TvShow
A TvShow object with the passed ID.
getTvShowEpisodeGroup(id) → {exports.TvShowEpisodeGroup}
Gets a TvShowEpisodeGroup instance, based on the passed ID.
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The ID of the episode group. |
Returns:
- Type:
-
exports.TvShowEpisodeGroup
A TvShowEpisodeGroup object with the passed ID.