a guest Aug 24th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- // 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!
- // the number you'd like to send the message to
- // 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!"
RAW Paste Data