Ruby interface for the Lokalise APIv2 that represents returned data as Ruby objects.
View the Project on GitHub lokalise/ruby-lokalise-api
@client.translation_providers(team_id, params = {}) # Input:
## team_id (string, required)
## params (hash)
### :page and :limit
# Output:
## Collection of providers for the team
For example:
team_id = '1234'
params = {
limit: 2,
page: 1
}
providers = @client.translation_providers team_id, params
providers[0].name # => 'Gengo'
@client.translation_provider(team_id, provider_id) # Input:
## team_id (string, required)
## provider_id (string, required)
# Output:
## Single provider for the team
For example:
provider = @client.translation_provider team_id, provider_id
provider.slug # => 'gengo'
provider.pairs[0]['price_per_word'] # => 0.069