DEVELOPERS TOOLS

Code for PYTHON

"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; }
"http://vapi.mtalkz/voiceapi/tapi.php?account=account%20name&pin=password&templateid=unique%20number&retry=number%20of%20retries&sch_time=scheduled%20start%20time&end_time=scheduled%20end%20time", 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, CURLOPT_HTTPHEADER => array( "content-type: application/javascript" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
import http.client conn = http.client.HTTPConnection("vapi.mtalkz") payload = "" conn.request("POST", "/voiceapi/bapi.php?account=account%20name&pin=unique%20password&campaignid=unique%20campaign%20id", payload) res = conn.getresponse() data = res.read() print(data.decode("utf-8")) CURLcode ret = curl_easy_perform(hnd);