{"action":"created","comment":{"url":"https://api.github.com/repos/gsuitedevs/python-samples/pulls/comments/205149488","pull_request_review_id":140361947,"id":205149488,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTE0OTQ4OA==","diff_hunk":"@@ -14,33 +14,45 @@\n \n # [START admin_sdk_directory_quickstart]\n \"\"\"\n-Shows basic usage of the Admin SDK Directory API. Lists of first 10 users in the\n-domain.\n+Shows basic usage of the Admin SDK Directory API. Lists of first 10 users in\n+the domain.\n \"\"\"\n from __future__ import print_function\n from apiclient.discovery import build\n from httplib2 import Http\n from oauth2client import file, client, tools\n \n-# Setup the Admin SDK Directory API\n+# If modifying these scopes, delete the file token.json.\n SCOPES = 'https://www.googleapis.com/auth/admin.directory.user'\n-store = file.Storage('token.json')\n-creds = store.get()\n-if not creds or creds.invalid:\n-    flow = client.flow_from_clientsecrets('credentials.json', SCOPES)\n-    creds = tools.run_flow(flow, store)\n-service = build('admin', 'directory_v1', http=creds.authorize(Http()))\n-\n-# Call the Admin SDK Directory API\n-print('Getting the first 10 users in the domain')\n-results = service.users().list(customer='my_customer', maxResults=10,\n-                               orderBy='email').execute()\n-users = results.get('users', [])\n-\n-if not users:\n-    print('No users in the domain.')\n-else:\n-    print('Users:')\n-    for user in users:\n-        print('{0} ({1})'.format(user['primaryEmail'], user['name']['fullName']))\n+\n+","path":"admin_sdk/directory/quickstart.py","position":37,"original_position":37,"commit_id":"fa36ca4e0636f8b13b39bd3b5df8b4ac423ee598","original_commit_id":"fa36ca4e0636f8b13b39bd3b5df8b4ac423ee598","user":{"login":"erickoledadevrel","id":991384,"node_id":"MDQ6VXNlcjk5MTM4NA==","avatar_url":"https://avatars0.githubusercontent.com/u/991384?v=4","gravatar_id":"","url":"https://api.github.com/users/erickoledadevrel","html_url":"https://github.com/erickoledadevrel","followers_url":"https://api.github.com/users/erickoledadevrel/followers","following_url":"https://api.github.com/users/erickoledadevrel/following{/other_user}","gists_url":"https://api.github.com/users/erickoledadevrel/gists{/gist_id}","starred_url":"https://api.github.com/users/erickoledadevrel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erickoledadevrel/subscriptions","organizations_url":"https://api.github.com/users/erickoledadevrel/orgs","repos_url":"https://api.github.com/users/erickoledadevrel/repos","events_url":"https://api.github.com/users/erickoledadevrel/events{/privacy}","received_events_url":"https://api.github.com/users/erickoledadevrel/received_events","type":"User","site_admin":false},"body":"Ditto","created_at":"2018-07-25T15:12:51Z","updated_at":"2018-07-25T15:12:51Z","html_url":"https://github.com/gsuitedevs/python-samples/pull/22#discussion_r205149488","pull_request_url":"https://api.github.com/repos/gsuitedevs/python-samples/pulls/22","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/gsuitedevs/python-samples/pulls/comments/205149488"},"html":{"href":"https://github.com/gsuitedevs/python-samples/pull/22#discussion_r205149488"},"pull_request":{"href":"https://api.github.com/repos/gsuitedevs/python-samples/pulls/22"}},"in_reply_to_id":204986655},"pull_request":{"url":"https://api.github.com/repos/gsuitedevs/python-samples/pulls/22","id":203635319,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzNjM1MzE5","html_url":"https://github.com/gsuitedevs/python-samples/pull/22","diff_url":"https://github.com/gsuitedevs/python-samples/pull/22.diff","patch_url":"https://github.com/gsuitedevs/python-samples/pull/22.patch","issue_url":"https://api.github.com/repos/gsuitedevs/python-samples/issues/22","number":22,"state":"open","locked":false,"title":"Add a main function to all Quickstarts.","user":{"login":"erickoledadevrel","id":991384,"node_id":"MDQ6VXNlcjk5MTM4NA==","avatar_url":"https://avatars0.githubusercontent.com/u/991384?v=4","gravatar_id":"","url":"https://api.github.com/users/erickoledadevrel","html_url":"https://github.com/erickoledadevrel","followers_url":"https://api.github.com/users/erickoledadevrel/followers","following_url":"https://api.github.com/users/erickoledadevrel/following{/other_user}","gists_url":"https://api.github.com/users/erickoledadevrel/gists{/gist_id}","starred_url":"https://api.github.com/users/erickoledadevrel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erickoledadevrel/subscriptions","organizations_url":"https://api.github.com/users/erickoledadevrel/orgs","repos_url":"https://api.github.com/users/erickoledadevrel/repos","events_url":"https://api.github.com/users/erickoledadevrel/events{/privacy}","received_events_url":"https://api.github.com/users/erickoledadevrel/received_events","type":"User","site_admin":false},"body":"Modified the Admin SDK quickstarts first. Once the overall pattern is approved, will replicate with the others.\r\n\r\nFixes #5 ","created_at":"2018-07-24T19:49:03Z","updated_at":"2018-07-25T15:12:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6363629387550dd43d4607aea54bae0f41e6309","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gsuitedevs/python-samples/pulls/22/commits","review_comments_url":"https://api.github.com/repos/gsuitedevs/python-samples/pulls/22/comments","review_comment_url":"https://api.github.com/repos/gsuitedevs/python-samples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gsuitedevs/python-samples/issues/22/comments","statuses_url":"https://api.github.com/repos/gsuitedevs/python-samples/statuses/fa36ca4e0636f8b13b39bd3b5df8b4ac423ee598","head":{"label":"gsuitedevs:main","ref":"main","sha":"fa36ca4e0636f8b13b39bd3b5df8b4ac423ee598","user":{"login":"gsuitedevs","id":3708359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDgzNTk=","avatar_url":"https://avatars1.githubusercontent.com/u/3708359?v=4","gravatar_id":"","url":"https://api.github.com/users/gsuitedevs","html_url":"https://github.com/gsuitedevs","followers_url":"https://api.github.com/users/gsuitedevs/followers","following_url":"https://api.github.com/users/gsuitedevs/following{/other_user}","gists_url":"https://api.github.com/users/gsuitedevs/gists{/gist_id}","starred_url":"https://api.github.com/users/gsuitedevs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsuitedevs/subscriptions","organizations_url":"https://api.github.com/users/gsuitedevs/orgs","repos_url":"https://api.github.com/users/gsuitedevs/repos","events_url":"https://api.github.com/users/gsuitedevs/events{/privacy}","received_events_url":"https://api.github.com/users/gsuitedevs/received_events","type":"Organization","site_admin":false},"repo":{"id":14163863,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE2Mzg2Mw==","name":"python-samples","full_name":"gsuitedevs/python-samples","owner":{"login":"gsuitedevs","id":3708359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDgzNTk=","avatar_url":"https://avatars1.githubusercontent.com/u/3708359?v=4","gravatar_id":"","url":"https://api.github.com/users/gsuitedevs","html_url":"https://github.com/gsuitedevs","followers_url":"https://api.github.com/users/gsuitedevs/followers","following_url":"https://api.github.com/users/gsuitedevs/following{/other_user}","gists_url":"https://api.github.com/users/gsuitedevs/gists{/gist_id}","starred_url":"https://api.github.com/users/gsuitedevs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsuitedevs/subscriptions","organizations_url":"https://api.github.com/users/gsuitedevs/orgs","repos_url":"https://api.github.com/users/gsuitedevs/repos","events_url":"https://api.github.com/users/gsuitedevs/events{/privacy}","received_events_url":"https://api.github.com/users/gsuitedevs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gsuitedevs/python-samples","description":"Python samples for G Suite products.","fork":false,"url":"https://api.github.com/repos/gsuitedevs/python-samples","forks_url":"https://api.github.com/repos/gsuitedevs/python-samples/forks","keys_url":"https://api.github.com/repos/gsuitedevs/python-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gsuitedevs/python-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gsuitedevs/python-samples/teams","hooks_url":"https://api.github.com/repos/gsuitedevs/python-samples/hooks","issue_events_url":"https://api.github.com/repos/gsuitedevs/python-samples/issues/events{/number}","events_url":"https://api.github.com/repos/gsuitedevs/python-samples/events","assignees_url":"https://api.github.com/repos/gsuitedevs/python-samples/assignees{/user}","branches_url":"https://api.github.com/repos/gsuitedevs/python-samples/branches{/branch}","tags_url":"https://api.github.com/repos/gsuitedevs/python-samples/tags","blobs_url":"https://api.github.com/repos/gsuitedevs/python-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gsuitedevs/python-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gsuitedevs/python-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/gsuitedevs/python-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gsuitedevs/python-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/gsuitedevs/python-samples/languages","stargazers_url":"https://api.github.com/repos/gsuitedevs/python-samples/stargazers","contributors_url":"https://api.github.com/repos/gsuitedevs/python-samples/contributors","subscribers_url":"https://api.github.com/repos/gsuitedevs/python-samples/subscribers","subscription_url":"https://api.github.com/repos/gsuitedevs/python-samples/subscription","commits_url":"https://api.github.com/repos/gsuitedevs/python-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/gsuitedevs/python-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/gsuitedevs/python-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/gsuitedevs/python-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/gsuitedevs/python-samples/contents/{+path}","compare_url":"https://api.github.com/repos/gsuitedevs/python-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gsuitedevs/python-samples/merges","archive_url":"https://api.github.com/repos/gsuitedevs/python-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gsuitedevs/python-samples/downloads","issues_url":"https://api.github.com/repos/gsuitedevs/python-samples/issues{/number}","pulls_url":"https://api.github.com/repos/gsuitedevs/python-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/gsuitedevs/python-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/gsuitedevs/python-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gsuitedevs/python-samples/labels{/name}","releases_url":"https://api.github.com/repos/gsuitedevs/python-samples/releases{/id}","deployments_url":"https://api.github.com/repos/gsuitedevs/python-samples/deployments","created_at":"2013-11-06T05:31:01Z","updated_at":"2018-07-25T01:50:21Z","pushed_at":"2018-07-24T19:49:04Z","git_url":"git://github.com/gsuitedevs/python-samples.git","ssh_url":"git@github.com:gsuitedevs/python-samples.git","clone_url":"https://github.com/gsuitedevs/python-samples.git","svn_url":"https://github.com/gsuitedevs/python-samples","homepage":"","size":9077,"stargazers_count":103,"watchers_count":103,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":55,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":55,"open_issues":6,"watchers":103,"default_branch":"master"}},"base":{"label":"gsuitedevs:master","ref":"master","sha":"f9cf39016e0d25ca4c4a2885206d3f73886f6286","user":{"login":"gsuitedevs","id":3708359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDgzNTk=","avatar_url":"https://avatars1.githubusercontent.com/u/3708359?v=4","gravatar_id":"","url":"https://api.github.com/users/gsuitedevs","html_url":"https://github.com/gsuitedevs","followers_url":"https://api.github.com/users/gsuitedevs/followers","following_url":"https://api.github.com/users/gsuitedevs/following{/other_user}","gists_url":"https://api.github.com/users/gsuitedevs/gists{/gist_id}","starred_url":"https://api.github.com/users/gsuitedevs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsuitedevs/subscriptions","organizations_url":"https://api.github.com/users/gsuitedevs/orgs","repos_url":"https://api.github.com/users/gsuitedevs/repos","events_url":"https://api.github.com/users/gsuitedevs/events{/privacy}","received_events_url":"https://api.github.com/users/gsuitedevs/received_events","type":"Organization","site_admin":false},"repo":{"id":14163863,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE2Mzg2Mw==","name":"python-samples","full_name":"gsuitedevs/python-samples","owner":{"login":"gsuitedevs","id":3708359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDgzNTk=","avatar_url":"https://avatars1.githubusercontent.com/u/3708359?v=4","gravatar_id":"","url":"https://api.github.com/users/gsuitedevs","html_url":"https://github.com/gsuitedevs","followers_url":"https://api.github.com/users/gsuitedevs/followers","following_url":"https://api.github.com/users/gsuitedevs/following{/other_user}","gists_url":"https://api.github.com/users/gsuitedevs/gists{/gist_id}","starred_url":"https://api.github.com/users/gsuitedevs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsuitedevs/subscriptions","organizations_url":"https://api.github.com/users/gsuitedevs/orgs","repos_url":"https://api.github.com/users/gsuitedevs/repos","events_url":"https://api.github.com/users/gsuitedevs/events{/privacy}","received_events_url":"https://api.github.com/users/gsuitedevs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gsuitedevs/python-samples","description":"Python samples for G Suite products.","fork":false,"url":"https://api.github.com/repos/gsuitedevs/python-samples","forks_url":"https://api.github.com/repos/gsuitedevs/python-samples/forks","keys_url":"https://api.github.com/repos/gsuitedevs/python-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gsuitedevs/python-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gsuitedevs/python-samples/teams","hooks_url":"https://api.github.com/repos/gsuitedevs/python-samples/hooks","issue_events_url":"https://api.github.com/repos/gsuitedevs/python-samples/issues/events{/number}","events_url":"https://api.github.com/repos/gsuitedevs/python-samples/events","assignees_url":"https://api.github.com/repos/gsuitedevs/python-samples/assignees{/user}","branches_url":"https://api.github.com/repos/gsuitedevs/python-samples/branches{/branch}","tags_url":"https://api.github.com/repos/gsuitedevs/python-samples/tags","blobs_url":"https://api.github.com/repos/gsuitedevs/python-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gsuitedevs/python-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gsuitedevs/python-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/gsuitedevs/python-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gsuitedevs/python-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/gsuitedevs/python-samples/languages","stargazers_url":"https://api.github.com/repos/gsuitedevs/python-samples/stargazers","contributors_url":"https://api.github.com/repos/gsuitedevs/python-samples/contributors","subscribers_url":"https://api.github.com/repos/gsuitedevs/python-samples/subscribers","subscription_url":"https://api.github.com/repos/gsuitedevs/python-samples/subscription","commits_url":"https://api.github.com/repos/gsuitedevs/python-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/gsuitedevs/python-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/gsuitedevs/python-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/gsuitedevs/python-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/gsuitedevs/python-samples/contents/{+path}","compare_url":"https://api.github.com/repos/gsuitedevs/python-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gsuitedevs/python-samples/merges","archive_url":"https://api.github.com/repos/gsuitedevs/python-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gsuitedevs/python-samples/downloads","issues_url":"https://api.github.com/repos/gsuitedevs/python-samples/issues{/number}","pulls_url":"https://api.github.com/repos/gsuitedevs/python-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/gsuitedevs/python-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/gsuitedevs/python-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gsuitedevs/python-samples/labels{/name}","releases_url":"https://api.github.com/repos/gsuitedevs/python-samples/releases{/id}","deployments_url":"https://api.github.com/repos/gsuitedevs/python-samples/deployments","created_at":"2013-11-06T05:31:01Z","updated_at":"2018-07-25T01:50:21Z","pushed_at":"2018-07-24T19:49:04Z","git_url":"git://github.com/gsuitedevs/python-samples.git","ssh_url":"git@github.com:gsuitedevs/python-samples.git","clone_url":"https://github.com/gsuitedevs/python-samples.git","svn_url":"https://github.com/gsuitedevs/python-samples","homepage":"","size":9077,"stargazers_count":103,"watchers_count":103,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":55,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":55,"open_issues":6,"watchers":103,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gsuitedevs/python-samples/pulls/22"},"html":{"href":"https://github.com/gsuitedevs/python-samples/pull/22"},"issue":{"href":"https://api.github.com/repos/gsuitedevs/python-samples/issues/22"},"comments":{"href":"https://api.github.com/repos/gsuitedevs/python-samples/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/gsuitedevs/python-samples/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/gsuitedevs/python-samples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gsuitedevs/python-samples/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/gsuitedevs/python-samples/statuses/fa36ca4e0636f8b13b39bd3b5df8b4ac423ee598"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"erickoledadevrel"}}