Twilio can easily send SMS messages but I am wondering if I can write a XOJO Web App or maybe a Console App to respond to Twilio receiving an SMS message and responding.
Here is a snippet of PHP code that will respond back to the sender of an SMS. I have created a working a server based on this code to open and used a MySQL db that is also used by a XOJO app on the same server. I have more complex logic to add and I really don’t want to do it in PHP. I would much prefer XOJO.
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\
<Message>Hello, Mobile Monkey</Message>
Here is the Twilio page that explains the process. Essentially you configure your Twilio number to point to a Website. When an SMS is received by Twilio it does a PUT (I think) to the Web site address. From there you can process some of the parameters and respond, if desired, with something that is XML formatted that goes back to the sender.
In PHP these parameters tell you two things about the message from the person sending the SMS.
$body = $_REQUEST['Body'];
$from = $_REQUEST['From'];
The BODY is what the user entered into the message.
The FROM is their phone number.
From these you can interact with the DB and respond back to the person that sent the SMS.
BUT … maybe I just need to learn more PHP.