Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Require the bundled autoload file - the path may need to change
- // based on where you downloaded and unzipped the SDK
- 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 = 'ACd4edf3e20796a3243af3fd9ece6ab76f';
- $token = '54ae8ed11f8f255976a98f5b9223ccf3';
- $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
- '+6288212091970',
- array(
- // A Twilio phone number you purchased at twilio.com/console
- 'from' => '+14155238886',
- // the body of the text message you'd like to send
- 'body' => "Hey Jenny! Good luck on the bar exam!"
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement