Test Notifications over API (Draft)
To avoid sending a notification to the wrong segment, you can simulate a push notification send request and observe the affected number of recipient devices in the response without sending an actual notification.
Simple Push Notifications
Use the simple push notications method to verify your requests while sending push messages.
Request format
Parameter |
Type |
Description |
---|---|---|
from |
string |
Push APPLICATION CODE you are using to send messages. |
to |
object |
|
text |
string |
Text of the message that will be sent. |
sendAt |
datetime |
Used to send push notifications at a scheduled time. |
customPayload |
object |
Additional JSON data that can be delivered with the push message. |
notificationOptions |
object |
JSON object that contains notification options. |
Bulk Push Notifications
Use the bulk push notifications method to verify your requests while sending bulk push messages.
Request format
Parameter |
Type |
Description |
---|---|---|
messages |
object |
Collection of push notifications. Each message in the collection is completely independent: different values may be used for each notification, such as sender application or message text. Refer to Send Simple Push Notification section for details about each push notification. |