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
$.getScript("https://mandrillapp.com/api/docs/js/mandrill.js") | |
.done(function(script, textStatus) { | |
console.log(textStatus); | |
}) | |
.fail(function(jqxhr, settings, exception) { | |
console.log("Triggered ajaxError handler."); | |
}); | |
// Create a function to log the response from the Mandrill API | |
function log(obj) { |
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 onInstall(e) { | |
onOpen(e); | |
} | |
function onOpen(e) { | |
DocumentApp.getUi().createAddonMenu() | |
.addItem('Add Rules', 'showSidebar') | |
.addToUi(); | |
currentSet("Default"); |