All URIs are relative to https://api.dyspatch.io/
Method | HTTP request | Description |
---|---|---|
localizationsLocalizationIdGet | GET /localizations/{localizationId} | Get Localization Object by ID |
LocalizationRead localizationsLocalizationIdGet(localizationId, targetLanguage)
Get Localization Object by ID
Returns a specific localization object with a matching ID
// Import classes:
//import io.dyspatch.client.ApiClient;
//import io.dyspatch.client.ApiException;
//import io.dyspatch.client.Configuration;
//import io.dyspatch.client.auth.*;
//import io.dyspatch.client.api.LocalizationsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: Bearer
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
Bearer.setApiKey("YOUR API KEY");
Bearer.setApiKeyPrefix("Bearer");
LocalizationsApi apiInstance = new LocalizationsApi();
String localizationId = "localizationId_example"; // String | A localization ID
String targetLanguage = "targetLanguage_example"; // String | The type of templating language to compile as. Should only be used for visual templates.
try {
LocalizationRead result = apiInstance.localizationsLocalizationIdGet(localizationId, targetLanguage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LocalizationsApi#localizationsLocalizationIdGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
localizationId | String | A localization ID | |
targetLanguage | String | The type of templating language to compile as. Should only be used for visual templates. | [optional] [enum: html, jinja, handlebars, ampscript, freemarker, cheetah] |
- Content-Type: Not defined
- Accept: application/vnd.dyspatch.2019.03+json