All URIs are relative to https://api.phrase.com/v2
Method | HTTP request | Description |
---|---|---|
formats_list | GET /formats | List formats |
List[Format] formats_list()
List formats
Get a handy list of all localization file formats supported in Phrase.
from __future__ import print_function
import time
import phrase_api
from phrase_api.rest import ApiException
from pprint import pprint
configuration = phrase_api.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
configuration.api_key_prefix['Authorization'] = 'token'
# Enter a context with an instance of the API client
with phrase_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = phrase_api.FormatsApi(api_client)
try:
# List formats
api_response = api_instance.formats_list()
pprint(api_response)
except ApiException as e:
print("Exception when calling FormatsApi->formats_list: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad request | * X-Rate-Limit-Limit - * X-Rate-Limit-Remaining - * X-Rate-Limit-Reset - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]