This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doPost(e) { | |
// Open the requested SpreadSheet and Sheet: | |
var prop = PropertiesService.getScriptProperties(); | |
var spreadSheet = SpreadsheetApp.openById(prop.getProperty('SpreadSheetID')); | |
var sheet = spreadSheet.getSheets()[0]; | |
// Append the data to the sheet on a new row: | |
sheet.appendRow([new Date(), e.parameter['from'], e.parameter['message']]); | |
// Return a empty text string to 46elks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function elksSMS() { | |
// Get the properties | |
var prop = PropertiesService.getScriptProperties(); | |
var username = prop.getProperty('46elksUsername'); | |
var password = prop.getProperty('46elksPassword'); | |
var spreadsheetID = prop.getProperty('SpreadsheetID'); | |
var sender = prop.getProperty('46elksAccountPhoneNumber'); | |
var auth = Utilities.base64Encode(username + ":" + password); | |
// Open the requested SpreadSheet and Sheet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filetype plugin on | |
set nu | |
syntax on | |
set sw=2 | |
set ts=2 | |
set ai | |
set et | |
set clipboard=unnamed |