Description:
Sends the FCM token to the app server. This API enables push notification feature.
URL: api/v3/helpdesk/fcmtoken
(Replace this URL with you helpdesk URL)
Parameters:
Name | Data Type | Required / Optional | Description |
id | Integer | Required | Id of the user |
os | string | Optional | OS type |
fcm_token | string | Required | Token of the device for push notifications |
HTTP Method : POST
- URL Request Example:
https://www.stablehelpdesk.faveodemo.com/api/v1/fcmtoken?user_id=2770&fcm_token=dR-lnywXZgE:APA91bG9snGwh7IXLww_bM_HIdk2E3hhisEDM-MOhwnfNXwrRcAM2HKBv6v-x5tZKzwdXpFoYdr7q1GjLoBGYrpai1L-a1lmGARRXowG6iE7UgZRHa4oj1nUG3EkIyUjusHmhnWw2HBGtPlWe6Y6iWXoBrPLNMLjZg&os=ios
Response
- Response Format : JSON
- Returns JSON which contains below response
{ "response": "success" }
Description:
Name | Description |
response | It returns response=success for success and else returns response=fails for failure |
Possible Errors/Failures:
Please check the responses for some common errors