Skip to content

Latest commit

 

History

History
70 lines (47 loc) · 1.7 KB

ICUApi.md

File metadata and controls

70 lines (47 loc) · 1.7 KB

Phrase::ICUApi

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

Method HTTP request Description
icu_skeleton POST /icu/skeleton Build ICU skeletons

icu_skeleton

Icu icu_skeleton(icu_skeleton_parameters, opts)

Build ICU skeletons

Returns ICU skeletons for multiple locale codes based on a source content.

Example

# 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::ICUApi.new
icu_skeleton_parameters = Phrase::IcuSkeletonParameters.new # IcuSkeletonParameters | 
opts = {
  x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
}

begin
  #Build ICU skeletons
  result = api_instance.icu_skeleton(icu_skeleton_parameters, opts)
  pp result
rescue Phrase::ApiError => e
  puts "Exception when calling ICUApi->icu_skeleton: #{e}"
end

Parameters

Name Type Description Notes
icu_skeleton_parameters IcuSkeletonParameters
x_phrase_app_otp String Two-Factor-Authentication token (optional) [optional]

Return type

Response<(Icu)>

Authorization

Basic, Token

HTTP request headers

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