Constructor
new CollectionSection(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
getCollection(id) → {exports.Collection}
Gets the collection with the passed id.
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The id of the collection to get. |
Returns:
- Type:
-
exports.Collection
A Collection object with the passed id.