Resource URL

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

Sample code: ASP.NET
Method: GET

  1. <%@ Import Namespace="System.Net" %>
  2. <%@ Import Namespace="System.IO" %>
  3. <script runat="server" language="VB">
  4. Sub Page_Load(sender As Object, e As EventArgs)
  5. Dim Username As String = "YourEmail@Domain.com"
  6. Dim Hash As String = "YourHash"
  7. Dim SenderName As String = "WEBADD"
  8. Dim Number As String = "917735838811"
  9. Dim Message As String = "This is an API message"
  10. Dim URL As String = "http://sms.webadd.in/api2/send/?username=" & Username & "&hash=" & Hash
    & "&sender=" & SenderName & "&numbers=" & Number & "&message=" & Message
  11. Dim req As HttpWebRequest = WebRequest.Create(URL)
  12. Try
  13. Dim resp As HttpWebResponse = req.GetResponse()
  14. Dim sr As New StreamReader(resp.GetResponseStream())
  15. Dim results As String = sr.ReadToEnd()
  16. sr.Close()
  17. html.Text = results
  18. Catch wex As WebException
  19. Response.Write("SOMETHING WENT AWRY! Status: " & wex.Status & "Message: " & wex.Message & "")
  20. End Try
  21. End Sub
  22. </script>