Skip to content

Latest commit

 

History

History
112 lines (75 loc) · 3.04 KB

LanguagesApi.md

File metadata and controls

112 lines (75 loc) · 3.04 KB

tvdb_api.LanguagesApi

All URIs are relative to https://localhost

Method HTTP request Description
languages_get GET /languages
languages_id_get GET /languages/{id}

languages_get

LanguageData languages_get()

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

Example

from __future__ import print_function
import time
import tvdb_api
from tvdb_api.rest import ApiException
from pprint import pprint

# Configure API key authorization: jwtToken
configuration = tvdb_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = tvdb_api.LanguagesApi(tvdb_api.ApiClient(configuration))

try:
    api_response = api_instance.languages_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LanguagesApi->languages_get: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

LanguageData

Authorization

jwtToken

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

languages_id_get

Language languages_id_get(id)

Information about a particular language, given the language ID.

Example

from __future__ import print_function
import time
import tvdb_api
from tvdb_api.rest import ApiException
from pprint import pprint

# Configure API key authorization: jwtToken
configuration = tvdb_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = tvdb_api.LanguagesApi(tvdb_api.ApiClient(configuration))
id = 'id_example' # str | ID of the language

try:
    api_response = api_instance.languages_id_get(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LanguagesApi->languages_id_get: %s\n" % e)

Parameters

Name Type Description Notes
id str ID of the language

Return type

Language

Authorization

jwtToken

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]