Sha256: 2ae9d3e4ad8b13a46d71dc6ffabf0a6055690b3132a2dd163bb7e8f085c28967

Contents?: true

Size: 1.23 KB

Versions: 3

Compression:

Stored size: 1.23 KB

Contents

# Phrase::FormatsApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**formats_list**](FormatsApi.md#formats_list) | **GET** /formats | List formats



## formats_list

> Array<Format> formats_list

List formats

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

### Example

```ruby
# 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
```

### Parameters

This endpoint does not need any parameter.

### Return type

Response<([**Array&lt;Format&gt;**](Format.md))>

### Authorization

[Basic](../README.md#Basic), [Token](../README.md#Token)

### HTTP request headers

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phrase-3.7.1 docs/FormatsApi.md
phrase-3.7.0 docs/FormatsApi.md
phrase-3.6.0 docs/FormatsApi.md