registerdevice/{deviceID}/{deviceType}/{pushToken}?authToken={authToken}&surname={surname}&identifierType={identifierType}&identifier={identifier}
Register a device to be able to recieve push notification from Engage
Request Information
authToken |
Authorization Token |
Required |
string |
deviceID |
Unique ID of the device |
Required |
string |
pushToken |
Current push Token |
Required |
string |
deviceType |
iOS or Andriod |
Required |
string |
surname |
Default value is |
string | |
identifierType |
Default value is |
string | |
identifier |
Default value is |
string |
Response Codes
OK (200) |
Device Registered for Push |
||
BadRequest (400) |
Device Failed to Register for Push. (Info included in Error Description |
Response Information
application/json, text/json
Sample:
{ "DeviceID": "e9831cc772e24fcf8e2c08d17870f5a2", "Registered": "True" }
application/xml, text/xml
Sample:
<RegisterDeviceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AmiAssistWrapper.Infrastructure.Results"> <DeviceID>e9831cc772e24fcf8e2c08d17870f5a2</DeviceID> <Registered>True</Registered> </RegisterDeviceResult>