Add Subscription
Last updated on June 25, 2015 10:55
This method allows you to register for push notifications. Currently, only Android GCM notifications are supported, and all notifications will be sent to all devices.
URL
/api/v1/notifications/subscribe
Required parameters
device_type
- the type of device, currently this should be "android" or "ios"device_key
- your device keydevice_key_unsubscribe
- an old device key to unsubscribe
Response
The server will respond with details of the new subscription
{
"id": 1,
"device_key": "1234567890"
}