The Message model contains information related to a message sent to a single destination. For the XML format it is a member of the Messages model, otherwise it is a member of Transaction . It contains the following information:
Properties
A unique identifier for this message
The current status of the message. See Message Status .
The time at which the message was sent by the API to the Messaging Gateway
The time at which the message was delivered by the Mobile Network
The following example is a segment of the response from
Send SMS
. In this example the
sentAt and
deliveredAt elements are empty
because the message has not been sent to the Messaging Gateway. This
is also apparent from the 0 status code.
<response method="send/sms" status="OK" version="1.2">
<transaction type="0" id="ff8080811a9b167b011a9b7e693e0002">
<messages status="0" id="ff8080811a9b167b011a9b7e69c20003"/>
</transaction>
</response>
The following example is a segment of the JSON response to the Status method.
{
"deliveredAt":"2007-06-28 18:20:00.0",
"status":1,
"sentAt":"2007-06-28 16:19:49.0",
"id":118
}
The following is an example of the Plain response. Written on a
single line it contains the text
MESSAGE followed by the Message ID,
the sent and delivered time.
MESSAGE 12 2007-06-28 16:19:49.0 2007-06-28 18:20:00.0