Re: [callfire group] SMS API broken ?

38 views
Skip to first unread message

Punit Shah

unread,
Jul 15, 2012, 6:39:30 PM7/15/12
to call...@googlegroups.com

Briz

Each number should be new line = '\n' separated.

Best,
Pete

On Jul 15, 2012 3:32 PM, "briz" <ki4...@gmail.com> wrote:
Tried to send the test to both users only the first phone number gets the message?
Is callfire having problems? or do I have some funky restriction where I can only send 1 sms at a time?
<?php
$url = 'https://www.callfire.com/cloud/1/sms/send';
$params = array(
    'apikey'  => 'XXXX',
    'message' => 'Tornado Warning Test',
    'numbers' => '7312345555,7314995555',
);
$http = curl_init($url);
curl_setopt($http, CURLOPT_POST, true);
$query = http_build_query($params);
curl_setopt($http, CURLOPT_POSTFIELDS, $query);
$header = array('Content-Type: application/x-www-form-urlencoded');
curl_setopt($http, CURLOPT_HTTPHEADER,     $header);
curl_setopt($http, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($http, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($http, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($http);
$error = curl_error($http);
if($error != null)
{
        echo "Error: $error\n";
        throw new Exception($error);
}

Reply all
Reply to author
Forward
0 new messages