Basic Use

Our SMS Gateway can be used to send out SMS messages from an any onine application. In order to send a message, the application has to perform an HTTP request. Our Central Server Gateway receives the request and adds the posted SMS message to the outgoing message queue. After some time the message will be sent. 

The status of the sent message can be checked using you control panel.

The simplest way to undestand how to send messages from developer code is to see an example. This is a VB.NET example to send a text, but the same principles apply to any language used:

Imports System.IO
Imports System.Net

Const URL As String = "http://serviceurl/"

Dim Message As String = "ak=" & HttpUtility.UrlEncode(ApiKey)

Message &= "&i=" & HttpUtility.UrlEncode(Interface)

Message &= "&telno=" & HttpUtility.UrlEncode(TelephoneNumber)

Message &=  "&text=" & HttpUtility.UrlEncode(Text)

Dim Content As String = URL & "?" & Message

Dim req As HttpWebRequest = CType(WebRequest.Create(Content), HttpWebRequest)

req.Timeout = 5000

Dim resp As HttpWebResponse = CType(req.GetResponse(), HttpWebResponse)

Dim sr As New StreamReader(resp.GetResponseStream())

Dim results As String = sr.ReadToEnd()

The 'results' variable holds the outcome of the request. If the results of is successful it holds the string: "Success". Otherwise it holds the string: "Error : ttttttttttttttttttt" where t is the description of the error.


  • 5 Users Found This Useful
Was this answer helpful?