Skip to content
On this page

Send Scheduled SMS GET METHOD

PARAMETERS

API URL : https://api.icsms.net/sendsms/

apikey (string : required)

apikey helps to identify the user making the request. Sign/login for your apikey

from (string : required)

This represents the sender id for the message

to (string : required)

This is a string of comma seperated mobile numbers, eg 0570120200,0562123456

message (string : required)

This represents the body of message sent as SMS

type (string: required)

For scheduled SMS pass this as "scheduled". Required for scheduled SMS.

expectedDeliveryTime (string: required)

This represents the initial delivery time, this should be passed as YYYY-MM-DD HH:HH:MM eg. "2021-07-29 06:30:10". Required for scheduled SMS.

encode (string : optional)

Pass this value as "true" (string) if you want your SMS to support special characters like emojis, latin, arabic, chinese etc, otherwise do not include this field in your payload

EXPECTED RESPONSE

json
status - 200 ok

{ "status": "successful", "message": "Thank you for choosing us, your Scheduled SMS has been saved and will be delivered at the appropriate time", "messageId": "123456789" }

HTTP API

https://api.icsms.net/sendsms?apikey={apikey}&from={from}&message={message}&to={to}&type=scheduled&expectedDeliveryTime=&{expectedDeliveryTime}

Example

https://api.icsms.net/sendsms?apikey=1W3N4KHD28YCBL8M7WDG0L11N73FP28JKD5SOKD2D4KXJKCKMF&from=ICSMS&message=Test&to=0570120200,0562123456&type=scheduled&expectedDeliveryTime=2021-07-29%2006:30:10

Using Code

Javascripts

js
var requestOptions = {
  method: 'GET',
  redirect: 'follow'
};

var apikey = "1W3N4KHD28YCBL8M7WDG0L11N73FP28JKD5SOKD2D4KXJKCKMF" 
var from = "ICSMS" 
var to = "0570120200,0562123456"
var message = "Testing Scheduled SMS"
var type = "scheduled"
var expectedDeliveryTime = "2021-07-29 06:30:10"

fetch(`https://api.icsms.net/sendsms?apikey=${apikey}&from=${from}&to=${to}&message=${message}&type=${type}&expectedDeliveryTime=${expectedDeliveryTime}`, requestOptions)
  .then(response => response.json())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

NodeJS

js
const axios = require('axios');

let apikey = "1W3N4KHD28YCBL8M7WDG0L11N73FP28JKD5SOKD2D4KXJKCKMF" 
let from = "ICSMS" 
let to = "0570120200,0562123456"
let message = "Testing Scheduled SMS"
let type = "scheduled"
let expectedDeliveryTime = "2021-07-29 06:30:10"

let config = {
  method: 'get',
  url: `https://api.icsms.net/sendsms?apikey=${apikey}&from=${from}&to=${to}&message=${message}&type=${type}&expectedDeliveryTime=${expectedDeliveryTime}`,
  headers: { }
};

axios(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

PHP

php
<?php
$curl = curl_init();

$apikey = "1W3N4KHD28YCBL8M7WDG0L11N73FP28JKD5SOKD2D4KXJKCKMF"; 
$from = "ICSMS"; 
$to = "0570120200,0562123456";
$message = "Testing Scheduled SMS";
$type = "scheduled";
$expectedDeliveryTime = "2021-07-29 06:30:10";

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.icsms.net/sendsms?apikey='.$apikey.'&from='.$from.'&to='.$to.'&message='.$message.'&type='.$type.'&expectedDeliveryTime='.$expectedDeliveryTime,
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Python

python
import requests

apikey = "1W3N4KHD28YCBL8M7WDG0L11N73FP28JKD5SOKD2D4KXJKCKMF"
sender_id = "ICSMS"
to = "0570120200,0562123456"
message = "Testing Scheduled SMS"
type_of_message = "scheduled"
expectedDeliveryTime = "2021-07-29 06:30:10"

url = "https://api.icsms.net/sendsms?apikey={}&from={}&to={}&message={}&type={}&expectedDeliveryTime={}".format(apikey,sender_id,to,message,type_of_message,expectedDeliveryTime)


response = requests.request("GET", url)

print(response.json())

C#

c#
var client = new RestClient("https://api.icsms.net/sendsms?apikey=1W3N4KHD28YCBL8M7WDG0L11N73FP28JKD5SOKD2D4KXJKCKMF&from=ICSMS&to=0570120200,0562123456&message=Testing Scheduled SMS&type=scheduled&expectedDeliveryTime=2021-07-29 06:30:10");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

Java

java
Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.get("https://api.icsms.net/sendsms?apikey=1W3N4KHD28YCBL8M7WDG0L11N73FP28JKD5SOKD2D4KXJKCKMF&from=ICSMS&to=0570120200,0562123456&message=Testing Scheduled SMS&type=scheduled&expectedDeliveryTime=2021-07-29 06:30:10")
  .asString();