SMS samples/CODES

Africans best sms delivery
SMS TODAY: processing sms made simple
Release 1.2.

We gathered these codes for you to quickly begin with SMS TODAY application.

PHP curl - Sending sms, read more.. $endpoint = "https://api.smstoday.net/send"; $ch = curl_init(); $array_post = http_build_query(array( 'text'=>'Hello world', 'numbers'=>'xxxxxxxxxxxx,xxxxxxxxxx', 'api_key'=>'SAMPLE0EYU9K3SGL7N99EF1S90P', 'password'=>'your password', 'from'=>'xxx-ss2' )); curl_setopt($ch, CURLOPT_URL,$endpoint); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,$array_post); // Receive server response ... curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec($ch); curl_close ($ch); echo $server_output;


PHP curl - Sending Bulk MultSMS, read more.. $endpoint = "https://api.smstoday.net/send"; $messages = json_encode(['099xxxxxxx'=>'Hello message 1','088xxxxxxx'=>'Hello message 2']); $ch = curl_init(); $array_post = http_build_query(array( 'text' => $messages, 'numbers' => true, 'api_key' =>'SAMPLE0EYU9K3SGL7N99EF1S90P', 'password' =>'your password' 'from' => '', 'advance' => true )); curl_setopt($ch, CURLOPT_URL,$endpoint); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,$array_post); // Receive server response ... curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec($ch); curl_close ($ch); echo $server_output;
PHP curl - Get sms cost info, read more.. $endpoint = "https://api.smstoday.net/cost"; $ch = curl_init(); $array_post = http_build_query(array( 'text'=>'Hello world from api', 'numbers'=>'xxxxxxxxxxxx,xxxxxxxxxx', 'api_key'=>'SAMPLE0EYU9K3SGL7N99EF1S90P', 'password'=>'your password' )); curl_setopt($ch, CURLOPT_URL,$endpoint); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,$array_post); // Receive server response ... curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec($ch); curl_close ($ch); echo $server_output;
PHP curl - Single sms delivery report, read more.. $endpoint = "https://api.smstoday.net/report"; $ch = curl_init(); $array_post = http_build_query(array( 'message_id'=>'6074939b1de39', 'api_key'=>'SAMPLE0EYU9K3SGL7N99EF1S90P', 'password'=>'your password' )); curl_setopt($ch, CURLOPT_URL,$endpoint); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,$array_post); // Receive server response ... curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec($ch); curl_close ($ch); echo $server_output;
PHP curl - Bulk sms delivery report, read more.. $endpoint = "https://api.smstoday.net/report"; $ch = curl_init(); $array_post = http_build_query(array( 'bulk_id'=>'6074939b1de5f', 'api_key'=>'SAMPLE0EYU9K3SGL7N99EF1S90P', 'password'=>'your password' )); curl_setopt($ch, CURLOPT_URL,$endpoint); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,$array_post); // Receive server response ... curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec($ch); curl_close ($ch); echo $server_output;
PHP curl - Get Account Balance, read more.. $endpoint = "https://api.smstoday.net/balance"; $ch = curl_init(); $array_post = http_build_query(array( 'api_key'=>'SAMPLE0EYU9K3SGL7N99EF1S90P', 'password'=>'your password' )); curl_setopt($ch, CURLOPT_URL,$endpoint); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,$array_post); // Receive server response ... curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $server_output = curl_exec($ch); curl_close ($ch); echo $server_output;