Skip to content

Instantly share code, notes, and snippets.

View JuanCanham's full-sized avatar

JuanCanham

View GitHub Profile
@JuanCanham
JuanCanham / gist:2917132
Created June 12, 2012 12:02
Simple Google Apps script to update signatures accross a domain
function getSignature() {
//pretty basic function for testing
if ( startupChecks()) { return; }
var email = SpreadsheetApp.getActiveSpreadsheet().getActiveCell().getValue().toString();
if ( email === "" ) {
Browser.msgBox("No email selected", "Please select a cell containing a user's email" , Browser.Buttons.OK);
return;
}
var result = authorisedUrlFetch(email, {});
Browser.msgBox(result.getContentText());