SendSimple
This operation sends a simple message to multiple user targets.
Results
Name | Description |
---|---|
estimatedTargets | Estimate number of targeted users. |
Service | Operation |
---|---|
pushNotification | SEND_SIMPLE |
Method Parameters
Parameter | Description |
---|---|
message | The content of the message. |
segmentIdList | List of target segments. Omit to send to all users. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
var message = "Hello World";
var segmentIdList = [
1,
2
];
var pushNotificationProxy = bridge.getPushNotificationServiceProxy();
var postResult = pushNotificationProxy.sendSimple(message, segmentIdList);
if (postResult.status == 200) {
// Success!
}
{
"service": "pushNotification",
"operation": "SEND_SIMPLE",
"data": {
"message": "Hello World",
"segmentIdList": [
1,
2
]
}
}
JSON Response
{
"packetId": 1,
"messageResponses": [
{
"status": 200,
"data": {
"estimatedTargets": 1234
}
}
]
}