Infobip HTTP API
Infobip HTTP API
Infobip HTTP API
USERGUIDE DOCUMENTATION
SmartSMSSolutions SMS A.P.I. provides simple yet powerful gateway to connect any application
with our SMS gateway via HTTP POST/GET. This documentation helps to provide the connection
procedure common programing languages.
TABLE OF CONTENTS
INTRODUCTION .............................................................................................................................................................................. 2
1
INTRODUCTION
Our SMS services is powered by a powerful Application Programming Interface (API) that connection to
application seamless. The API is robust and can handle hundreds of thousands of connections per minute. It is
a fully restful API based on HTTP POST methodology.
PHP
Java
Python
C#
JSON
Whatever the application language, all that is needed is to POST the data to the API URL.
2
HTTP API PARAMETERS – FOR SENDING SMS
The SMS API can utilized via HTTP POST or HTTP GET. The parameters for the two connection types are
described below.
When messages are sent successfully the API replies in the format shown below:
Example: OK 26 08111111111,08222222222
Other Responses
In all of the above instances, the clients are never billed. If you consistently get any of the above codes you
can contact us for support.
Response Format
The SMS API can utilized via HTTP POST or HTTP GET. The parameters for the two connection types are
described below.
The API replies with a numeric value of the SMS units balance.
5
SAMPLE CODE – PHP (GET)
$url =
'http://api.smartsmssolutions.com/smsapi.php?username='.$username.'&password='.$password.'&sender='.$
senderid.'&recipient='.$senderid.'&message='.$message.'&';
$send = file_get_contents($url);
return $send;
}
$username = '';
$password = '';
$message = '';
$senderid = '';
$recipients = '';
$url = 'http://api.smartsmssolutions.com/smsapi.php';
$get_sms = sendsms_get($username, $password, $message, $senderid, $recipients);
echo $get_sms;
6
SAMPLE CODE – PHP (POST)
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
$output=curl_exec($ch);
curl_close($ch);
return $output;
}
$sms_array = array (
'username' => $username,
'password' => $password,
'message' => $message,
'sender' => $senderid,
'recipient' => $recipients
);
7
I STILL CANNOT GET IT TO WORK
Please feel free to contact support and we’ll be glad to provide the needed support.
Phone Numbers
08035515868
07034243326