apidocs

GetLocalizedResources API

Returns the localized display strings for the specified infoRouter resource IDs. infoRouter stores all UI text, error messages, and label strings in an internal resource table keyed by integer ID. Client add-ins and integrations call this API to retrieve human-readable, language-aware strings -“ for example, to display status labels or error messages in the user’s configured language. If an authentication ticket is provided, the strings are returned in the language configured for that user’s session; without a ticket the server’s default language is used.

Endpoint

/srv.asmx/GetLocalizedResources

Methods

Parameters

Parameter Type Required Description
authenticationTicket string No Authentication ticket obtained from AuthenticateUser. Optional -“ if omitted, the server’s default language is used. If supplied, the returned strings are localised to the language of the user’s session.
resourceIds string Yes Comma-separated list of integer resource IDs whose localized strings should be returned (e.g. 1001,1002,2730). Non-numeric entries and IDs that do not exist in the resource table are silently ignored. Duplicate IDs are deduplicated.

Response

Success Response

Returns a <response success="true"> element containing a <Resources> child with one <Res> element per valid, resolved ID.

<response success="true">
  <Resources>
    <Res>
      <Id>1001</Id>
      <Value>Document not found.</Value>
    </Res>
    <Res>
      <Id>2730</Id>
      <Value>Insufficient rights. Anonymous users cannot perform this action.</Value>
    </Res>
  </Resources>
</response>

Empty Result

If resourceIds contains no valid integers, or all supplied IDs are invalid, the <Resources> element is returned empty.

<response success="true">
  <Resources />
</response>

Error Response

<response success="false" error="[901] Session expired or Invalid ticket" />

Response Element Reference

Element / Attribute Description
Resources Container element holding one <Res> child per returned resource.
Res/Id The integer resource ID as supplied in the request.
Res/Value The localised string for this resource ID in the language of the session (or the server default language if no ticket was provided).

Required Permissions

No elevated permissions required. The API can be called with or without an authentication ticket. An invalid or expired ticket will return an authentication error. Unauthenticated callers receive strings in the server’s default language.


Example

GET Request

GET /srv.asmx/GetLocalizedResources
  ?authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
  &resourceIds=1001,2730,9999
HTTP/1.1

POST Request

POST /srv.asmx/GetLocalizedResources HTTP/1.1
Content-Type: application/x-www-form-urlencoded

authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
&resourceIds=1001,2730,9999

SOAP Request

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:tns="http://tempuri.org/">
  <soap:Body>
    <tns:GetLocalizedResources>
      <tns:authenticationTicket>3f2504e0-4f89-11d3-9a0c-0305e82c3301</tns:authenticationTicket>
      <tns:resourceIds>1001,2730,9999</tns:resourceIds>
    </tns:GetLocalizedResources>
  </soap:Body>
</soap:Envelope>

Notes



Error Codes

Error Description
[900] Authentication failed The supplied ticket is invalid.
[901] Session expired or Invalid ticket The ticket has expired or does not exist.
SystemError:... An unexpected server-side error occurred.