{"action":"created","comment":{"url":"https://api.github.com/repos/gmailgem/gmail/pulls/comments/52131902","id":52131902,"diff_hunk":"@@ -109,6 +109,10 @@ gmail = Gmail.connect(:xoauth, \"email@domain.com\",\n   :consumer_secret => 'CONSUMER_SECRET'\n )\n ```\n+\n+```ruby\n+gmail = Gmail.connect(:xoauth2, \"email@domain.com\", 'ACCESS_TOKEN')","path":"README.md","position":6,"original_position":6,"commit_id":"9708ca8f7ae2a4098ee63d0a961f2036c1d8ed25","original_commit_id":"9708ca8f7ae2a4098ee63d0a961f2036c1d8ed25","user":{"login":"bootstraponline","id":1173057,"avatar_url":"https://avatars.githubusercontent.com/u/1173057?v=3","gravatar_id":"","url":"https://api.github.com/users/bootstraponline","html_url":"https://github.com/bootstraponline","followers_url":"https://api.github.com/users/bootstraponline/followers","following_url":"https://api.github.com/users/bootstraponline/following{/other_user}","gists_url":"https://api.github.com/users/bootstraponline/gists{/gist_id}","starred_url":"https://api.github.com/users/bootstraponline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bootstraponline/subscriptions","organizations_url":"https://api.github.com/users/bootstraponline/orgs","repos_url":"https://api.github.com/users/bootstraponline/repos","events_url":"https://api.github.com/users/bootstraponline/events{/privacy}","received_events_url":"https://api.github.com/users/bootstraponline/received_events","type":"User","site_admin":false},"body":"The email should be in single quotes to be consistent.","created_at":"2016-02-08T03:47:48Z","updated_at":"2016-02-08T03:47:48Z","html_url":"https://github.com/gmailgem/gmail/pull/216#discussion_r52131902","pull_request_url":"https://api.github.com/repos/gmailgem/gmail/pulls/216","_links":{"self":{"href":"https://api.github.com/repos/gmailgem/gmail/pulls/comments/52131902"},"html":{"href":"https://github.com/gmailgem/gmail/pull/216#discussion_r52131902"},"pull_request":{"href":"https://api.github.com/repos/gmailgem/gmail/pulls/216"}}},"pull_request":{"url":"https://api.github.com/repos/gmailgem/gmail/pulls/216","id":58566850,"html_url":"https://github.com/gmailgem/gmail/pull/216","diff_url":"https://github.com/gmailgem/gmail/pull/216.diff","patch_url":"https://github.com/gmailgem/gmail/pull/216.patch","issue_url":"https://api.github.com/repos/gmailgem/gmail/issues/216","number":216,"state":"open","locked":false,"title":"Add usage example for xoauth2","user":{"login":"jawwad","id":202240,"avatar_url":"https://avatars.githubusercontent.com/u/202240?v=3","gravatar_id":"","url":"https://api.github.com/users/jawwad","html_url":"https://github.com/jawwad","followers_url":"https://api.github.com/users/jawwad/followers","following_url":"https://api.github.com/users/jawwad/following{/other_user}","gists_url":"https://api.github.com/users/jawwad/gists{/gist_id}","starred_url":"https://api.github.com/users/jawwad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jawwad/subscriptions","organizations_url":"https://api.github.com/users/jawwad/orgs","repos_url":"https://api.github.com/users/jawwad/repos","events_url":"https://api.github.com/users/jawwad/events{/privacy}","received_events_url":"https://api.github.com/users/jawwad/received_events","type":"User","site_admin":false},"body":"This PR adds a usage example for using :xoauth2","created_at":"2016-02-08T02:51:09Z","updated_at":"2016-02-08T03:47:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"80571ddc9ce072a3d7e130f402ce952601d68617","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gmailgem/gmail/pulls/216/commits","review_comments_url":"https://api.github.com/repos/gmailgem/gmail/pulls/216/comments","review_comment_url":"https://api.github.com/repos/gmailgem/gmail/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gmailgem/gmail/issues/216/comments","statuses_url":"https://api.github.com/repos/gmailgem/gmail/statuses/9708ca8f7ae2a4098ee63d0a961f2036c1d8ed25","head":{"label":"jawwad:patch-1","ref":"patch-1","sha":"9708ca8f7ae2a4098ee63d0a961f2036c1d8ed25","user":{"login":"jawwad","id":202240,"avatar_url":"https://avatars.githubusercontent.com/u/202240?v=3","gravatar_id":"","url":"https://api.github.com/users/jawwad","html_url":"https://github.com/jawwad","followers_url":"https://api.github.com/users/jawwad/followers","following_url":"https://api.github.com/users/jawwad/following{/other_user}","gists_url":"https://api.github.com/users/jawwad/gists{/gist_id}","starred_url":"https://api.github.com/users/jawwad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jawwad/subscriptions","organizations_url":"https://api.github.com/users/jawwad/orgs","repos_url":"https://api.github.com/users/jawwad/repos","events_url":"https://api.github.com/users/jawwad/events{/privacy}","received_events_url":"https://api.github.com/users/jawwad/received_events","type":"User","site_admin":false},"repo":{"id":51276563,"name":"gmail","full_name":"jawwad/gmail","owner":{"login":"jawwad","id":202240,"avatar_url":"https://avatars.githubusercontent.com/u/202240?v=3","gravatar_id":"","url":"https://api.github.com/users/jawwad","html_url":"https://github.com/jawwad","followers_url":"https://api.github.com/users/jawwad/followers","following_url":"https://api.github.com/users/jawwad/following{/other_user}","gists_url":"https://api.github.com/users/jawwad/gists{/gist_id}","starred_url":"https://api.github.com/users/jawwad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jawwad/subscriptions","organizations_url":"https://api.github.com/users/jawwad/orgs","repos_url":"https://api.github.com/users/jawwad/repos","events_url":"https://api.github.com/users/jawwad/events{/privacy}","received_events_url":"https://api.github.com/users/jawwad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jawwad/gmail","description":"A Rubyesque interface to Gmail, with all the tools you'll need.","fork":true,"url":"https://api.github.com/repos/jawwad/gmail","forks_url":"https://api.github.com/repos/jawwad/gmail/forks","keys_url":"https://api.github.com/repos/jawwad/gmail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jawwad/gmail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jawwad/gmail/teams","hooks_url":"https://api.github.com/repos/jawwad/gmail/hooks","issue_events_url":"https://api.github.com/repos/jawwad/gmail/issues/events{/number}","events_url":"https://api.github.com/repos/jawwad/gmail/events","assignees_url":"https://api.github.com/repos/jawwad/gmail/assignees{/user}","branches_url":"https://api.github.com/repos/jawwad/gmail/branches{/branch}","tags_url":"https://api.github.com/repos/jawwad/gmail/tags","blobs_url":"https://api.github.com/repos/jawwad/gmail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jawwad/gmail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jawwad/gmail/git/refs{/sha}","trees_url":"https://api.github.com/repos/jawwad/gmail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jawwad/gmail/statuses/{sha}","languages_url":"https://api.github.com/repos/jawwad/gmail/languages","stargazers_url":"https://api.github.com/repos/jawwad/gmail/stargazers","contributors_url":"https://api.github.com/repos/jawwad/gmail/contributors","subscribers_url":"https://api.github.com/repos/jawwad/gmail/subscribers","subscription_url":"https://api.github.com/repos/jawwad/gmail/subscription","commits_url":"https://api.github.com/repos/jawwad/gmail/commits{/sha}","git_commits_url":"https://api.github.com/repos/jawwad/gmail/git/commits{/sha}","comments_url":"https://api.github.com/repos/jawwad/gmail/comments{/number}","issue_comment_url":"https://api.github.com/repos/jawwad/gmail/issues/comments{/number}","contents_url":"https://api.github.com/repos/jawwad/gmail/contents/{+path}","compare_url":"https://api.github.com/repos/jawwad/gmail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jawwad/gmail/merges","archive_url":"https://api.github.com/repos/jawwad/gmail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jawwad/gmail/downloads","issues_url":"https://api.github.com/repos/jawwad/gmail/issues{/number}","pulls_url":"https://api.github.com/repos/jawwad/gmail/pulls{/number}","milestones_url":"https://api.github.com/repos/jawwad/gmail/milestones{/number}","notifications_url":"https://api.github.com/repos/jawwad/gmail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jawwad/gmail/labels{/name}","releases_url":"https://api.github.com/repos/jawwad/gmail/releases{/id}","deployments_url":"https://api.github.com/repos/jawwad/gmail/deployments","created_at":"2016-02-08T02:48:52Z","updated_at":"2016-02-08T02:48:53Z","pushed_at":"2016-02-08T02:50:28Z","git_url":"git://github.com/jawwad/gmail.git","ssh_url":"git@github.com:jawwad/gmail.git","clone_url":"https://github.com/jawwad/gmail.git","svn_url":"https://github.com/jawwad/gmail","homepage":"","size":365,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gmailgem:master","ref":"master","sha":"c76883fe45df0ff1fa173f04ce8762400dd4f18f","user":{"login":"gmailgem","id":10545579,"avatar_url":"https://avatars.githubusercontent.com/u/10545579?v=3","gravatar_id":"","url":"https://api.github.com/users/gmailgem","html_url":"https://github.com/gmailgem","followers_url":"https://api.github.com/users/gmailgem/followers","following_url":"https://api.github.com/users/gmailgem/following{/other_user}","gists_url":"https://api.github.com/users/gmailgem/gists{/gist_id}","starred_url":"https://api.github.com/users/gmailgem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmailgem/subscriptions","organizations_url":"https://api.github.com/users/gmailgem/orgs","repos_url":"https://api.github.com/users/gmailgem/repos","events_url":"https://api.github.com/users/gmailgem/events{/privacy}","received_events_url":"https://api.github.com/users/gmailgem/received_events","type":"Organization","site_admin":false},"repo":{"id":29371025,"name":"gmail","full_name":"gmailgem/gmail","owner":{"login":"gmailgem","id":10545579,"avatar_url":"https://avatars.githubusercontent.com/u/10545579?v=3","gravatar_id":"","url":"https://api.github.com/users/gmailgem","html_url":"https://github.com/gmailgem","followers_url":"https://api.github.com/users/gmailgem/followers","following_url":"https://api.github.com/users/gmailgem/following{/other_user}","gists_url":"https://api.github.com/users/gmailgem/gists{/gist_id}","starred_url":"https://api.github.com/users/gmailgem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmailgem/subscriptions","organizations_url":"https://api.github.com/users/gmailgem/orgs","repos_url":"https://api.github.com/users/gmailgem/repos","events_url":"https://api.github.com/users/gmailgem/events{/privacy}","received_events_url":"https://api.github.com/users/gmailgem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gmailgem/gmail","description":"A Rubyesque interface to Gmail, with all the tools you'll need.","fork":false,"url":"https://api.github.com/repos/gmailgem/gmail","forks_url":"https://api.github.com/repos/gmailgem/gmail/forks","keys_url":"https://api.github.com/repos/gmailgem/gmail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gmailgem/gmail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gmailgem/gmail/teams","hooks_url":"https://api.github.com/repos/gmailgem/gmail/hooks","issue_events_url":"https://api.github.com/repos/gmailgem/gmail/issues/events{/number}","events_url":"https://api.github.com/repos/gmailgem/gmail/events","assignees_url":"https://api.github.com/repos/gmailgem/gmail/assignees{/user}","branches_url":"https://api.github.com/repos/gmailgem/gmail/branches{/branch}","tags_url":"https://api.github.com/repos/gmailgem/gmail/tags","blobs_url":"https://api.github.com/repos/gmailgem/gmail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gmailgem/gmail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gmailgem/gmail/git/refs{/sha}","trees_url":"https://api.github.com/repos/gmailgem/gmail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gmailgem/gmail/statuses/{sha}","languages_url":"https://api.github.com/repos/gmailgem/gmail/languages","stargazers_url":"https://api.github.com/repos/gmailgem/gmail/stargazers","contributors_url":"https://api.github.com/repos/gmailgem/gmail/contributors","subscribers_url":"https://api.github.com/repos/gmailgem/gmail/subscribers","subscription_url":"https://api.github.com/repos/gmailgem/gmail/subscription","commits_url":"https://api.github.com/repos/gmailgem/gmail/commits{/sha}","git_commits_url":"https://api.github.com/repos/gmailgem/gmail/git/commits{/sha}","comments_url":"https://api.github.com/repos/gmailgem/gmail/comments{/number}","issue_comment_url":"https://api.github.com/repos/gmailgem/gmail/issues/comments{/number}","contents_url":"https://api.github.com/repos/gmailgem/gmail/contents/{+path}","compare_url":"https://api.github.com/repos/gmailgem/gmail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gmailgem/gmail/merges","archive_url":"https://api.github.com/repos/gmailgem/gmail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gmailgem/gmail/downloads","issues_url":"https://api.github.com/repos/gmailgem/gmail/issues{/number}","pulls_url":"https://api.github.com/repos/gmailgem/gmail/pulls{/number}","milestones_url":"https://api.github.com/repos/gmailgem/gmail/milestones{/number}","notifications_url":"https://api.github.com/repos/gmailgem/gmail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gmailgem/gmail/labels{/name}","releases_url":"https://api.github.com/repos/gmailgem/gmail/releases{/id}","deployments_url":"https://api.github.com/repos/gmailgem/gmail/deployments","created_at":"2015-01-16T22:34:54Z","updated_at":"2016-02-05T15:40:06Z","pushed_at":"2016-02-08T02:51:09Z","git_url":"git://github.com/gmailgem/gmail.git","ssh_url":"git@github.com:gmailgem/gmail.git","clone_url":"https://github.com/gmailgem/gmail.git","svn_url":"https://github.com/gmailgem/gmail","homepage":"","size":380,"stargazers_count":157,"watchers_count":157,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":28,"forks":36,"open_issues":28,"watchers":157,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gmailgem/gmail/pulls/216"},"html":{"href":"https://github.com/gmailgem/gmail/pull/216"},"issue":{"href":"https://api.github.com/repos/gmailgem/gmail/issues/216"},"comments":{"href":"https://api.github.com/repos/gmailgem/gmail/issues/216/comments"},"review_comments":{"href":"https://api.github.com/repos/gmailgem/gmail/pulls/216/comments"},"review_comment":{"href":"https://api.github.com/repos/gmailgem/gmail/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gmailgem/gmail/pulls/216/commits"},"statuses":{"href":"https://api.github.com/repos/gmailgem/gmail/statuses/9708ca8f7ae2a4098ee63d0a961f2036c1d8ed25"}}}}