NetworkSection

tmdb-js/sections/types. NetworkSection

A class that represents the network section in TMDb.

Constructor

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

getNetwork(id) → {exports.Network}

Gets a Network instance, based on the passed ID.
Source:
Parameters:
Name Type Description
id string The ID of the network.
Returns:
Type:
exports.Network
A Network object with the passed ID.