Resource URL

http://sms.webadd.in/api2/send/?

Sample code: PHP
Method: GET

  1. <?php
  2. // WebAdd account details
  3. $username = urlencode('youremail@address.com');
  4. $hash = urlencode('Your API hash');
  5. // Message details
  6. $numbers = urlencode(917735838811,917735838811);
  7. $sender = urlencode('WEBADD');
  8. $message = rawurlencode('This is your message');
  9. // Prepare data for POST request
  10. $data = 'username=' . $username . '&hash=' . $hash . '&numbers=' . $numbers . "&sender=" . $sender . "&message=" . $message;
  11. // Send the GET request with cURL
  12. $ch = curl_init('http://sms.webadd.in/api2/send/?' . $data);
  13. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  14. $response = curl_exec($ch);
  15. curl_close($ch);
  16. // Process your response here
  17. echo $response;
  18. ?>