curl -X GET -H "API-Key: [[apiKey]]" "http:///text/resolved?format=&languages=&groups=&since=&resolve=&subgroups="
import { TextApi } from "@apiture/text-client-sdk";
const textApi = new TextApi(configuration);
// Configure API key authorization: apiKey
var apiKey = "YOUR API KEY";
textApi.setApiKey(apiKey);
var api = new Text.TextApi.getResolvedText()
var opts = {
'format': format_example, // {String} Return text strings that match the named or default format (form factor). If no text for the requested format exists for a `textStringId`, the default text for that `textStringId` is returned.
'languages': , // {array[String]} Return text strings that match the search priority of the given language tag(s). The array is ordered by highest to lowest preference. For example, for `?languages=es-MX,en-GB`, the response will include text strings based on the following search priority: `es-MX` ⇒ `es` ⇒ `en-GB` ⇒ `en` ⇒ `` (_default_)
Items are [RFC 3066](https://tools.ietf.org/html/rfc3066) language identifiers. If used, `Accept-Language` header is ignored. Language codes are case insensitive.
'acceptLanguage': acceptLanguage_example, // {String} An [HTTP `Accept-Language`](https://tools.ietf.org/html/rfc7231#section-5.3.5) request header which specifies one or more languages with weights. The response will include one string for each combination of group name and string name. This is ignored if `?languages=` query parameter is used. `Accept-Language` is processed in a similar way as the `language` query parameter.
'groups': , // {array[String]} Subset the response to only text in the group or groups named in this parameter. Each item in the comma-separated list is a one-, two-, or three-level group name. Group names are case sensitive. The default is `?groups=common`. Example: `&groups=common,help,features.x,feature.y`
'since': 2013-10-20T19:20:30+01:00, // {Date} Return only text strings whose `updatedAt` time-stamp are newer than the `since` date-time. If omitted, return all text strings The value is an [RFC 3339](https://tools.ietf.org/html/rfc3339) time stamp in `YYYY-MM-DDThh:mm:ss.sssZ` format.
'resolve': true, // {Boolean} If `?resolve=false`, this operation does not resolve embedded `{{key}}` text string references.
'subgroups': true, // {Boolean} If `true`, the response includes all subgroups of each group named in `groups`. This example may return the groups `common` and `common.fi`, `common.print`, and `web.responsive` but not the groups `commonTrust` or `helpless`.
'ifNoneMatch': ifNoneMatch_example // {String} The entity tag that was returned in the `ETag` response. If the resource's current entity tag matches, the `GET` will return 304 (Not Modified) and no response body, else the resource representation will be returned.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
textApi.getResolvedText(opts, callback);