Check Delivery Status
/api/mt/SendSMS
Usage Samples
curl -X GET\
-H "Accept: application/json"\
"https//global.smsindiahub.in/api/mt/SendSMS?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 = jobid_example; // String | Job Id
try {
Successful result = apiInstance.apiMtSendSMSGet(user, password, jobid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CHECKDELIVERYApi#apiMtSendSMSGet");
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 jobid = jobid_example; // String | Job Id
try {
Successful result = apiInstance.apiMtSendSMSGet(user, password, jobid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CHECKDELIVERYApi#apiMtSendSMSGet");
e.printStackTrace();
}
}
}
String *user = user_example; // Username
String *password = password_example; // Password
String *jobid = jobid_example; // Job Id
CHECKDELIVERYApi *apiInstance = [[CHECKDELIVERYApi alloc] init];
// Check Delivery Status
[apiInstance apiMtSendSMSGetWith:user
password:password
jobid:jobid
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 jobid = jobid_example; // {{String}} Job Id
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.apiMtSendSMSGet(user, password, jobid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class apiMtSendSMSGetExample
{
public void main()
{
var apiInstance = new CHECKDELIVERYApi();
var user = user_example; // String | Username
var password = password_example; // String | Password
var jobid = jobid_example; // String | Job Id
try
{
// Check Delivery Status
Successful result = apiInstance.apiMtSendSMSGet(user, password, jobid);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CHECKDELIVERYApi.apiMtSendSMSGet: " + 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
$jobid = jobid_example; // String | Job Id
try {
$result = $api_instance->apiMtSendSMSGet($user, $password, $jobid);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CHECKDELIVERYApi->apiMtSendSMSGet: ', $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 $jobid = jobid_example; # String | Job Id
eval {
my $result = $api_instance->apiMtSendSMSGet(user => $user, password => $password, jobid => $jobid);
print Dumper($result);
};
if ($@) {
warn "Exception when calling CHECKDELIVERYApi->apiMtSendSMSGet: $@\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
jobid = jobid_example # String | Job Id
try:
# Check Delivery Status
api_response = api_instance.api_mt_send_sms_get(user, password, jobid)
pprint(api_response)
except ApiException as e:
print("Exception when calling CHECKDELIVERYApi->apiMtSendSMSGet: %s\n" % e)
Parameters
Query parameters
Name | Description |
---|---|
user* |
String
Username
Required
|
password* |
String
Password
Required
|
jobid* |
String
Job Id
Required
|