Android Push

You need the Manage Settings permission to manage Android Push.

Android Push
- Android Push Manage
GET livechat/androidPush
PUT livechat/androidPush
Model
Android Push JSON Format

Android Push is represented as simple flat JSON objects with the following keys:

Name Type Description
androidType string Allowed values are "fcm", "thirdParty".
androidFCMAPIKey string Android fcm API key,mandatory when androidType is fcm.
androidThirdPartyURL string Android third party URL,mandatory when androidType is thirdParty.
androidThirdPartyRequestBody string Android third party request body,mandatory when androidType is thirdParty.
androidPushFcmExtraData androidPushFcmExtraData[] Reference to Android Push Fcm Extra Data.
androidPushThirdPartyRequestHeaders androidPushThirdPartyRequestHeaders[] Reference to Android Push Third Party Request Header.

Android Push Fcm Extra Data JSON Format:

Name Type Description
id guid Id of the Android push FCM extra data.
field string Field name of this Android FCM extra data.
content string Content of this Android FCM extra data.

Android Push Third Party Request Header JSON Format:

Name Type Description
id guid Id of the Android push third party request header.
field string Field name of this third party request header.
content string Content of this third party request header.
Endpoint
Get a single Android Push

GET livechat/androidPush

Parameters:
Name Type In Required Description
include string query no Allowed values are "androidPushFcmExtraData", "androidPushThirdPartyRequestHeader".
Response:
Example

Sample Request:

curl https://api15.comm100.io/v4/livechat/androidPush \
-X 'GET' \
-H 'Authorization: Bearer {access_token}' \

Response:

 HTTP/1.1 200 OK

{"androidType":"fcm","androidFCMAPIKey":"123123","androidThirdPartyURL":"https://www.comm100.com","androidThirdPartyRequestBody":"11","androidPushFcmExtraData":[{"id":"56EEC186-7084-4BDF-A23B-F7B69548A733","field":"","content":""}],"androidPushThirdPartyRequestHeaders":[{"id":"1E8807C2-52C9-4532-8B51-188670B7BB23","field":"","content":""}]}
Update the Android Push

PUT livechat/androidPush

Parameters:
Name Type In Required Description
androidType string body no Allowed values are "fcm", "thirdParty".
androidFCMAPIKey string body yes Android fcm API key,mandatory when androidType is fcm.
androidThirdPartyURL string body yes Android third party URL,mandatory when androidType is thirdParty.
androidThirdPartyRequestBody string body yes Android third party request body,mandatory when androidType is thirdParty.
androidPushFcmExtraData androidPushFcmExtraData[] body no Reference to Android Push Fcm Extra Data.
androidPushThirdPartyRequestHeaders androidPushThirdPartyRequestHeaders[] body no Reference to Android Push Third Party Request Header.
Response:
Example

Sample Request:

curl https://api15.comm100.io/v4/livechat/androidPush \
-X 'PUT' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
-D '{"androidType":"fcm","androidFCMAPIKey":"123123","androidThirdPartyURL":"https://www.comm100.com","androidThirdPartyRequestBody":"11","androidPushFcmExtraData":[{"field":"","content":""}],"androidPushThirdPartyRequestHeaders":[{"field":"","content":""}]}'

Response:

 HTTP/1.1 200 OK

{"androidType":"fcm","androidFCMAPIKey":"123123","androidThirdPartyURL":"https://www.comm100.com","androidThirdPartyRequestBody":"11","androidPushFcmExtraData":[{"id":"56EEC186-7084-4BDF-A23B-F7B69548A733","field":"","content":""}],"androidPushThirdPartyRequestHeaders":[{"id":"1E8807C2-52C9-4532-8B51-188670B7BB23","field":"","content":""}]}