Create an app notification token

POST /user/app-notification-token

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

Body

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

Example request 1

POST /user/app-notification-token HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.9.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 74
{
    "device_type": "ios",
    "bundle_name": "...",
    "token": "..."
}

Response

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

Example response 1

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 93

{
    "token": "...",
    "bundle_name": "...",
    "device_type": "ios",
    "user_id": 10
}
1.9.0 stable