1. Home
  2. API Documentation
  3. Add or update a device token subscription

Add or update a device token subscription

Request Example https://pushenvoy.com/app/api/save_device/?device_token=[device_token]&device_type=ios&channels_id=1,2
Authentication Send the application access token in the HEADER or POST body for each API request with parameter name `Access_Token` to pass the authentication layer
Send Type Send parameters in POST or GET is available
Note If the device token already exists system will update the device token data with any changes
Parameters
device_token
DescriptionDevice token value get from mobile device API
Typestring
RequiredYes
device_type
DescriptionSupport iOS, Android, Windows Phone 8, BlackBerry 10, Chrome, Safari and Firefox devices
TypeChoose(ios,android,wp,wp10,bb,chrome,safari,firefox)
RequiredYes
active
DescriptionDevice susbcription status
Typeboolean(1,0) default is 1
RequiredNo
channels_id
DescriptionIDS of channels to subscribe in, seperated by (,) like 1,2,3
Typestring
Required
latitude
Descriptionlatitude point for the device GPS location
Typestring
RequiredNo
longitude
DescriptionLongitude point for the device GPS location
Typestring
RequiredNo
Dynamic Info
DescriptionSend the device information for the preset dynamic info parameters like os_version, device_model, app_version and country etc…
Type(string)
RequiredNo
Errors

App exceeded the allowed number of subscribed devices .

Wrong device type value. System does not support this platform

Was this article helpful to you? Yes No

How can we help?