Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

Latest commit

 

History

History
110 lines (73 loc) · 2.7 KB

LanguagesApi.md

File metadata and controls

110 lines (73 loc) · 2.7 KB

TheTvdbApiV2.LanguagesApi

All URIs are relative to https://localhost/

Method HTTP request Description
languagesGet GET /languages
languagesIdGet GET /languages/{id}

languagesGet

InlineResponse2001 languagesGet()

All available languages. These language abbreviations can be used in the `Accept-Language` header for routes that return translation records.

Example

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);

Parameters

This endpoint does not need any parameter.

Return type

InlineResponse2001

Authorization

jwtToken

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

languagesIdGet

InlineResponse2001Data languagesIdGet(id)

Information about a particular language, given the language ID.

Example

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);

Parameters

Name Type Description Notes
id String ID of the language

Return type

InlineResponse2001Data

Authorization

jwtToken

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json