Skip to content

Instantly share code, notes, and snippets.

@kbk0125
Created April 17, 2016 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbk0125/045301e60dff1f86fc27a0dda1ad1e05 to your computer and use it in GitHub Desktop.
Save kbk0125/045301e60dff1f86fc27a0dda1ad1e05 to your computer and use it in GitHub Desktop.
//Your custom function. API key provided after you "Publish" your version of the function
blockspring.runParsed("YOURAPIKEYHERE", {
//Can either be POST or GET, depending on if you want to read or write
'type': 'POST',
// This is your internal function name.
// Must match the key from urlHash so you can access the appropriate sheet
'name': 'postEntry',
// Values if it is a post. If a get, should be Query just like the normal examples.
"values": allData},
function(res){
// If post, confirms success
console.log(res);
// If Get, access the results in same way
var name=res.params.data[0]['name'];
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment