Appearance
Send Quick SMS POST METHOD
js
const payload = {
from: "ICSMS",// your sender ID goes here
to: "0570120200,0562123456", //your destination numbers goes here seperated by commas
message: "Hello Testing SMS", //your message goes here
};
const apikey = "1W3N4KHD28YCBL8M7WDG0L11N73FP28JKD5SOKD2D4KXJKCKMF"
const config = {
method: "POST",
headers: {
Authorization: `Bearer ${apikey}`,
Accept: "application/json",
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
};
url = "https://api.icsms.net/sendsms/"
fetch(url, config)
.then(res=>{
res.json()
}).then(data=>{
console.log(data)
})