setup twilio for php

 <?php


// Update the path below to your autoload.php,

// see https://getcomposer.org/doc/01-basic-usage.md

// require_once '/path/to/vendor/autoload.php';

require __DIR__ . '/vendor/autoload.php';


use Twilio\Rest\Client;


// Find your Account SID and Auth Token at twilio.com/console

// and set the environment variables. See http://twil.io/secure

// $sid = getenv("TWILIO_ACCOUNT_SID");

// $token = getenv("TWILIO_AUTH_TOKEN");

$sid = 'AC26ab55454f2295b5bde894cb166da549'; //"AC2b9224fee92cde0d8b44102fade3083d"; // origianl from kumar

$token = 'c1dd24b19f45b923635c7be681d604ff';// "5430839ca3165d10c1d5a795fb91da7a"; // origianl from kumar

$twilio = new Client($sid, $token);


$message = $twilio->messages

                  ->create("+13143242645", // to

                           [

                               "body" => "This is the ship that made the Kessel Run in fourteen parsecs?",

                               "from" => "+17406219666"

                           ]

                  );


print($message->sid);

Comments

Popular posts from this blog

cpanel exam CPSP Answers

How to install zimbra collaboration suite 8.8.11 on CentOS 7

awstats installation