-
Notifications
You must be signed in to change notification settings - Fork 224
Reply XML
niryariv edited this page Nov 9, 2010
·
9 revisions
The target URL can assign tasks to KalSMS using the Reply XML format. At the moment, three tags are supported:
The entire response is always provided inside a <reply>
tag.
<sms phone="555">hey</sms>
Send an SMS message a phone number.
<sms-to-sender>hey</sms>
Send a message to the original sender’s phone. (Essentially just a convenience tag, equivalent to <sms phone="sender">hey</sms>
)
Here’s an example for a complete reply (see Examples for more):
<reply>
<sms phone="1234">Hey</sms>
<sms phone="5678">Hello</sms>
<sms-to-sender>Hey, sender. Sent "Hey" to 1234 and "Hello" to 5678</sms-to-sender>
</reply>