Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinCarmony committed Jan 31, 2012
1 parent a93a7b6 commit 923b1d2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions sendTxtMsg.php
Expand Up @@ -2,19 +2,25 @@

require('twilio-php/Services/Twilio.php');

/* Start Configs */

$sid = "A123.....";
$token = "29d6b9f.......";
$twilio_number = '4045550101';

/* End Configs */

# Get the Argvs
$phone = $argv[1];
$msg = $argv[2];
$msg = str_replace('\n', "\n", $msg);

$sid = "A123.....";
$token = "29d6b9f.......";

$client = new Services_Twilio($sid, $token);
try
{
$message = $client->account->sms_messages->create(
'8015553411', // From a valid Twilio number
$twilio_number, // From a valid Twilio number
$phone, // Text this number
$msg
);
Expand Down

0 comments on commit 923b1d2

Please sign in to comment.