POST /user/app-notification-token
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
Pass the following properties via application/json or form encoding in the body of the request.
A dictionary with fields
Field | Type | Description |
---|---|---|
device_type | String | String enumarion of 'ios', 'android' |
bundle_name | String | The bundle name of the app. |
token | String | The token that was returned by android/ios |
POST /user/app-notification-token HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.10.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 74
{
"device_type": "ios",
"bundle_name": "...",
"token": "..."
}
Information about a App Notification Token
Field | Type | Description |
---|---|---|
token | String | A String value |
bundle_name | String | A String value |
device_type | String | String enumarion of 'ios', 'android' |
user_id | Int | An integer value |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 93
{
"token": "...",
"bundle_name": "...",
"device_type": "ios",
"user_id": 17
}