POST api/Notification/SendFcmNotification
Request Information
URI Parameters
None.
Body Parameters
SendFcmNotificationRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| DeviceToken | string |
None. |
|
| Platform | string |
None. |
|
| Title | string |
None. |
|
| Body | string |
None. |
|
| HHID | string |
None. |
|
| CompanyID | string |
None. |
|
| CollapseId | string |
None. |
|
| Sound | string |
None. |
|
| CustomData | Dictionary of string [key] and string [value] |
None. |
Request Formats
application/json, text/json
Sample:
{
"DeviceToken": "sample string 1",
"Platform": "sample string 2",
"Title": "sample string 3",
"Body": "sample string 4",
"HHID": "sample string 5",
"CompanyID": "sample string 6",
"CollapseId": "sample string 7",
"Sound": "sample string 8",
"CustomData": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
}
}
application/xml, text/xml
Sample:
<SendFcmNotificationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Android_API.Models">
<Body>sample string 4</Body>
<CollapseId>sample string 7</CollapseId>
<CompanyID>sample string 6</CompanyID>
<CustomData xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value>sample string 2</d2p1:Value>
</d2p1:KeyValueOfstringstring>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>sample string 3</d2p1:Key>
<d2p1:Value>sample string 4</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</CustomData>
<DeviceToken>sample string 1</DeviceToken>
<HHID>sample string 5</HHID>
<Platform>sample string 2</Platform>
<Sound>sample string 8</Sound>
<Title>sample string 3</Title>
</SendFcmNotificationRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultWithModel| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| message | string |
None. |
|
| refcode | string |
None. |
|
| total | integer |
None. |
|
| datas | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"message": "sample string 2",
"refcode": "sample string 3",
"total": 4,
"datas": {}
}
application/xml, text/xml
Sample:
<ResultWithModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Android_API.Models"> <datas /> <message>sample string 2</message> <refcode>sample string 3</refcode> <success>true</success> <total>4</total> </ResultWithModel>