Account links are hyperlinks to other election topics of interest specified by the election administrator (account) for a specific subdomain which is specified on the call (ie: nyc for the City of New York for nyc.electionapi.com provides links to other election information provided by the Board of Elections in the City of New York). These links can be integrated into your own site or app for additional resources that are hosted by the election administrator.
NOTE: Be sure to include the key parameter with your call see api_keys |
---|
accountlinks | GET | Service at https://nyc.electionapi.com/psl/version/1.0/accountlinks?lang={CODE} |
---|
{CODE}=3 character abbreviation of a language code returned from: accountlanguages call
Return items array as follows:
|day|isDateOnly|isDirty|isEmpty|localDateTime|month|tzinfo|universalDateTime|year|
|day|isDateOnly|isDirty|isEmpty|localDateTime|month|tzinfo|universalDateTime|year|
Example: https://nyc.electionapi.com/psl/version/1.0/accountlinks?lang=spa – Retrieve links for Spanish
Returns: (first link item only shown)
Name | Value |
---|---|
accountId | 1 |
accountLinkId | 14 |
createdById | 0 |
createdDTTM | … |
createdDTTMtz | null |
description | null |
isActive | true |
languageId | 2 |
lastUpdatedDTTM | … |
lastUpdatedDTTMtz | null |
name | “Página Principal” |
showOnNav | true |
sortKey | 1 |
updatedById | 0 |
URI | “http://vote.nyc.ny.us/“ |