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 exportSpreadsheet() { | |
//All requests must include id in the path and a format parameter | |
//https://docs.google.com/spreadsheets/d/{SpreadsheetId}/export | |
//FORMATS WITH NO ADDITIONAL OPTIONS | |
//format=xlsx //excel | |
//format=ods //Open Document Spreadsheet | |
//format=zip //html zipped | |
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 exampleEdit() { | |
var email = "15x.moon@email.com"; | |
var sharedCode = "blahdiblah123"; | |
var imageFile = convertSVG(editSVG(email, sharedCode, null), 'This is a PNG with the sharedCode'); | |
// do whatever with the imageFile - I want to add it to an email to send the recipient address above | |
} | |
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 oAuthConfig() { | |
var oAuthConfig = UrlFetchApp.addOAuthService("twitter"); | |
oAuthConfig.setAccessTokenUrl("http://api.twitter.com/oauth/access_token"); | |
oAuthConfig.setRequestTokenUrl("http://api.twitter.com/oauth/request_token"); | |
oAuthConfig.setAuthorizationUrl("http://api.twitter.com/oauth/authorize"); | |
// Register an app at https://dev.twitter.com/apps/new to get the following key and secret | |
oAuthConfig.setConsumerKey("PUT CONSUMER KEY HERE"); | |
oAuthConfig.setConsumerSecret("PUT CONSUMER SECRET HERE"); | |
} |