Google Appscript Sample Code Send SMS

 In sample code

Google Appscript Sample Code Send SMS

//write this code in your .gs file
//Your authentication key
var authKey = "YourAuthKey";

//Multiple mobiles numbers separated by comma
var mobileNumber = "9999999";

//Sender ID,While using route4 sender id should be 6 characters long.
var senderId = "102234";

//Your message to send, Add URL encoding here.
var message = "Test message";

//Define route
var route = "default";

var payload = {
        "authkey": authKey,
        'mobiles' : mobileNumber,
        'message' : message,
        'sender' : senderId,
        'route' : route

var options = {
    "method": "post",
    "payload": payload

var res = UrlFetchApp.fetch("", options);

var resAsTxt = '' + res + '';

Recent Posts

Leave a Comment

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.