Create a new ToDeviceRequest
.
Readonly
bodyA JSON-encoded string containing the rest of the payload: messages
.
It represents the body of the HTTP request.
Readonly
event_A string representing the type of event being sent to each devices.
Readonly
idThe request ID.
For to-device request this would be the same value as txn_id
. It is
exposed also as id
so that the js bindings are consistent with the
other request types by using this field to mark as sent.
Readonly
txn_A string representing a request identifier unique to the access token used to send the request.
Readonly
typeGet its request type.
Data for a request to the
/sendToDevice
API endpoint (specification).Send an event to a single device or to a group of devices.