module.exports = function (context, message) {
    context.log(message);

    context.done();
};

@@ -48,27 +48,1460 @@
     
-context.log(message
+var google = require('googleapis');%0A    var googleAuth = require('google-auth-library');%0A%0A    var calendar = google.calendar('v3');%0A%0A    var client_email = process.env.client_email;%0A    var private_key = process.env.private_key;%0A    var user_address = 'igor@wrdsb.ca';%0A%0A    // *sigh* because Azure Functions application settings can't handle newlines, let's add them ourselves:%0A    private_key = private_key.split('%5C%5Cn').join(%22%5Cn%22);%0A%0A    context.log('List Calendar ACLs for calendar ' + message.calendarId);%0A%0A    // prep our credentials for G Suite APIs%0A    var jwtClient = new google.auth.JWT(%0A        client_email,%0A        null,%0A        private_key,%0A        %5B'https://www.googleapis.com/auth/calendar'%5D, // an array of auth scopes%0A        user_address%0A    );%0A%0A    var params = %7B%0A        auth: jwtClient,%0A%0A        // specify we want JSON back from the API.%0A        // Group Settings API defaults to XML (or Atom), despite the docs%0A        alt: %22json%22,%0A%0A        // the Calendar Acl to create%0A        calendarId: message.calendarId,%0A        maxResults: message.maxResults%0A    %7D;%0A%0A    jwtClient.authorize(function(err, tokens) %7B%0A        if (err) %7B%0A            context.log(err);%0A            return;%0A        %7D%0A        calendar.acl.list(params, function (err, result) %7B%0A            if (err) %7B%0A                context.log(result);%0A                context.done(err);%0A            %7D%0A            context.log(result);%0A            context.done();%0A        %7D);%0A    %7D
 );%0A%0A

flesh out calendar_acl_list