forked from nobe4/extralendar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.gs
More file actions
34 lines (31 loc) · 1.17 KB
/
main.gs
File metadata and controls
34 lines (31 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// ------------------------------- EXTRALENDAR ----------------------------------------
//
// Google app script for automatic export of the extranet calendar to google calendar.
//
// Installation:
// See : https://github.com/nobe4/extralendar
// Have a question : https://github.com/nobe4/extralendar/wiki/FAQ
//
// Want to help:
// Report us any bugs on : https://github.com/nobe4/extralendar/issues
// Got new features ideas : https://github.com/nobe4/extralendar/issues
//
// ------------------------------------------------------------------------------------
var args = {
address : "",
username : "",
password : "",
calendar : "",
anonymous_stats : true, // please help us improving our service by collecting anonymous error reports
alert_update : true, // inform you by e-mail about new updates
};
// Request authorization for calendar, docs and mail
CalendarApp.getColor();
MailApp.getRemainingDailyQuota();
SpreadsheetApp.flush();
function main(){
var url = "https://raw.githubusercontent.com/nobe4/extralendar/"+((args.branch!="develop") ? "master" : "develop") +"/core.gs";
var core_gs = UrlFetchApp.fetch(url);
var core = new Function(core_gs);
core();
}