DEVELOPERS TOOLS

Code for PHP

$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => “http://www.solution.mtalkz/SendSMS/sendmsg.php?pass=password&send=SenderId%20as%20required&dest=Destination%20Mobile%20Number&intl=0%20&udhi=0%20&uname=Username&msg=Body%20of%20the%20message&dcs=0%20-%20Text%2C%204%20-%20binary%2C%208%20-Unicode%2C%2016%20%E2%80%93%20Flash%2C%20245%20%E2%80%93%20binary%20including%20Ringtone%20or%20picture&port=Port%20Number%20based%20on%20Handset&wapurl=URL&waptxt=Text%20Message&unicode=0-Plain%2C%201-Unicode&concat=0&prty=1%2C%202%2C%203%2C%204%2C%205&vp=1%20to%20180%20minutes”, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => “”, CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => “POST”, CURLOPT_POSTFIELDS => “”, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_SSL_VERIFYPEER => 0, )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo “cURL Error #:” . $err; } else { echo $response; }
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "http://vapi.mtalkz/voiceapi/bapi.php?account=account%20name&pin=unique%20password&campaignid=unique%20campaign%20id", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "", CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_SSL_VERIFYPEER => 0, )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
$curl_setopt_array($curl, array( CURLOPT_URL => "http://vapi.mtalkz/voiceapi/bapi.php?account=account%20name&pin=unique%20password&campaignid=unique%20campaign%20id", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "", CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_SSL_VERIFYPEER => 0, )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }