Using Twilio and a php script how do I get the from number and body data from an incoming sms?
I have a paid account. My incoming texts are being sent to my php script via twilio but I just need to know how to get the number and body.
This should be easy but its not.
<? // my script
$from = ???;
$body = ???;
Twilio evangelist here.
Parameters are passed from Twilio as form-encoded data, so you can use PHP's
Check out this Quickstart for a longer example:
Hope that helps.