< back to index

HTTP request

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

Required Parameters

Parameter name Value Description
api_key string (from post, cookie, or get (in that order)) The unique key provided to any organization using the WeVoteServer APIs
voter_device_id string An 88 character unique identifier linked to a voter record on the server
facebook_profile_image_url_https string The url on the facebook servers of this person's profile photo.
twitter_profile_image_url_https string The url on the twitter servers of this person's profile photo.

Response

{
  "status": string (description of what happened),
  "success": boolean (True as long as no db errors),
  "voter_device_id": string (88 characters long),
  "voter_photo_saved": boolean (did the voter address save happen?),
  "facebook_profile_image_url_https": string,
  "twitter_profile_image_url_https": string,
}

Response Status Codes

Code Description
VALID_VOTER_DEVICE_ID_MISSING Cannot proceed. A valid voter_device_id parameter was not included.
MISSING_VOTER_ID Cannot proceed. Missing variables voter_id while trying to save.
VOTER_PHOTO_SAVED Successfully saved

Try It Now: API Variables

Save one or more photos for the current voter.

Parameter name Value  
voter_device_id:
facebook_profile_image_url_https:
twitter_profile_image_url_https:

(opens in new window)