Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (19 sloc) 481 Bytes
function elkTest(){
var user = "<API-username>";
var pass = "<API-password>";
var parameters =
{
"method": "post",
"headers":
{
"Authorization": "Basic " + Utilities.base64Encode(user+":"+pass)
},
"payload":
{
"from" : "+46723175800",
"to" : "+46766861647",
"message" : "Hi! This is a message to you!"
}
};
var response = UrlFetchApp.fetch("https://api.46elks.com/a1/SMS", parameters);
}