diff options
Diffstat (limited to 'oauth.js')
-rw-r--r-- | oauth.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/oauth.js b/oauth.js deleted file mode 100644 index 96ae811..0000000 --- a/oauth.js +++ /dev/null @@ -1,13 +0,0 @@ -window.onload = function() { - chrome.identity.getAuthToken({interactive: true}, function(token) { - fetch('https://www.googleapis.com/calendar/v3' + '/users/me/calendarList' + '?access_token=' + token, - { method: 'GET', async: true }).then((response) => response.json()).then(function(data) { - var test = document.getElementById('test'); - data.items.map(e => e.summary).forEach(function(e) { - var entry = document.createElement('li'); - entry.innerText = e; - test.appendChild(entry); - }); - }); - }); -}; |