composer require twilio/sdk
<?php // Required if your environment does not handle autoloading require __DIR__ . '/vendor/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 $sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; $token = 'your_auth_token'; $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 '+15558675309', array( // A Twilio phone number you purchased at twilio.com/console 'from' => '+15017250604', // the body of the text message you'd like to send 'body' => 'Hey Jenny! Good luck on the bar exam!' ) ); ?>
<?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 $sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; $token = 'your_auth_token'; $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 '+15558675309', array( // A Twilio phone number you purchased at twilio.com/console 'from' => '+15017250604', // the body of the text message you'd like to send 'body' => "Hey Jenny! Good luck on the bar exam!" ) );
composer require twilio/sdk:4.11.0
composer require twilio/sdk:5.4.2-alpha1
No hay comentarios:
Publicar un comentario