Skip to content

Latest commit

 

History

History
70 lines (46 loc) · 2.12 KB

ICUApi.md

File metadata and controls

70 lines (46 loc) · 2.12 KB

Phrase\ICUApi

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

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

icuSkeleton

\Phrase\Model\Icu icuSkeleton($icu_skeleton_parameters, $x_phrase_app_otp)

Build ICU skeletons

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

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$config = Phrase\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
$config = Phrase\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'token');

$apiInstance = new Phrase\Api\ICUApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$icu_skeleton_parameters = new \Phrase\Model\IcuSkeletonParameters(); // \Phrase\Model\IcuSkeletonParameters | 
$x_phrase_app_otp = 'x_phrase_app_otp_example'; // string | Two-Factor-Authentication token (optional)

try {
    $result = $apiInstance->icuSkeleton($icu_skeleton_parameters, $x_phrase_app_otp);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ICUApi->icuSkeleton: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
icu_skeleton_parameters \Phrase\Model\IcuSkeletonParameters
x_phrase_app_otp string Two-Factor-Authentication token (optional) [optional]

Return type

\Phrase\Model\Icu

Authorization

Basic, Token

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]