{"action":"created","comment":{"url":"https://api.github.com/repos/irfansharif/how-late/pulls/comments/38170424","id":38170424,"diff_hunk":"@@ -103,7 +103,33 @@ function refresh_access_token(refresh_token, code) {\n function do_google_api() {\n     use_access_token(function(access_token) {\n         // Use access token to make request to Calendar API\n-    });\n+        var req = new XMLHttpRequest();\n+        req.open(\"GET\", \"https://www.googleapis.com/calendar/v3/users/me/calendarList?access_token=\" + access_token, true);","path":"src/js/pebble-js-app.js","position":6,"original_position":6,"commit_id":"fa17a3b67304b7e1a4520c4c64b530756d0c88e4","original_commit_id":"fa17a3b67304b7e1a4520c4c64b530756d0c88e4","user":{"login":"irfansharif","id":10536690,"avatar_url":"https://avatars.githubusercontent.com/u/10536690?v=3","gravatar_id":"","url":"https://api.github.com/users/irfansharif","html_url":"https://github.com/irfansharif","followers_url":"https://api.github.com/users/irfansharif/followers","following_url":"https://api.github.com/users/irfansharif/following{/other_user}","gists_url":"https://api.github.com/users/irfansharif/gists{/gist_id}","starred_url":"https://api.github.com/users/irfansharif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irfansharif/subscriptions","organizations_url":"https://api.github.com/users/irfansharif/orgs","repos_url":"https://api.github.com/users/irfansharif/repos","events_url":"https://api.github.com/users/irfansharif/events{/privacy}","received_events_url":"https://api.github.com/users/irfansharif/received_events","type":"User","site_admin":false},"body":"same here, abstract away url","created_at":"2015-08-28T04:32:45Z","updated_at":"2015-08-28T04:32:45Z","html_url":"https://github.com/irfansharif/how-late/pull/2#discussion_r38170424","pull_request_url":"https://api.github.com/repos/irfansharif/how-late/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/irfansharif/how-late/pulls/comments/38170424"},"html":{"href":"https://github.com/irfansharif/how-late/pull/2#discussion_r38170424"},"pull_request":{"href":"https://api.github.com/repos/irfansharif/how-late/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/irfansharif/how-late/pulls/2","id":43589346,"html_url":"https://github.com/irfansharif/how-late/pull/2","diff_url":"https://github.com/irfansharif/how-late/pull/2.diff","patch_url":"https://github.com/irfansharif/how-late/pull/2.patch","issue_url":"https://api.github.com/repos/irfansharif/how-late/issues/2","number":2,"state":"open","locked":false,"title":"Add calls to Google Calendar API to get calendar events","user":{"login":"MunazR","id":8369821,"avatar_url":"https://avatars.githubusercontent.com/u/8369821?v=3","gravatar_id":"","url":"https://api.github.com/users/MunazR","html_url":"https://github.com/MunazR","followers_url":"https://api.github.com/users/MunazR/followers","following_url":"https://api.github.com/users/MunazR/following{/other_user}","gists_url":"https://api.github.com/users/MunazR/gists{/gist_id}","starred_url":"https://api.github.com/users/MunazR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MunazR/subscriptions","organizations_url":"https://api.github.com/users/MunazR/orgs","repos_url":"https://api.github.com/users/MunazR/repos","events_url":"https://api.github.com/users/MunazR/events{/privacy}","received_events_url":"https://api.github.com/users/MunazR/received_events","type":"User","site_admin":false},"body":"This should call the Google Calendar API after validating the access token. It should return a list of events for the user's first calendar.\r\n\r\nIn the future we should add functionality so the user can choose which calendar they would like to pull their events from.","created_at":"2015-08-28T03:02:20Z","updated_at":"2015-08-28T04:32:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d1e09c0f136dbb746ddb076d1e98650a53ea2dd0","assignee":{"login":"irfansharif","id":10536690,"avatar_url":"https://avatars.githubusercontent.com/u/10536690?v=3","gravatar_id":"","url":"https://api.github.com/users/irfansharif","html_url":"https://github.com/irfansharif","followers_url":"https://api.github.com/users/irfansharif/followers","following_url":"https://api.github.com/users/irfansharif/following{/other_user}","gists_url":"https://api.github.com/users/irfansharif/gists{/gist_id}","starred_url":"https://api.github.com/users/irfansharif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irfansharif/subscriptions","organizations_url":"https://api.github.com/users/irfansharif/orgs","repos_url":"https://api.github.com/users/irfansharif/repos","events_url":"https://api.github.com/users/irfansharif/events{/privacy}","received_events_url":"https://api.github.com/users/irfansharif/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/irfansharif/how-late/pulls/2/commits","review_comments_url":"https://api.github.com/repos/irfansharif/how-late/pulls/2/comments","review_comment_url":"https://api.github.com/repos/irfansharif/how-late/pulls/comments{/number}","comments_url":"https://api.github.com/repos/irfansharif/how-late/issues/2/comments","statuses_url":"https://api.github.com/repos/irfansharif/how-late/statuses/fa17a3b67304b7e1a4520c4c64b530756d0c88e4","head":{"label":"irfansharif:get-calendar-events","ref":"get-calendar-events","sha":"fa17a3b67304b7e1a4520c4c64b530756d0c88e4","user":{"login":"irfansharif","id":10536690,"avatar_url":"https://avatars.githubusercontent.com/u/10536690?v=3","gravatar_id":"","url":"https://api.github.com/users/irfansharif","html_url":"https://github.com/irfansharif","followers_url":"https://api.github.com/users/irfansharif/followers","following_url":"https://api.github.com/users/irfansharif/following{/other_user}","gists_url":"https://api.github.com/users/irfansharif/gists{/gist_id}","starred_url":"https://api.github.com/users/irfansharif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irfansharif/subscriptions","organizations_url":"https://api.github.com/users/irfansharif/orgs","repos_url":"https://api.github.com/users/irfansharif/repos","events_url":"https://api.github.com/users/irfansharif/events{/privacy}","received_events_url":"https://api.github.com/users/irfansharif/received_events","type":"User","site_admin":false},"repo":{"id":41068550,"name":"how-late","full_name":"irfansharif/how-late","owner":{"login":"irfansharif","id":10536690,"avatar_url":"https://avatars.githubusercontent.com/u/10536690?v=3","gravatar_id":"","url":"https://api.github.com/users/irfansharif","html_url":"https://github.com/irfansharif","followers_url":"https://api.github.com/users/irfansharif/followers","following_url":"https://api.github.com/users/irfansharif/following{/other_user}","gists_url":"https://api.github.com/users/irfansharif/gists{/gist_id}","starred_url":"https://api.github.com/users/irfansharif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irfansharif/subscriptions","organizations_url":"https://api.github.com/users/irfansharif/orgs","repos_url":"https://api.github.com/users/irfansharif/repos","events_url":"https://api.github.com/users/irfansharif/events{/privacy}","received_events_url":"https://api.github.com/users/irfansharif/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/irfansharif/how-late","description":"Pebble Time (Basalt) app integrating with Google Calendar API","fork":false,"url":"https://api.github.com/repos/irfansharif/how-late","forks_url":"https://api.github.com/repos/irfansharif/how-late/forks","keys_url":"https://api.github.com/repos/irfansharif/how-late/keys{/key_id}","collaborators_url":"https://api.github.com/repos/irfansharif/how-late/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/irfansharif/how-late/teams","hooks_url":"https://api.github.com/repos/irfansharif/how-late/hooks","issue_events_url":"https://api.github.com/repos/irfansharif/how-late/issues/events{/number}","events_url":"https://api.github.com/repos/irfansharif/how-late/events","assignees_url":"https://api.github.com/repos/irfansharif/how-late/assignees{/user}","branches_url":"https://api.github.com/repos/irfansharif/how-late/branches{/branch}","tags_url":"https://api.github.com/repos/irfansharif/how-late/tags","blobs_url":"https://api.github.com/repos/irfansharif/how-late/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/irfansharif/how-late/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/irfansharif/how-late/git/refs{/sha}","trees_url":"https://api.github.com/repos/irfansharif/how-late/git/trees{/sha}","statuses_url":"https://api.github.com/repos/irfansharif/how-late/statuses/{sha}","languages_url":"https://api.github.com/repos/irfansharif/how-late/languages","stargazers_url":"https://api.github.com/repos/irfansharif/how-late/stargazers","contributors_url":"https://api.github.com/repos/irfansharif/how-late/contributors","subscribers_url":"https://api.github.com/repos/irfansharif/how-late/subscribers","subscription_url":"https://api.github.com/repos/irfansharif/how-late/subscription","commits_url":"https://api.github.com/repos/irfansharif/how-late/commits{/sha}","git_commits_url":"https://api.github.com/repos/irfansharif/how-late/git/commits{/sha}","comments_url":"https://api.github.com/repos/irfansharif/how-late/comments{/number}","issue_comment_url":"https://api.github.com/repos/irfansharif/how-late/issues/comments{/number}","contents_url":"https://api.github.com/repos/irfansharif/how-late/contents/{+path}","compare_url":"https://api.github.com/repos/irfansharif/how-late/compare/{base}...{head}","merges_url":"https://api.github.com/repos/irfansharif/how-late/merges","archive_url":"https://api.github.com/repos/irfansharif/how-late/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/irfansharif/how-late/downloads","issues_url":"https://api.github.com/repos/irfansharif/how-late/issues{/number}","pulls_url":"https://api.github.com/repos/irfansharif/how-late/pulls{/number}","milestones_url":"https://api.github.com/repos/irfansharif/how-late/milestones{/number}","notifications_url":"https://api.github.com/repos/irfansharif/how-late/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/irfansharif/how-late/labels{/name}","releases_url":"https://api.github.com/repos/irfansharif/how-late/releases{/id}","created_at":"2015-08-20T01:29:27Z","updated_at":"2015-08-24T03:53:48Z","pushed_at":"2015-08-28T03:03:24Z","git_url":"git://github.com/irfansharif/how-late.git","ssh_url":"git@github.com:irfansharif/how-late.git","clone_url":"https://github.com/irfansharif/how-late.git","svn_url":"https://github.com/irfansharif/how-late","homepage":"","size":186,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"irfansharif:master","ref":"master","sha":"d2899c1b69c014b945beffb1a62c1cc2d0a2ab8a","user":{"login":"irfansharif","id":10536690,"avatar_url":"https://avatars.githubusercontent.com/u/10536690?v=3","gravatar_id":"","url":"https://api.github.com/users/irfansharif","html_url":"https://github.com/irfansharif","followers_url":"https://api.github.com/users/irfansharif/followers","following_url":"https://api.github.com/users/irfansharif/following{/other_user}","gists_url":"https://api.github.com/users/irfansharif/gists{/gist_id}","starred_url":"https://api.github.com/users/irfansharif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irfansharif/subscriptions","organizations_url":"https://api.github.com/users/irfansharif/orgs","repos_url":"https://api.github.com/users/irfansharif/repos","events_url":"https://api.github.com/users/irfansharif/events{/privacy}","received_events_url":"https://api.github.com/users/irfansharif/received_events","type":"User","site_admin":false},"repo":{"id":41068550,"name":"how-late","full_name":"irfansharif/how-late","owner":{"login":"irfansharif","id":10536690,"avatar_url":"https://avatars.githubusercontent.com/u/10536690?v=3","gravatar_id":"","url":"https://api.github.com/users/irfansharif","html_url":"https://github.com/irfansharif","followers_url":"https://api.github.com/users/irfansharif/followers","following_url":"https://api.github.com/users/irfansharif/following{/other_user}","gists_url":"https://api.github.com/users/irfansharif/gists{/gist_id}","starred_url":"https://api.github.com/users/irfansharif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irfansharif/subscriptions","organizations_url":"https://api.github.com/users/irfansharif/orgs","repos_url":"https://api.github.com/users/irfansharif/repos","events_url":"https://api.github.com/users/irfansharif/events{/privacy}","received_events_url":"https://api.github.com/users/irfansharif/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/irfansharif/how-late","description":"Pebble Time (Basalt) app integrating with Google Calendar API","fork":false,"url":"https://api.github.com/repos/irfansharif/how-late","forks_url":"https://api.github.com/repos/irfansharif/how-late/forks","keys_url":"https://api.github.com/repos/irfansharif/how-late/keys{/key_id}","collaborators_url":"https://api.github.com/repos/irfansharif/how-late/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/irfansharif/how-late/teams","hooks_url":"https://api.github.com/repos/irfansharif/how-late/hooks","issue_events_url":"https://api.github.com/repos/irfansharif/how-late/issues/events{/number}","events_url":"https://api.github.com/repos/irfansharif/how-late/events","assignees_url":"https://api.github.com/repos/irfansharif/how-late/assignees{/user}","branches_url":"https://api.github.com/repos/irfansharif/how-late/branches{/branch}","tags_url":"https://api.github.com/repos/irfansharif/how-late/tags","blobs_url":"https://api.github.com/repos/irfansharif/how-late/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/irfansharif/how-late/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/irfansharif/how-late/git/refs{/sha}","trees_url":"https://api.github.com/repos/irfansharif/how-late/git/trees{/sha}","statuses_url":"https://api.github.com/repos/irfansharif/how-late/statuses/{sha}","languages_url":"https://api.github.com/repos/irfansharif/how-late/languages","stargazers_url":"https://api.github.com/repos/irfansharif/how-late/stargazers","contributors_url":"https://api.github.com/repos/irfansharif/how-late/contributors","subscribers_url":"https://api.github.com/repos/irfansharif/how-late/subscribers","subscription_url":"https://api.github.com/repos/irfansharif/how-late/subscription","commits_url":"https://api.github.com/repos/irfansharif/how-late/commits{/sha}","git_commits_url":"https://api.github.com/repos/irfansharif/how-late/git/commits{/sha}","comments_url":"https://api.github.com/repos/irfansharif/how-late/comments{/number}","issue_comment_url":"https://api.github.com/repos/irfansharif/how-late/issues/comments{/number}","contents_url":"https://api.github.com/repos/irfansharif/how-late/contents/{+path}","compare_url":"https://api.github.com/repos/irfansharif/how-late/compare/{base}...{head}","merges_url":"https://api.github.com/repos/irfansharif/how-late/merges","archive_url":"https://api.github.com/repos/irfansharif/how-late/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/irfansharif/how-late/downloads","issues_url":"https://api.github.com/repos/irfansharif/how-late/issues{/number}","pulls_url":"https://api.github.com/repos/irfansharif/how-late/pulls{/number}","milestones_url":"https://api.github.com/repos/irfansharif/how-late/milestones{/number}","notifications_url":"https://api.github.com/repos/irfansharif/how-late/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/irfansharif/how-late/labels{/name}","releases_url":"https://api.github.com/repos/irfansharif/how-late/releases{/id}","created_at":"2015-08-20T01:29:27Z","updated_at":"2015-08-24T03:53:48Z","pushed_at":"2015-08-28T03:03:24Z","git_url":"git://github.com/irfansharif/how-late.git","ssh_url":"git@github.com:irfansharif/how-late.git","clone_url":"https://github.com/irfansharif/how-late.git","svn_url":"https://github.com/irfansharif/how-late","homepage":"","size":186,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/irfansharif/how-late/pulls/2"},"html":{"href":"https://github.com/irfansharif/how-late/pull/2"},"issue":{"href":"https://api.github.com/repos/irfansharif/how-late/issues/2"},"comments":{"href":"https://api.github.com/repos/irfansharif/how-late/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/irfansharif/how-late/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/irfansharif/how-late/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/irfansharif/how-late/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/irfansharif/how-late/statuses/fa17a3b67304b7e1a4520c4c64b530756d0c88e4"}}}}