Skip to content

Latest commit

 

History

History
87 lines (66 loc) · 3.08 KB

IcuApi.md

File metadata and controls

87 lines (66 loc) · 3.08 KB

IcuApi

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

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

icuSkeleton

Icu icuSkeleton(icuSkeletonParameters, xPhraseAppOTP)

Build ICU skeletons

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

Example

// Import classes:
import com.phrase.client.ApiClient;
import com.phrase.client.ApiException;
import com.phrase.client.Configuration;
import com.phrase.client.auth.*;
import com.phrase.client.models.*;
import com.phrase.client.api.IcuApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://api.phrase.com/v2");
    
    // Configure HTTP basic authorization: Basic
    HttpBasicAuth Basic = (HttpBasicAuth) defaultClient.getAuthentication("Basic");
    Basic.setUsername("YOUR USERNAME");
    Basic.setPassword("YOUR PASSWORD");

    // Configure API key authorization: Token
    ApiKeyAuth Token = (ApiKeyAuth) defaultClient.getAuthentication("Token");
    Token.setApiKey("YOUR API KEY");
    Token.setApiKeyPrefix("token");

    IcuApi apiInstance = new IcuApi(defaultClient);
    IcuSkeletonParameters icuSkeletonParameters = new IcuSkeletonParameters(); // IcuSkeletonParameters | 
    String xPhraseAppOTP = "xPhraseAppOTP_example"; // String | Two-Factor-Authentication token (optional)
    try {
      Icu result = apiInstance.icuSkeleton(icuSkeletonParameters, xPhraseAppOTP);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling IcuApi#icuSkeleton");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

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

Return type

Icu

Authorization

Basic, Token

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
* Link -
400 Bad request * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
404 Not Found * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -
429 Rate Limiting * X-Rate-Limit-Limit -
* X-Rate-Limit-Remaining -
* X-Rate-Limit-Reset -