http://sms.webadd.in/api2/send/?
Sample code: PHP
Method: POST
- <?php
- // WebAdd account details
- $username = 'youremail@address.com';
- $hash = 'Your API hash';
- // Message details
- $numbers = array(917735838811, 917735838811);
- $sender = urlencode('WEBADD');
- $message = rawurlencode('This is your message');
- $numbers = implode(',', $numbers);
- // Prepare data for POST request
- $data = array('username' => $username, 'hash' => $hash, 'numbers' => $numbers, "sender" => $sender, "message" => $message);
- // Send the POST request with cURL
- $ch = curl_init('http://sms.webadd.in/api2/send/');
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $response = curl_exec($ch);
- curl_close($ch);
- // Process your response here
- echo $response;
- ?>