CURL
curl --location 'https://gateway.standingtech.com/api/v4/sms/send' \ --header 'Authorization: Bearer {{API_KEY}}' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "recipient":"9647502171212", "sender_id":"SenderID", "type":"whatsapp", "message":"123654", "lang":"en" }'
Using Guzzle:
<?php require "guzzle/vendor/autoload.php"; use GuzzleHttp\Client; $client = new Client([ // Base URI is used with relative requests 'base_uri' => 'https://sms.standingtech.com/api/v3/sms/', ]); $now = date("Y-m-d H:i:s"); $body = <<<DATA {"recipient":"9647xxxxxxxxx", "sender_id":"Standing", "type":"plain", "message":"This is a test message using Guzzle at $now" } DATA; $response = $client->request('POST', 'send', [ 'headers' => [ 'Authorization' => 'Bearer API_KEY', 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], //'stream' => true, 'body' => $body, //'sink' => 'temp.txt', //'verify' => false, ]); $response = $response->getBody()->getContents(); echo "<pre>"; print_r(json_decode($response, true));
Using Curl:
<?php $url = "https://sms.standingtech.com/api/v3/sms/send"; $curl = curl_init($url); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $headers = array( "Authorization: Bearer API_KEY", "Content-Type: application/json", "Accept: application/json", ); curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); $data = <<<DATA {"recipient":"9647xxxxxxxxx", "sender_id":"YourName", "type":"plain", "message":"This is a test message" } DATA; curl_setopt($curl, CURLOPT_POSTFIELDS, $data); //for debug only! curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $resp = curl_exec($curl); curl_close($curl); var_dump($resp);
Yes, with our platform, you can upload your contacts and send them SMS. You can also schedule SMS for different groups.
Yes, you can see all messages that you sent from your account (Online or by API).
Yes, we support whole Iraq including Kurdistan Region (Erbil, Sulaimaniah, Duhok, etc).
Yes, You need to register SMS Sender ID, some countries will block unregistered sender IDs
Yes, We have WhatsApp and Viber API for business only
Yes, we are connected to 700 direct global operators, we can deliver your SMS everywhere!
Yes, please visit https://github.com/akamomer/bulksmsiraq
No, it is not possible to send SMS with a custom sender ID without using an API. The sender ID is a fundamental part of the SMS system, and it is used to identify the sender of the message. To send an SMS message with a custom sender ID, you need to use an API that allows you to set the sender ID.