Push token
Endpoint where devices can send their push deviceToken/channelURI/regsitrationID (depends on the device you are using) which can later be used to send push notifications to this device.
POST /me/push
Parameters
type * required string
|
Push token type Possible values:apple, apple_fcm, google, windows |
token * required string
|
Send deviceToken/channelURI/regsitrationID (depends on the device you are using). Make sure the correct |
* denotes required field/parameter.
Request
$ curl https://api.toshl.com/me/push \ -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl" \ -H "Content-Type: application/json" \ -X POST \ -d '{"type": "apple", "token": "XYZ"}'