Ejemplo n.º 1
0
 private function sendSMSRequest($sms_data)
 {
     // print_r($sms_data);
     $sendmsgservice = new SMSGateway();
     foreach (array_chunk($sms_data['contacts'], 50) as $value) {
         $number_list = implode(' ', $value);
         $data[] = array('to' => $number_list, 'message' => $sms_data['message'], 'sender_id' => $sms_data['sender_id']);
     }
     foreach ($data as $send_sms_data) {
         $response = $sendmsgservice->sendSMS($send_sms_data);
     }
     $return = array("do_send_sms" => "SUCCESS");
     return $return;
 }
Ejemplo n.º 2
0
 private function sendSmsProcessData($sms_data)
 {
     $sendmsgservice = new SMSGateway();
     $data = array('to' => $sms_data['to'], 'message' => $sms_data['message'], 'sender_id' => $sms_data['sender_id']);
     $response = $sendmsgservice->sendSMS($data);
 }