POST api/sendPushNotification
Request Information
URI Parameters
None.
Body Parameters
SendPushNotificationRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| NotificationSendType | integer |
None. |
|
| NotificationType | integer |
None. |
|
| NotificationMessage | string |
None. |
|
| NotificationData | string |
None. |
|
| NotificationOneUserToken | string |
None. |
|
| NotificationExtraData | string |
None. |
|
| NotificationOneUserOSType | integer |
None. |
|
| AndroidUsers | Collection of string |
None. |
|
| IosUsers | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{
"NotificationSendType": 1,
"NotificationType": 2,
"NotificationMessage": "sample string 3",
"NotificationData": "sample string 4",
"NotificationOneUserToken": "sample string 5",
"NotificationExtraData": "sample string 6",
"NotificationOneUserOSType": 7,
"AndroidUsers": [
"sample string 1",
"sample string 2"
],
"IosUsers": [
"sample string 1",
"sample string 2"
]
}
text/html
Sample:
{"NotificationSendType":1,"NotificationType":2,"NotificationMessage":"sample string 3","NotificationData":"sample string 4","NotificationOneUserToken":"sample string 5","NotificationExtraData":"sample string 6","NotificationOneUserOSType":7,"AndroidUsers":["sample string 1","sample string 2"],"IosUsers":["sample string 1","sample string 2"]}
application/xml, text/xml
Sample:
<SendPushNotificationRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Services">
<AndroidUsers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</AndroidUsers>
<IosUsers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</IosUsers>
<NotificationData>sample string 4</NotificationData>
<NotificationExtraData>sample string 6</NotificationExtraData>
<NotificationMessage>sample string 3</NotificationMessage>
<NotificationOneUserOSType>7</NotificationOneUserOSType>
<NotificationOneUserToken>sample string 5</NotificationOneUserToken>
<NotificationSendType>1</NotificationSendType>
<NotificationType>2</NotificationType>
</SendPushNotificationRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Object |
None. |
|
| ErrorMessage | string |
None. |
|
| Status | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {},
"ErrorMessage": "sample string 2",
"Status": true
}
text/html
Sample:
{"Data":{},"ErrorMessage":"sample string 2","Status":true}
application/xml, text/xml
Sample:
<BaseResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Services.Models"> <Data /> <ErrorMessage>sample string 2</ErrorMessage> <Status>true</Status> </BaseResponseModel>