All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
languages_get | GET /languages | |
languages_id_get | GET /languages/{id} |
LanguageData languages_get()
All available languages. These language abbreviations can be used in the Accept-Language
header for routes that return translation records.
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)
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Language languages_id_get(id)
Information about a particular language, given the language ID.
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)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ID of the language |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]