All URIs are relative to https://api.phrase.com/v2
Method | HTTP request | Description |
---|---|---|
formats_list | GET /formats | List formats |
Array<Format> formats_list
List formats
Get a handy list of all localization file formats supported in Phrase.
# load the gem
require 'phrase'
# setup authorization
Phrase.configure do |config|
# Configure HTTP basic authorization: Basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
# Configure API key authorization: Token
config.api_key['Authorization'] = 'YOUR API KEY'
config.api_key_prefix['Authorization'] = 'token'
end
api_instance = Phrase::FormatsApi.new
begin
#List formats
result = api_instance.formats_list
pp result
rescue Phrase::ApiError => e
puts "Exception when calling FormatsApi->formats_list: #{e}"
end
This endpoint does not need any parameter.
Response<(Array<Format>)>
- Content-Type: Not defined
- Accept: application/json