SMSINDIAHUB API

CHECKDELIVERY

Check Delivery Status


api/mt/GetDelivery

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://cloud.smsindiahub.in/api/mt/GetDelivery?user=&password=&jobid="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CHECKDELIVERYApi;

import java.io.File;
import java.util.*;

public class CHECKDELIVERYApiExample {

    public static void main(String[] args) {
        
        CHECKDELIVERYApi apiInstance = new CHECKDELIVERYApi();
        String user = user_example; // String | Username
        String password = password_example; // String | Password
        String jobid = messageid_example; // String | Job ID
        try {
            Successful result = apiInstance.vendorsmsPushsmsAspxGet(user, password, messageid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CHECKDELIVERYApi#vendorsmsPushsmsAspxGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CHECKDELIVERYApi;

public class CHECKDELIVERYApiExample {

    public static void main(String[] args) {
        CHECKDELIVERYApi apiInstance = new CHECKDELIVERYApi();
        String user = user_example; // String | Username
        String password = password_example; // String | Password
        String messageid = messageid_example; // String | Message Id
        try {
            Successful result = apiInstance.vendorsmsPushsmsAspxGet(user, password, messageid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CHECKDELIVERYApi#vendorsmsPushsmsAspxGet");
            e.printStackTrace();
        }
    }
}
String *user = user_example; // Username
String *password = password_example; // Password
String *messageid = messageid_example; // Message Id

CHECKDELIVERYApi *apiInstance = [[CHECKDELIVERYApi alloc] init];

// Check Delivery Status
[apiInstance vendorsmsPushsmsAspxGetWith:user
    password:password
    messageid:messageid
              completionHandler: ^(Successful output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SmsindiahubApi = require('smsindiahub_api');

var api = new SmsindiahubApi.CHECKDELIVERYApi()
var user = user_example; // {{String}} Username
var password = password_example; // {{String}} Password
var messageid = messageid_example; // {{String}} Message Id

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.vendorsmsPushsmsAspxGet(user, password, messageid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class vendorsmsPushsmsAspxGetExample
    {
        public void main()
        {

            var apiInstance = new CHECKDELIVERYApi();
            var user = user_example;  // String | Username
            var password = password_example;  // String | Password
            var messageid = messageid_example;  // String | Message Id

            try
            {
                // Check Delivery Status
                Successful result = apiInstance.vendorsmsPushsmsAspxGet(user, password, messageid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CHECKDELIVERYApi.vendorsmsPushsmsAspxGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiCHECKDELIVERYApi();
$user = user_example; // String | Username
$password = password_example; // String | Password
$messageid = messageid_example; // String | Message Id

try {
    $result = $api_instance->vendorsmsPushsmsAspxGet($user, $password, $messageid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CHECKDELIVERYApi->vendorsmsPushsmsAspxGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CHECKDELIVERYApi;

my $api_instance = WWW::SwaggerClient::CHECKDELIVERYApi->new();
my $user = user_example; # String | Username
my $password = password_example; # String | Password
my $messageid = messageid_example; # String | Message Id

eval { 
    my $result = $api_instance->vendorsmsPushsmsAspxGet(user => $user, password => $password, messageid => $messageid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CHECKDELIVERYApi->vendorsmsPushsmsAspxGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CHECKDELIVERYApi()
user = user_example # String | Username
password = password_example # String | Password
messageid = messageid_example # String | Message Id

try: 
    # Check Delivery Status
    api_response = api_instance.vendorsms_pushsms_aspx_get(user, password, messageid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CHECKDELIVERYApi->vendorsmsPushsmsAspxGet: %s\n" % e)

Parameters

Query parameters
Name Description
user*
String
Username
Required
password*
String
Password
Required
jobid*
String
Job Id
Required

Responses

Status: 200 - successful operation

Status: 400 - Bad Request

Status: 404 - Resource Not Found


SMS

Send Promotional & Transactional SMS(Channel=Promo, Channel=Trans)


api/mt/SendSMS

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://cloud.smsindiahub.in/api/mt/SendSMS?user=demo&password=demo123&senderid=WEBSMS&channel=Promo&DCS=0&flashsms=0&number=91989xxxxxxx&text=test message&route=##&PEId=##"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SMSApi;

import java.io.File;
import java.util.*;

public class SMSApiExample {

    public static void main(String[] args) {
        
        SMSApi apiInstance = new SMSApi();
        String user = user_example; // String | Username
        String password = password_example; // String | Password
        String senderid = sid_example; // String | Sender ID
        String channel = channel_example; // BigDecimal | flag
        String DCS = DCS_example; // BigDecimal | flag
        String flashsms = flashsms_example; // BigDecimal | flag
        BigDecimal number = 1.2; // BigDecimal | Recepient Mobile No.
        String text = msg_example; // String | Message
        try {
            Successful result = apiInstance.vendorsmsPushsmsAspxGet(user, password, senderid, channel, DCS, flashsms, number, text);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SMSApi#vendorsmsPushsmsAspxGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SMSApi;

public class SMSApiExample {

    public static void main(String[] args) {
        SMSApi apiInstance = new SMSApi();
        String user = user_example; // String | Username
        String password = password_example; // String | Password
        String senderid = sid_example; // String | Sender ID
        String channel = channel_example; // BigDecimal | flag
        String DCS = DCS_example; // BigDecimal | flag
        String flashsms = flashsms_example; // BigDecimal | flag
        BigDecimal number = 1.2; // BigDecimal | Recepient Mobile No.
        String text = msg_example; // String | Message
        try {
            Successful result = apiInstance.vendorsmsPushsmsAspxGet(user, password, senderid, channel, DCS, flashsms, number, text);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SMSApi#vendorsmsPushsmsAspxGet");
            e.printStackTrace();
        }
    }
}
 String user = user_example; // String | Username
        String password = password_example; // String | Password
        String senderid = sid_example; // String | Sender ID
        String channel = channel_example; // BigDecimal | flag
        String DCS = DCS_example; // BigDecimal | flag
        String flashsms = flashsms_example; // BigDecimal | flag
        BigDecimal number = 1.2; // BigDecimal | Recepient Mobile No.
        String text = msg_example; // String | Message

SMSApi *apiInstance = [[SMSApi alloc] init];

// Send Promotional SMS
[apiInstance vendorsmsPushsmsAspxGetWith:user
    password:password
    senderid:senderid
    channel:channel
    DCS:DCS
    flashsms:flashsms
    number:number
    text:text
              completionHandler: ^(Successful output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SmsindiahubApi = require('smsindiahub_api');

var api = new SmsindiahubApi.SMSApi()
var user = user_example; // String | Username
        var password = password_example; // String | Password
        var senderid = sid_example; // String | Sender ID
        var channel = channel_example; // BigDecimal | flag
        var DCS = DCS_example; // BigDecimal | flag
        var flashsms = flashsms_example; // BigDecimal | flag
        var number = 1.2; // BigDecimal | Recepient Mobile No.
        var text = msg_example; // String | Message

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.vendorsmsPushsmsAspxGet(user, password, senderid, channel, DCS, flashsms, number, text);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class vendorsmsPushsmsAspxGetExample
    {
        public void main()
        {

            var apiInstance = new SMSApi();
            var user = user_example; // String | Username
        var password = password_example; // String | Password
        var senderid = sid_example; // String | Sender ID
        var channel = channel_example; // BigDecimal | flag
        var DCS = DCS_example; // BigDecimal | flag
        var flashsms = flashsms_example; // BigDecimal | flag
        var number = 1.2; // BigDecimal | Recepient Mobile No.
        var text = msg_example; // String | Message

            try
            {
                // Send Promotional SMS
                Successful result = apiInstance.vendorsmsPushsmsAspxGet(user, password, senderid, channel, DCS, flashsms, number, text);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SMSApi.vendorsmsPushsmsAspxGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSMSApi();
$user = user_example; // String | Username    
$password = password_example; // String | Password      
$senderid = sid_example; // String | Sender ID     
$channel = channel_example; // BigDecimal | flag     
$DCS = DCS_example; // BigDecimal | flag     
$flashsms = flashsms_example; // BigDecimal | flag    
$number = 1.2; // BigDecimal | Recepient Mobile No.    
$text = msg_example; // String | Message

try {
    $result = $api_instance->vendorsmsPushsmsAspxGet($user, $password, $senderid, $channel, $DCS, $flashsms, $number, $text);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SMSApi->vendorsmsPushsmsAspxGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SMSApi;

my $api_instance = WWW::SwaggerClient::SMSApi->new();
my $user = user_example; // String | Username    
my $password = password_example; // String | Password      
my $senderid = sid_example; // String | Sender ID     
my $channel = channel_example; // BigDecimal | flag     
my $DCS = DCS_example; // BigDecimal | flag     
my $flashsms = flashsms_example; // BigDecimal | flag    
my $number = 1.2; // BigDecimal | Recepient Mobile No.    
my $text = msg_example; // String | Message

eval { 
    my $result = $api_instance->vendorsmsPushsmsAspxGet(user => $user, password => $password, senderid => $senderid, channel => $channel, DCS => $DCS, flashsms => $flashsms, number => $number, text => $text);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SMSApi->vendorsmsPushsmsAspxGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SMSApi()
user = user_example; // String | Username
         password = password_example; // String | Password
         senderid = sid_example; // String | Sender ID
         channel = channel_example; // BigDecimal | flag
         DCS = DCS_example; // BigDecimal | flag
         flashsms = flashsms_example; // BigDecimal | flag
         number = 1.2; // BigDecimal | Recepient Mobile No.
         text = msg_example; // String | Message

try: 
    # Send Promotional SMS
    api_response = api_instance.vendorsms_pushsms_aspx_get(user, password, senderid, channel, DCS, flashsms, number, text)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SMSApi->vendorsmsPushsmsAspxGet: %s\n" % e)

Parameters

Query parameters
Name Description
user*
String
Username
Required
password*
String
Password
Required
senderid*
BigDecimal
Sender Id
Required
channel*
String
channel
Required
DCS*
String
DCS
Required
flashsms*
BigDecimal
flashsms
Required
number*
BigDecimal
number
Required
text*
BigDecimal
text
Required

Responses

Status: 200 - successful operation

Status: 400 - Bad Request

Status: 404 - Resource Not Found


Schedule SMS


api/mt/SendSMS

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://cloud.smsindiahub.in/api/mt/SendSMS?user=demo&password=demo123&senderid=WEBSMS&channel=Promo&DCS=0&flashsms=0&number=91989xxxxxxx&text=test message&schedtime=2015/12/31 22:35:00 PM&route=##"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SMSApi;

import java.io.File;
import java.util.*;

public class SMSApiExample {

    public static void main(String[] args) {
        
        SMSApi apiInstance = new SMSApi();
        String user = user_example; // String | Username
        String password = password_example; // String | Password
        BigDecimal msisdn = 1.2; // BigDecimal | Recepient Mobile No.
        String sid = sid_example; // String | Sender ID
        String msg = msg_example; // String | Message
        BigDecimal fl = 1.2; // BigDecimal | flag
        Date schedtime = 2013-10-20T19:20:30+01:00; // Date | schedtime
        try {
            Successful result = apiInstance.vendorsmsPushsmsAspxGet_1(user, password, msisdn, sid, msg, fl, schedtime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SMSApi#vendorsmsPushsmsAspxGet_1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SMSApi;

public class SMSApiExample {

    public static void main(String[] args) {
        SMSApi apiInstance = new SMSApi();
        String user = user_example; // String | Username
        String password = password_example; // String | Password
        BigDecimal msisdn = 1.2; // BigDecimal | Recepient Mobile No.
        String sid = sid_example; // String | Sender ID
        String msg = msg_example; // String | Message
        BigDecimal fl = 1.2; // BigDecimal | flag
        Date schedtime = 2013-10-20T19:20:30+01:00; // Date | schedtime
        try {
            Successful result = apiInstance.vendorsmsPushsmsAspxGet_1(user, password, msisdn, sid, msg, fl, schedtime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SMSApi#vendorsmsPushsmsAspxGet_1");
            e.printStackTrace();
        }
    }
}
String *user = user_example; // Username
String *password = password_example; // Password
BigDecimal *msisdn = 1.2; // Recepient Mobile No.
String *sid = sid_example; // Sender ID
String *msg = msg_example; // Message
BigDecimal *fl = 1.2; // flag
Date *schedtime = 2013-10-20T19:20:30+01:00; // schedtime

SMSApi *apiInstance = [[SMSApi alloc] init];

// Schedule SMS
[apiInstance vendorsmsPushsmsAspxGet_2With:user
    password:password
    msisdn:msisdn
    sid:sid
    msg:msg
    fl:fl
    schedtime:schedtime
              completionHandler: ^(Successful output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SmsindiahubApi = require('smsindiahub_api');

var api = new SmsindiahubApi.SMSApi()
var user = user_example; // {{String}} Username
var password = password_example; // {{String}} Password
var msisdn = 1.2; // {{BigDecimal}} Recepient Mobile No.
var sid = sid_example; // {{String}} Sender ID
var msg = msg_example; // {{String}} Message
var fl = 1.2; // {{BigDecimal}} flag
var schedtime = 2013-10-20T19:20:30+01:00; // {{Date}} schedtime

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.vendorsmsPushsmsAspxGet_1(user, password, msisdn, sid, msg, fl, schedtime, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class vendorsmsPushsmsAspxGet_1Example
    {
        public void main()
        {

            var apiInstance = new SMSApi();
            var user = user_example;  // String | Username
            var password = password_example;  // String | Password
            var msisdn = 1.2;  // BigDecimal | Recepient Mobile No.
            var sid = sid_example;  // String | Sender ID
            var msg = msg_example;  // String | Message
            var fl = 1.2;  // BigDecimal | flag
            var schedtime = 2013-10-20T19:20:30+01:00;  // Date | schedtime

            try
            {
                // Schedule SMS
                Successful result = apiInstance.vendorsmsPushsmsAspxGet_1(user, password, msisdn, sid, msg, fl, schedtime);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SMSApi.vendorsmsPushsmsAspxGet_1: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSMSApi();
$user = user_example; // String | Username
$password = password_example; // String | Password
$msisdn = 1.2; // BigDecimal | Recepient Mobile No.
$sid = sid_example; // String | Sender ID
$msg = msg_example; // String | Message
$fl = 1.2; // BigDecimal | flag
$schedtime = 2013-10-20T19:20:30+01:00; // Date | schedtime

try {
    $result = $api_instance->vendorsmsPushsmsAspxGet_1($user, $password, $msisdn, $sid, $msg, $fl, $schedtime);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SMSApi->vendorsmsPushsmsAspxGet_1: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SMSApi;

my $api_instance = WWW::SwaggerClient::SMSApi->new();
my $user = user_example; # String | Username
my $password = password_example; # String | Password
my $msisdn = 1.2; # BigDecimal | Recepient Mobile No.
my $sid = sid_example; # String | Sender ID
my $msg = msg_example; # String | Message
my $fl = 1.2; # BigDecimal | flag
my $schedtime = 2013-10-20T19:20:30+01:00; # Date | schedtime

eval { 
    my $result = $api_instance->vendorsmsPushsmsAspxGet_1(user => $user, password => $password, msisdn => $msisdn, sid => $sid, msg => $msg, fl => $fl, schedtime => $schedtime);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SMSApi->vendorsmsPushsmsAspxGet_1: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SMSApi()
user = user_example # String | Username
password = password_example # String | Password
msisdn = 1.2 # BigDecimal | Recepient Mobile No.
sid = sid_example # String | Sender ID
msg = msg_example # String | Message
fl = 1.2 # BigDecimal | flag
schedtime = 2013-10-20T19:20:30+01:00 # Date | schedtime

try: 
    # Schedule SMS
    api_response = api_instance.vendorsms_pushsms_aspx_get_1(user, password, msisdn, sid, msg, fl, schedtime)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SMSApi->vendorsmsPushsmsAspxGet_1: %s\n" % e)

Parameters

Query parameters
Name Description
user*
String
Username
Required
password*
String
Password
Required
senderid*
BigDecimal
Sender Id
Required
channel*
String
channel
Required
DCS*
String
DCS
Required
flashsms*
BigDecimal
flashsms
Required
number*
BigDecimal
number
Required
text*
BigDecimal
text
Required
schedtime*
BigDecimal
schedtime
Required

Responses

Status: 200 - successful operation

Status: 400 - Bad Request

Status: 404 - Resource Not Found


Group SMS


api/mt/SendSMS

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://cloud.smsindiahub.in/api/mt/SendSMS?user=demo&password=demo123&senderid=WEBSMS&channel=Promo&DCS=0&flashsms=0&number=91989xxxxxxx&text=test message&groupid=###&route=##"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SMSApi;

import java.io.File;
import java.util.*;

public class SMSApiExample {

    public static void main(String[] args) {
        
        SMSApi apiInstance = new SMSApi();
        String user = user_example; // String | Username
        String password = password_example; // String | Password
        BigDecimal msisdn = 1.2; // BigDecimal | Recepient Mobile No.
        String sid = sid_example; // String | Sender ID
        String msg = msg_example; // String | Message
        BigDecimal fl = 1.2; // BigDecimal | flag
        String groupid = groupid_example; // String | groupid
        try {
            Successful result = apiInstance.vendorsmsPushsmsAspxGet_2(user, password, msisdn, sid, msg, fl, groupid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SMSApi#vendorsmsPushsmsAspxGet_2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SMSApi;

public class SMSApiExample {

    public static void main(String[] args) {
        SMSApi apiInstance = new SMSApi();
        String user = user_example; // String | Username
        String password = password_example; // String | Password
        BigDecimal msisdn = 1.2; // BigDecimal | Recepient Mobile No.
        String sid = sid_example; // String | Sender ID
        String msg = msg_example; // String | Message
        BigDecimal fl = 1.2; // BigDecimal | flag
        String groupid = groupid_example; // String | groupid
        try {
            Successful result = apiInstance.vendorsmsPushsmsAspxGet_2(user, password, msisdn, sid, msg, fl, groupid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SMSApi#vendorsmsPushsmsAspxGet_2");
            e.printStackTrace();
        }
    }
}
String *user = user_example; // Username
String *password = password_example; // Password
BigDecimal *msisdn = 1.2; // Recepient Mobile No.
String *sid = sid_example; // Sender ID
String *msg = msg_example; // Message
BigDecimal *fl = 1.2; // flag
String *groupid = groupid_example; // groupid

SMSApi *apiInstance = [[SMSApi alloc] init];

// Group SMS
[apiInstance vendorsmsPushsmsAspxGet_3With:user
    password:password
    msisdn:msisdn
    sid:sid
    msg:msg
    fl:fl
    groupid:groupid
              completionHandler: ^(Successful output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var SmsindiahubApi = require('smsindiahub_api');

var api = new SmsindiahubApi.SMSApi()
var user = user_example; // {{String}} Username
var password = password_example; // {{String}} Password
var msisdn = 1.2; // {{BigDecimal}} Recepient Mobile No.
var sid = sid_example; // {{String}} Sender ID
var msg = msg_example; // {{String}} Message
var fl = 1.2; // {{BigDecimal}} flag
var groupid = groupid_example; // {{String}} groupid

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.vendorsmsPushsmsAspxGet_2(user, password, msisdn, sid, msg, fl, groupid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class vendorsmsPushsmsAspxGet_2Example
    {
        public void main()
        {

            var apiInstance = new SMSApi();
            var user = user_example;  // String | Username
            var password = password_example;  // String | Password
            var msisdn = 1.2;  // BigDecimal | Recepient Mobile No.
            var sid = sid_example;  // String | Sender ID
            var msg = msg_example;  // String | Message
            var fl = 1.2;  // BigDecimal | flag
            var groupid = groupid_example;  // String | groupid

            try
            {
                // Group SMS
                Successful result = apiInstance.vendorsmsPushsmsAspxGet_2(user, password, msisdn, sid, msg, fl, groupid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SMSApi.vendorsmsPushsmsAspxGet_2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSMSApi();
$user = user_example; // String | Username
$password = password_example; // String | Password
$msisdn = 1.2; // BigDecimal | Recepient Mobile No.
$sid = sid_example; // String | Sender ID
$msg = msg_example; // String | Message
$fl = 1.2; // BigDecimal | flag
$groupid = groupid_example; // String | groupid

try {
    $result = $api_instance->vendorsmsPushsmsAspxGet_2($user, $password, $msisdn, $sid, $msg, $fl, $groupid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SMSApi->vendorsmsPushsmsAspxGet_2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SMSApi;

my $api_instance = WWW::SwaggerClient::SMSApi->new();
my $user = user_example; # String | Username
my $password = password_example; # String | Password
my $msisdn = 1.2; # BigDecimal | Recepient Mobile No.
my $sid = sid_example; # String | Sender ID
my $msg = msg_example; # String | Message
my $fl = 1.2; # BigDecimal | flag
my $groupid = groupid_example; # String | groupid

eval { 
    my $result = $api_instance->vendorsmsPushsmsAspxGet_2(user => $user, password => $password, msisdn => $msisdn, sid => $sid, msg => $msg, fl => $fl, groupid => $groupid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SMSApi->vendorsmsPushsmsAspxGet_2: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.SMSApi()
user = user_example # String | Username
password = password_example # String | Password
msisdn = 1.2 # BigDecimal | Recepient Mobile No.
sid = sid_example # String | Sender ID
msg = msg_example # String | Message
fl = 1.2 # BigDecimal | flag
groupid = groupid_example # String | groupid

try: 
    # Group SMS
    api_response = api_instance.vendorsms_pushsms_aspx_get_2(user, password, msisdn, sid, msg, fl, groupid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SMSApi->vendorsmsPushsmsAspxGet_2: %s\n" % e)

Parameters

Query parameters
Name Description
user*
String
Username
Required
password*
String
Password
Required
senderid*
BigDecimal
Sender Id
Required
channel*
String
channel
Required
DCS*
String
DCS
Required
flashsms*
BigDecimal
flashsms
Required
number*
BigDecimal
number
Required
text*
BigDecimal
text
Required
groupid*
BigDecimal
groupid
Required

Responses

Status: 200 - successful operation

Status: 400 - Bad Request

Status: 404 - Resource Not Found


Shortcode & Longcode



Parameter Name Description
sender* Message sender's number
message* Text message from a user (first word must be keyword)
Format: Keyword SubKeyword or Message
channel* The channel number on which message will deliver (Like 91989812345 or 56161)
operatorname Its optional parameter if your operator provides operator name you can pass in this parameter
circlename Its optional parameter if your operator provides circle name you can pass in this parameter

Post Method


As it support post method with rest api we will generate the json string manually as below to push on api       

$postData = "{'Account':{'User':'".$user."','Password':'".$password."','SenderId':'".$senderid."','Channel':'".$channel."','DCS':'".$DCS."','FlashSms':'".$flashsms."','Route':".$route."},'Messages':[{'Number':'".$number."','Text':'". $message."'}]}";   

Missed Call


Example of API
http://cloud.smsindiahub.in/api/Calls/IncomingCall?caller=%who&called=%channel&operatorname=%operator&circlename=%circle&DateTime=%time

Parameter Name Description
caller* Caller number information
called* Miss call number which is configured in user account
operatorname Its optional parameter if your operator provides operator name you can pass in this parameter
circlename Its optional parameter if your operator provides circle name you can pass in this parameter
time call time when call was registered(realtime)