Skip to content
On this page

Send Scheduled SMS GET METHOD

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

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

js
const apikey = "1W3N4KHD28YCBL8M7WDG0L11N73FP28JKD5SOKD2D4KXJKCKMF"
const from = "ICSMS"
const to = "0570120200,0562123456"
const message = "Test"
const type = "scheduled"
const expectedDeliveryTime = "2021-07-29 06:30:10"

const config = {
    method: "GET",
    headers: {
        Authorization: `Bearer ${apikey}`,
        Accept: "application/json",
    },
};

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

fetch(url, config)
.then(res=>{
    res.json()
}).then(data=>{
    console.log(data)
})