All URIs are relative to https://localhost/
Method | HTTP request | Description |
---|---|---|
episodesIdGet | GET /episodes/{id} |
InlineResponse200 episodesIdGet(id, opts)
Returns the full information for a given episode id. Deprecation Warning: The director key will be deprecated in favor of the new directors key in a future release.
var TheTvdbApiV2 = require('the_tvdb_api_v2');
var defaultClient = TheTvdbApiV2.ApiClient.default;
// Configure API key authorization: jwtToken
var jwtToken = defaultClient.authentications['jwtToken'];
jwtToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//jwtToken.apiKeyPrefix = 'Token';
var apiInstance = new TheTvdbApiV2.EpisodesApi();
var id = 789; // Number | ID of the episode
var opts = {
'acceptLanguage': "acceptLanguage_example" // String | Records are returned with the Episode name and Overview in the desired language, if it exists. If there is no translation for the given language, then the record is still returned but with empty values for the translated fields.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.episodesIdGet(id, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | ID of the episode | |
acceptLanguage | String | Records are returned with the Episode name and Overview in the desired language, if it exists. If there is no translation for the given language, then the record is still returned but with empty values for the translated fields. | [optional] |
- Content-Type: application/json
- Accept: application/json