Integrate SMS Messaging in your application
With an easy-to-use SMS gateway trusted by major clients internationally.
integrate us
Why Use Our APIs?
API Consumption Examples
Using a simple API call you can be ready to start messaging you customers and partners from your application.
URL Parameters
- client: your unique Client ID from us
- password: your secure account password
- phone: phone number of recipient. Can send to multiple recipients
- text: SMS message to be sent
- from: name that appears on recipient's mobile; Sender ID (whitelisted with us)
- msgid: message ID from our system
- scheduletime: time when to sand the message
Success Response
<?xml version="1.0" encoding="utf-8" ?>
<messages>
<sms>
<msgid>123456789</msgid>
<phone>260776562302</phone>
<country>Zambia</country>
<status>ACT</status>
</sms>
</messages>
Code examples
// Create a request using a URL that can receive a post
Dim
request
As
Request
=
Request.Create("https://our.smsgateway.url/api/call?client=xxxx&password=xxx&phone=xxxx&text=xxxx&from=xxxx&scheduletime=yyyy-MM-dd-hh-mm")
// Set the Method property of the request to POST
request.Method
=
"POST"
// message is the variable containing the sms string to be sent
Encoding.UTF8.GetBytes(message)
// Set the ContentType property of the WebRequest
request.ContentType
=
"application/x-www-form-urlencoded"
// Set the ContentLength property of the WebRequest
request.ContentLength
=
byteArray.Length
// Write the data to the request stream
dataStream.Write
(byteArray, 0, byteArray.Length)
// Close the Stream object
dataStream.Close()
// Get the response
Dim
response
As
WebResponse
=
request.GetResponse
()
// Display the status
resp
=
(CType(response,
HttpWebResponse)).StatusDescription)
//Get the stream containing content returned by the server
dataStream
=
response.GetResponseStream
()
//Open the stream using a StreamReader for easy access
reader
=
New
StreamReader
(dataStream)
// Read the XML content returned by the server
responseFromServer
=
reader.ReadToEnd()
// Display the content
Console.WriteLine(responseFromServer)
// Clean up the streams
reader.Close()
dataStream.Close()
response.Close()
/** CALLING THE API USING THE simple_load_file FUNCTION */
// Set the url string
$url
=
"https://our.smsgateway.url/api/call?client=xxxx&password=xxx&phone=xxxx&text=xxxx&from=xxxx&scheduletime=yyyy-MM-dd-hh-mm";
// response from the server is returned in xml format showed above
$response
=
simplexml_load_file
(urlencode
($url));
// accessing xml elements inside the response from the server
$status
=
$response->status;
$msgid
=
$response->msgid;
Benefits
Get started and enjoy the benefits
Integrate in any project
Our API is designed to be flexible and easy to integrate, making it suitable for any project, regardless of the size or complexity.
Continuous Support
Our team is available 24/7 to provide you with the support you need, ensuring that your project runs smoothly and efficiently.
Greater Reach
Using our API allows you to reach a wider audience, expanding your business's potential and increasing your impact.
Sign up and start integrating Let's talk