HTTP request
GET https://api.wevoteusa.org/apis/v1/deviceStoreFirebaseCloudMessagingToken (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 |
platform_type | string | One of {"IOS", "ANDROID", WEBAPP"} |
firebase_fcm_token | string | The unique Firebase Cloud Messaging Token assigned to the calling device by Firebase |
Response
{ "voter_device_id": string (88 characters long), "success": boolean, "status": string,
Try It Now: API Variables
Store the Firebase Cloud Messaging Token, which has been generated for this device by Google's Firebasecloud service. This token allows WeVote to send a notification to the device via an API call to theFirebase Service. These notifications (in iOS) will appear on screen even if the WeVoteCordova app is notcurrently running. (Android has different conditions).