Resource URL

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

Sample code: VBA
Method: POST


  1. Public Sub Send()
  2. Dim username As String
  3. Dim password As String
  4. Dim result As String
  5. Dim myURL As String
  6. Dim Sender As String
  7. Dim numbers As String
  8. Dim Message As String
  9. Dim postData As String
  10. Dim winHttpReq As Object
  11. username = "youremail@address.com"
  12. hash = "Your API hash"
  13. Sender = "WEBADD"
  14. numbers = "917735838811"
  15. Message = "This is your message"
  16. Set winHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1")
  17. myURL = "http://sms.webadd/api2/send/?"
  18. postData = "username=" + username + "&hash=" + hash + "&message=" + Message + "&numbers=" + numbers + "&sender=" + Sender
  19. winHttpReq.Open "POST", myURL, False
  20. winHttpReq.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded"
  21. winHttpReq.Send (postData)
  22. SendSMS_textlocal = winHttpReq.responseText
  23. End Sub