Our API

You can interface an application, website or system with our messaging gateway by using our very flexible HTTP API connection. Once you're connected, you'll be able to deliver messages or check your balance.

 

API configuration:

If your provider is using SPC 2 or 3, You can use the following API

HTTP API:  http://www.smsportalgateway.com/components/com_spc/smsapi.php?username=user&password=password&sender=@@sender@@&recipient=@@recipient@@&message=@@message@@&

API response on Success: OK

API Response confirmation: Contains

 

Account balance API:   http://www.smsportalgateway.com/components/com_spc/smsapi.php?username=user&password=password&balance=true&

API Protocol: HTTP GET

Push to API as: Bulk

 

PHP Function to extract message ID from API response:

LEAVE BLANK

Delivery URL(PUSH)

Login to your provider's SMS Portal, go to personal settings page and enter this value in the "Reseller URL" field.

 

PHP Function to process delivery reports

The return values are

OK=Successful

2904=SMS Sending Failed

2905=Invalid username/password combination

2906=Credit exhausted

2907=Gateway unavailable

2908=Invalid schedule date format

2909=Unable to schedule

2910=Username is empty

2911=Password is empty

2912=Recipient is empty

2913=Message is empty

2914=Sender is empty

2915=One or more required fields are empty

 

Example:

On success, the following code will be returned

OK 21 08033333333,08022222222,08055555555

 

i.e OKno of sms credits usedgsm numbers that failed

where 21=no of sms credits used

and 08033333333,08022222222,08055555555 are the 3 numbers that failed

Right click here and save as html file to get a sample html application.