Sending SMS messages via php sdk
Mon, 2009-12-21 12:58
I'm trying to use the php sdk to send an sms message to a group of folks, but I can't run a successful test. Here's my code. What am I doing wrong?
$recipient = "tel:11235554321";
$message = "Hi, this is a test message.";
$sender = "011235551234";
try{
//createMessage requires an array of recipients
$message_id = $ribbit->Messages()->createMessage(array($recipient), $message, $sender);
$result = "You have sent message (id " . $message_id .")";
}
catch (RibbitException $e){
$result = "An error occured - status " . $e->getStatus() . " - " . $e->getMessage();
}
/** END RIBBIT STUFF **/
Tue, 2010-03-02 14:23
#2
What are the error messages
What are the error messages you are receiving?
To ensure there are no configuration errors (and that your account is set up for billing), we like to ask if you can make a successful call at http://demo.ribbit.com/php/twoLeggedCall/twoLeggedCall.php using your account and user credentials.


bump