<?php
require __DIR__ . '/twilio-php-main/src/Twilio/autoload.php';
use Twilio\Rest\Client;

// Your Account SID and Auth Token from twilio.com/console
// To set up environmental variables, see http://twil.io/secure
//$account_sid = getenv('ACe69947177d64b438e633902943815dc1');
//$auth_token = getenv('cf3e8457f284d379eba121806915630c');
// In production, these should be environment variables. E.g.:
// $auth_token = $_ENV["TWILIO_AUTH_TOKEN"]

$sid    = 'ACe69947177d64b438e633902943815dc1'; 
$token  = 'cf3e8457f284d379eba121806915630c'; 
$twilio = new Client($sid, $token); 

$message = $twilio->messages 
                  ->create("+27733147380", // to 
                           array(  
                               "messagingServiceSid" => "MGbaf35ac4d1577d53b589632df4c21c3d",      
                               "body" => "test sms" 
                           ) 
                  ); 
 
print($message->sid);