
MT (Mobile Terminated) Messages
To send a message to a device, you need to call /SendMessage
"
Note: this must be an HTTP POST. "GET won't work.
"
An example:
"
$ curl -d "username=xxx&password=yyy&message=Hello%20World&ackRequest=yes" \
"http://secure.rock7mobile.com/API2/SendMessage/2322"
"
<?xml version="1.0" encoding="UTF-8"?>
<SendMessage><receipt messageId="2110" /></SendMessage>
"
So the POST parameters are message=blah"(obvious)"and ackRequest=yes/no which would cause the device to prompt the user to acknowledge receipt/reading.
"
If successful, you'll see the <receipt /> element containing the unique ID for this MT message. "This will match the messageAck parameter discussed above when the
device user acknowledges.
Kommentare zu diesen Handbüchern