User Tools

Site Tools


accountlanguages

Table of Contents

Account Languages

Returns JSON item array of all languages supported by PSL. The language codes are used in other services in order to provide the proper localized translation provided by the election administrator (account). These translations, when available, are ideal for use in place of other means as they are crafted by the election administrator with election terms as they are commonly expressed to the voting population that they serve.

NOTE: Be sure to include the API Key parameter with your call see api_keys

Call:

accountlanguages GET Service at https://nyc.electionapi.com/psl/accountlanguages

Returns:

Return items array as follows:

  • accountId is the internal identifier used by ElectionHub that is associated to the subdomain ('nyc' in example above)
  • accountLanguageId is the internal identifier used to map accounts to languages in ElectionHub
  • code is the abbreviation of the language used in ElectionHub
  • languageId is the internal account-independent identifier of the language used by ElectionHub
  • localName is the name of the language in the language itself
  • name is the name of the language in English
  • shortCode is the ISO 639-1 Language Code for the language returned

(English, Spanish and Traditional Chinese shown as example below).

NameValue
accountId1
accountLanguageId3
code“eng”
languageId4
localName“English”
name“English”
shortCode“en”
accountId1
accountLanguageId1
code“spa”
languageId2
localName“Español”
name“Spanish”
shortCode“es”
accountId1
accountLanguageId4
code“zho”
languageId5
localName“中文”
name“Chinese”
shortCode“zh”
accountlanguages.txt · Last modified: 2016/01/28 08:19 (external edit)