Skip to content

Instantly share code, notes, and snippets.

@dice
Created August 14, 2012 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dice/3347108 to your computer and use it in GitHub Desktop.
Save dice/3347108 to your computer and use it in GitHub Desktop.
<?php
require "../Services/fullcourt.php";
$from= $_REQUEST['sender'];
$to= $_REQUEST['number'];
$body = $_REQUEST['msg'];
$auth_id = "FCabcdefghijklmnopqrstuvwxyz123456";
$auth_token = "1234567890qwertyuiosdfghjklxcvbnmd";
$p = new RestAPI($auth_id, $auth_token);
// Send SMS
$params = array(
'To' => $to,
'From' => $from,
'Body' => $body
);
$response = $p->send_message($params);
$msg = urlencode("Sent Message to ".$from);
header("Location: index.html?msg=$msg");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment