Twilio, is not funcion |
9/1/2016 11:58:12 AM |
PHPRunner General questions | |
J
jrbr author
I need help integration, Twilio SMS |
|
![]() |
romaldus 9/1/2016 |
I need help integration, Twilio SMS <?php // Require the bundled autoload file - the path may need to change // based on where you downloaded and unzipped the SDK require DIR . '/twilio-php-master/Twilio/autoload.php'; // Use the REST API Client to make requests to the Twilio REST API use Twilio\Rest\Client; // Your Account SID and Auth Token from twilio.com/console'>twilio.com/console $sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; $token = 'xxxxxxxxxxxxxxxxxxxxxxx'; $client = new Client($sid, $token); // Use the client to do fun stuff like send text messages! $client->messages->create( // the number you'd like to send the message to '+xxxxxxxxxxxxxxxxxxxxx', array( // A Twilio phone number you purchased at twilio.com/console'>twilio.com/console 'from' => '+xxxxxxxxxxxxxxxxxxxxxxx', // the body of the text message you'd like to send 'body' => "Hey Jenny! Good luck on the bar exam!" ) ); Need possibilit, integration, my database. Thank you, Att. Junior
|
J
|
jrbr author 9/1/2016 |
http://www.asprunner.com/forums/topic/22786-sending-record-data-via-sms-twilio/
|
![]() |
Sergey Kornilov admin 9/1/2016 |
What is not compatible? What's the exact error message? |