DigiOffice Gateway Web Services

<back to all web services

GetTranslations

GetTranslations Parameters:
NameParameterData TypeRequiredDescription
TranslateKeysqueryList<string>No
GetTranslationsResponse Parameters:
NameParameterData TypeRequiredDescription
TranslationsformList<Translation>No
PreferredLanguageformstringNo
PreferredLanguageShortformstringNo
Translation Parameters:
NameParameterData TypeRequiredDescription
KeyformstringNo
NLformstringNo
ENformstringNo
DEformstringNo
FRformstringNo
C1formstringNo
C2formstringNo
C3formstringNo
C4formstringNo
C5formstringNo
C6formstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/GetTranslations HTTP/1.1 
Host: digiofficeapigateway.deltares.nl 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"TranslateKeys":["String"]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Translations":[{"Key":"String","NL":"String","EN":"String","DE":"String","FR":"String","C1":"String","C2":"String","C3":"String","C4":"String","C5":"String","C6":"String"}],"PreferredLanguage":"String","PreferredLanguageShort":"String"}