Skip to content

Instantly share code, notes, and snippets.

@adasq
Created August 4, 2015 18:52
Show Gist options
  • Save adasq/6ecf1c7f091f18b5e7ce to your computer and use it in GitHub Desktop.
Save adasq/6ecf1c7f091f18b5e7ce to your computer and use it in GitHub Desktop.
google app script trigger.js
var sheet = SpreadsheetApp.getActive();
ScriptApp.newTrigger("myFunction")
.forSpreadsheet(sheet)
.onEdit()
.create();
var response = UrlFetchApp.fetch("http://jsonplaceholder.typicode.com/posts/");
Logger.log(response);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment