< back to index

HTTP request

GET https://api.wevoteusa.org/apis/v1/voterPositionLikeStatusRetrieve (Jump to "Try It Now")

Required Parameters

Parameter name Value Description
voter_device_id string An 88 character unique identifier linked to a voter record on the server
api_key string (from post, cookie, or get (in that order)) The unique key provided to any organization using the WeVoteServer APIs
position_entered_id integer The position that the voter is liking.

Response

{
  "status": string,
  "success": boolean,
  "voter_device_id": string (88 characters long),
  "is_liked": boolean,
  "position_like_id": integer,
  "position_entered_id": integer,
}

Response Status Codes

Code Description
VALID_VOTER_DEVICE_ID_MISSING Cannot proceed. A valid voter_device_id parameter was not included.
VALID_VOTER_ID_MISSING Cannot proceed. A valid voter_id was not found.
POSITION_LIKE_FOUND_WITH_VOTER_ID_AND_POSITION_ID
UNABLE_TO_RETRIEVE-POSITION_ENTERED_ID_MISSING

Try It Now: API Variables

Has this voter 'Liked' this position?

Parameter name Value  
voter_device_id:
position_entered_id:

(opens in new window)