API Integration



Introduction

OpenTech is the leading mobile messaging services and solutions provider through Internet in Middle East. we enables you to send SMS to your customers, friends or relatives whenever and wherever they are, directly through your applications (Website or Programs).

How It Works

When you or your client sends out an SMS using any of our provided tools (Website, Excel Plugin, API etc), the request reaches our server and is forwarded to respected operator after being processed at our end. Operator will then look for the HRL/VLR to get the exact BaseStation in which your recipient mobile is present and will then forwards the message accordingly. The SMS is finally reached at end user. 

SMS handling is a store and forward operation.It has got a validity period, for which it will wait for the destination mobile to the available after which the SMSC will delete the message. Normally validity period ranges from 3 hours to 24 hours a day.

Why use API?

Quick and easy way to send your messages from your application. Building programs and specialized in advanced solutions growing
market of SMS. Can be integrated with any system quickly and easily via our HTTP API
 
You can use the following API as a GET Method to integrate your applications...

Host Name: http://www.ot-sms.com
Host URI: /ap/static/api/sms_send_bulk.php

Parameters:

uid= Your user Id provided by the admin
username= Your login credential
password=Your password
sender= Sender ID that will appear to the recipient FROM
recipient= Recipients must be with the international code like 9613XXXXXX or 96170XXXXXX
msg= Your message is here, we support English and Arabic
dcs= Data Coding Scheme

Instructions & HTTP Links Example

In order to be able to send SMS via API,Please use the following HTTP links depending on the SMS Language
 

English Example:

http://www.ot-sms.com/ap/static/api/sms_send_bulk.php?uid=YOUR_USER_ID&username=YOUR_USER_NAME&password=YOUR_PASSWORD&sender=OpenTech&msg=test&recipient=96xxxxxxxxxx

Arabic Example:

http://www.ot-sms.com/ap/static/api/sms_send_bulk.php?uid=YOUR_USER_ID&username=YOUR_USER_NAME&password=YOUR_PASSWORD&sender=OpenTech&msg=تجربة&recipient=96xxxxxxxxxx

English & Arabic Unicode Example:

http://www.ot-sms.com/ap/static/api/sms_send_bulk.php?uid=YOUR_USER_ID&username=YOUR_USER_NAME&password=YOUR_PASSWORD&sender=OpenTech&msg=0054006500730054062A062C063106280647&recipient=96xxxxxxxxxx&dcs=1

 


Errors and notices during submission

 

 

ErrorReturned Message
When invalid user/password Invalid credential!
When username doesn't exists in our systemsThe Username wasn't found in our system or the password provided was wrong!
When the username haven't grated as a customerInvalid customer!
If you are trying to send from a sender not acticated yet!Invalid Sender or not activated yet!


Get the Balance:

http://www.ot-sms.com/ap/static/api/sms_balance.php?uid=YOUR_USER_ID&username=YOUR_USER_NAME&password=YOUR_PASSWORD


Please feel free to contact us at anytime. If you need any further assistance don't hesitate to contact us we are always ready to answer support you via email: support@opentech.me