%PDF- %PDF-
Direktori : /home/ugotscom/public_html/BOS/ |
Current File : /home/ugotscom/public_html/BOS/smstest.php |
<?php $phone =9746512924; $user ="MRSCLN"; //your username $password ="mrsclean@123"; //your password $mobilenumbers =$phone; //enter Mobile numbers comma seperated $message = urlencode("TRANSACTION SUCCESSFUL. YOUR ORDER ID IS ".$order_id.". FOR ANY FURTHER ASSISTANCE PLEASE CONTACT ".$lab_details->contact_person.",".$lab_details->contact_number.""); $senderID ='LETCHK'; $apiKey ='f7501cd638dde54a8b0f5e47cddd2162'; $url="http://api.unifiedbuzz.com/sms/insent?mobile=".$mobilenumbers."&format=json&text=".$message."&flash=0&type=1&sender=".$senderID; $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => $url, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => array('X-API-Key:'.$apiKey))); // Send the request & save response to $response $response = curl_exec($curl); // Close request to clear up some resources curl_close($curl); // Print response //print_r($response); $apiarray = json_decode($response,true); $apiresult = $apiarray['data']; //print_r($apiresult['status']) ?>