auth func

This commit is contained in:
Arjun Patel
2017-10-07 01:37:11 -07:00
parent 5a3d5b77ef
commit ac9f08b6c0
+3 -1
View File
@@ -15,6 +15,7 @@ function captureInput() {
console.log(command); console.log(command);
if (command in dict) { if (command in dict) {
dict[command](input.substring(untilSpace+1)); dict[command](input.substring(untilSpace+1));
google_auth();
} }
else { else {
console.log("not a valid command"); console.log("not a valid command");
@@ -22,7 +23,7 @@ function captureInput() {
} }
function google_auth() {
// Client ID and API key from the Developer Console // Client ID and API key from the Developer Console
var CLIENT_ID = '282164278400-fibsdnpmvl7hnhu0v837mql3f5u0b8lu.apps.googleusercontent.com'; var CLIENT_ID = '282164278400-fibsdnpmvl7hnhu0v837mql3f5u0b8lu.apps.googleusercontent.com';
@@ -135,3 +136,4 @@ function listUpcomingEvents() {
} }
}); });
} }
}