Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 1.8 KB

FormatsApi.md

File metadata and controls

67 lines (45 loc) · 1.8 KB

phrase_api.FormatsApi

All URIs are relative to https://api.phrase.com/v2

Method HTTP request Description
formats_list GET /formats List formats

formats_list

List[Format] formats_list()

List formats

Get a handy list of all localization file formats supported in Phrase.

Example

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)

Parameters

This endpoint does not need any parameter.

Return type

List[Format]

Authorization

Basic, Token

HTTP request headers

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

HTTP response details

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]