All URIs are relative to https://localhost/
Method | HTTP request | Description |
---|---|---|
languagesGet | GET /languages | |
languagesIdGet | GET /languages/{id} |
InlineResponse2001 languagesGet()
All available languages. These language abbreviations can be used in the `Accept-Language` header for routes that return translation records.
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.LanguagesApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.languagesGet(callback);
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
InlineResponse2001Data languagesIdGet(id)
Information about a particular language, given the language ID.
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.LanguagesApi();
var id = "id_example"; // String | ID of the language
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.languagesIdGet(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of the language |
- Content-Type: application/json
- Accept: application/json