You can send text messages through your app using our SMS API (Application Programming Interface). Sending SMS while your software is running is one of the most common tasks performed on the Sangamonline platform. Sending a message is as simple as POSTing to the SMS resource. Any route sms purchase also gets the facility to integrate with it.
This facility provides an integrated application, software and website panel to
send dynamic SMS via HTTP protocol. The Client issues either a HTTP GET or POST
request to the sangamamonline HTTP interface supplying a list of required parameters.
The HTTP-API is used for one-way messaging only. Using our SMS API, you can do much
more than just send text messages. You can manage contacts, create or delete contact
groups, form a short URL, view SMS balances, and view message reports. Our SMS API
is the most versatile and flexible API gateways.
SangamamOnline is the best api Bulk SMS provider in Kerala, India. SangamOnline provides api Bulk SMS provider through a secure gateway and We promise to get good reach for your business promotions/Transactions. We have earned our reputation as a pioneer in the field of bulk SMS marketing. Our reasonable prices and quality services have made us number one in this sector.
https://sangamamonline.in/httpapi/smsapi?uname={Username}&password={Password}&sender={Sender id}&receiver={Destination numbers}&group={group Ids}&route={Route id}&msgtype={ Message type}&sms={SMS content}
// Replace these placeholders with your actual values $apiKey = 'YOUR_API_KEY'; $senderID = 'YOUR_SENDER_ID'; $phone = 'YOUR_NUMBER/S'; $verificationCode = 'ABCD1234'; $route = 'T'; $message = "Hi, Your verification code is $verificationCode Team Example"; // Construct the API endpoint URL $smsUrl = 'http://sangamamonline.in/apikeysms'; // Construct the POST data $postData = 'apikey='.$apiKey. '&senderid=' .$senderID. '&to=' .$phone. '&msg='.$message . '&route=' .$route; // Set up the cURL session $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $smsUrl); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // Send the POST data curl_setopt($ch, CURLOPT_POSTFIELDS, $postData); // Execute the cURL request $response = curl_exec($ch); // Close the cURL session curl_close($ch); // Output the response echo $response;