GitHub PullRequestReviewCommentEvent at 2014-12-16 17:56:21
Repository: management-tools
Actor: samtstern
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/playgameservices/management-tools/pulls/comments/21917354","id":21917354,"diff_hunk":"@@ -0,0 +1,867 @@\n+#!/usr/bin/python\n+# -*- coding: utf-8 -*-\n+#\n+# Copyright 2014 Google Inc. All Rights Reserved.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+# http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+\"\"\"Command line sample for configuring play-games.\n+\n+Configuring web based authentication refer to:\n+https://developers.google.com/api-client-library/python/guide/aaa_client_secrets\n+\n+\n+Usage:\n+  Listing achievements:\n+  python games-config.py achievement list <appId> --outcsv ach_data.csv\n+\n+  Updating achievements:\n+  python games-config.py achievement update  --incsv ach_data.csv\n+\n+\n+Help by running\n+$ python games-config.py --help\n+\n+Debugging\n+$ python games-config.py --logging_level=DEBUG\n+\n+\"\"\"\n+import argparse\n+import csv\n+import httplib\n+import logging\n+import random\n+import sys\n+import time\n+\n+from apiclient import errors\n+from apiclient.discovery import build\n+from apiclient.errors import HttpError\n+from apiclient.http import MediaFileUpload\n+import httplib2\n+from oauth2client import tools\n+from oauth2client.client import flow_from_clientsecrets\n+from oauth2client.client import SignedJwtAssertionCredentials\n+from oauth2client.file import Storage\n+from oauth2client.tools import run_flow\n+import writer\n+\n+# OAUTH2 client information.  This file can be downloaded\n+#  from the play games console.\n+# It is not needed if you are using a service account.\n+CLIENT_SECRETS = 'client_secrets.json'\n+\n+# Local storage of the current oauth token.\n+OAUTH2_STORAGE = 'oauth2.dat'\n+\n+# the scope needed to access this API.\n+SCOPE = 'https://www.googleapis.com/auth/androidpublisher'\n+\n+logging.basicConfig()\n+logger = logging.getLogger(__name__)\n+\n+# Maximum number of times to retry before giving up.\n+MAX_RETRIES = 10\n+\n+# Always retry when these exceptions are raised.\n+RETRIABLE_EXCEPTIONS = (httplib2.HttpLib2Error, IOError, httplib.NotConnected,\n+                        httplib.IncompleteRead, httplib.ImproperConnectionState,\n+                        httplib.CannotSendRequest, httplib.CannotSendHeader,\n+                        httplib.ResponseNotReady, httplib.BadStatusLine)\n+\n+# Always retry when an apiclient.errors.HttpError with one of these status\n+# codes is raised.\n+RETRIABLE_STATUS_CODES = [500, 502, 503, 504]\n+\n+\n+def main(argv):\n+  \"\"\"Main program for demonstrating the play games configuration API.","path":"publishing-sample/games-config.py","position":88,"original_position":88,"commit_id":"6f66e39ca51ef97cbe9efb55a352d6716d9a2555","original_commit_id":"572c56bfd988897d5b8b0c9a3e5d84f0989f7873","user":{"login":"samtstern","id":8466666,"avatar_url":"https://avatars.githubusercontent.com/u/8466666?v=3","gravatar_id":"","url":"https://api.github.com/users/samtstern","html_url":"https://github.com/samtstern","followers_url":"https://api.github.com/users/samtstern/followers","following_url":"https://api.github.com/users/samtstern/following{/other_user}","gists_url":"https://api.github.com/users/samtstern/gists{/gist_id}","starred_url":"https://api.github.com/users/samtstern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samtstern/subscriptions","organizations_url":"https://api.github.com/users/samtstern/orgs","repos_url":"https://api.github.com/users/samtstern/repos","events_url":"https://api.github.com/users/samtstern/events{/privacy}","received_events_url":"https://api.github.com/users/samtstern/received_events","type":"User","site_admin":false},"body":"Now called publishing API.  Check throughout.","created_at":"2014-12-16T17:56:21Z","updated_at":"2014-12-16T17:56:21Z","html_url":"https://github.com/playgameservices/management-tools/pull/13#discussion_r21917354","pull_request_url":"https://api.github.com/repos/playgameservices/management-tools/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/playgameservices/management-tools/pulls/comments/21917354"},"html":{"href":"https://github.com/playgameservices/management-tools/pull/13#discussion_r21917354"},"pull_request":{"href":"https://api.github.com/repos/playgameservices/management-tools/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/playgameservices/management-tools/pulls/13","id":26164533,"html_url":"https://github.com/playgameservices/management-tools/pull/13","diff_url":"https://github.com/playgameservices/management-tools/pull/13.diff","patch_url":"https://github.com/playgameservices/management-tools/pull/13.patch","issue_url":"https://api.github.com/repos/playgameservices/management-tools/issues/13","number":13,"state":"open","locked":false,"title":"Adding configuration samples using the publishing api.","user":{"login":"claywilkinson","id":8752378,"avatar_url":"https://avatars.githubusercontent.com/u/8752378?v=3","gravatar_id":"","url":"https://api.github.com/users/claywilkinson","html_url":"https://github.com/claywilkinson","followers_url":"https://api.github.com/users/claywilkinson/followers","following_url":"https://api.github.com/users/claywilkinson/following{/other_user}","gists_url":"https://api.github.com/users/claywilkinson/gists{/gist_id}","starred_url":"https://api.github.com/users/claywilkinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claywilkinson/subscriptions","organizations_url":"https://api.github.com/users/claywilkinson/orgs","repos_url":"https://api.github.com/users/claywilkinson/repos","events_url":"https://api.github.com/users/claywilkinson/events{/privacy}","received_events_url":"https://api.github.com/users/claywilkinson/received_events","type":"User","site_admin":false},"body":"Python command line sample for the game service publishing api.","created_at":"2014-12-16T17:35:22Z","updated_at":"2014-12-16T17:56:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7d1e4e24dabf1972b76696c9c3eeb63b76cd8e6d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/playgameservices/management-tools/pulls/13/commits","review_comments_url":"https://api.github.com/repos/playgameservices/management-tools/pulls/13/comments","review_comment_url":"https://api.github.com/repos/playgameservices/management-tools/pulls/comments/{number}","comments_url":"https://api.github.com/repos/playgameservices/management-tools/issues/13/comments","statuses_url":"https://api.github.com/repos/playgameservices/management-tools/statuses/6f66e39ca51ef97cbe9efb55a352d6716d9a2555","head":{"label":"claywilkinson:master","ref":"master","sha":"6f66e39ca51ef97cbe9efb55a352d6716d9a2555","user":{"login":"claywilkinson","id":8752378,"avatar_url":"https://avatars.githubusercontent.com/u/8752378?v=3","gravatar_id":"","url":"https://api.github.com/users/claywilkinson","html_url":"https://github.com/claywilkinson","followers_url":"https://api.github.com/users/claywilkinson/followers","following_url":"https://api.github.com/users/claywilkinson/following{/other_user}","gists_url":"https://api.github.com/users/claywilkinson/gists{/gist_id}","starred_url":"https://api.github.com/users/claywilkinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claywilkinson/subscriptions","organizations_url":"https://api.github.com/users/claywilkinson/orgs","repos_url":"https://api.github.com/users/claywilkinson/repos","events_url":"https://api.github.com/users/claywilkinson/events{/privacy}","received_events_url":"https://api.github.com/users/claywilkinson/received_events","type":"User","site_admin":false},"repo":{"id":27930561,"name":"management-tools","full_name":"claywilkinson/management-tools","owner":{"login":"claywilkinson","id":8752378,"avatar_url":"https://avatars.githubusercontent.com/u/8752378?v=3","gravatar_id":"","url":"https://api.github.com/users/claywilkinson","html_url":"https://github.com/claywilkinson","followers_url":"https://api.github.com/users/claywilkinson/followers","following_url":"https://api.github.com/users/claywilkinson/following{/other_user}","gists_url":"https://api.github.com/users/claywilkinson/gists{/gist_id}","starred_url":"https://api.github.com/users/claywilkinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claywilkinson/subscriptions","organizations_url":"https://api.github.com/users/claywilkinson/orgs","repos_url":"https://api.github.com/users/claywilkinson/repos","events_url":"https://api.github.com/users/claywilkinson/events{/privacy}","received_events_url":"https://api.github.com/users/claywilkinson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/claywilkinson/management-tools","description":"Tools for app developers to mange their Play Game services apps.","fork":true,"url":"https://api.github.com/repos/claywilkinson/management-tools","forks_url":"https://api.github.com/repos/claywilkinson/management-tools/forks","keys_url":"https://api.github.com/repos/claywilkinson/management-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/claywilkinson/management-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/claywilkinson/management-tools/teams","hooks_url":"https://api.github.com/repos/claywilkinson/management-tools/hooks","issue_events_url":"https://api.github.com/repos/claywilkinson/management-tools/issues/events{/number}","events_url":"https://api.github.com/repos/claywilkinson/management-tools/events","assignees_url":"https://api.github.com/repos/claywilkinson/management-tools/assignees{/user}","branches_url":"https://api.github.com/repos/claywilkinson/management-tools/branches{/branch}","tags_url":"https://api.github.com/repos/claywilkinson/management-tools/tags","blobs_url":"https://api.github.com/repos/claywilkinson/management-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/claywilkinson/management-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/claywilkinson/management-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/claywilkinson/management-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/claywilkinson/management-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/claywilkinson/management-tools/languages","stargazers_url":"https://api.github.com/repos/claywilkinson/management-tools/stargazers","contributors_url":"https://api.github.com/repos/claywilkinson/management-tools/contributors","subscribers_url":"https://api.github.com/repos/claywilkinson/management-tools/subscribers","subscription_url":"https://api.github.com/repos/claywilkinson/management-tools/subscription","commits_url":"https://api.github.com/repos/claywilkinson/management-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/claywilkinson/management-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/claywilkinson/management-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/claywilkinson/management-tools/issues/comments/{number}","contents_url":"https://api.github.com/repos/claywilkinson/management-tools/contents/{+path}","compare_url":"https://api.github.com/repos/claywilkinson/management-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/claywilkinson/management-tools/merges","archive_url":"https://api.github.com/repos/claywilkinson/management-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/claywilkinson/management-tools/downloads","issues_url":"https://api.github.com/repos/claywilkinson/management-tools/issues{/number}","pulls_url":"https://api.github.com/repos/claywilkinson/management-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/claywilkinson/management-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/claywilkinson/management-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/claywilkinson/management-tools/labels{/name}","releases_url":"https://api.github.com/repos/claywilkinson/management-tools/releases{/id}","created_at":"2014-12-12T17:29:41Z","updated_at":"2014-12-16T17:52:35Z","pushed_at":"2014-12-16T17:52:35Z","git_url":"git://github.com/claywilkinson/management-tools.git","ssh_url":"git@github.com:claywilkinson/management-tools.git","clone_url":"https://github.com/claywilkinson/management-tools.git","svn_url":"https://github.com/claywilkinson/management-tools","homepage":null,"size":270,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"playgameservices:master","ref":"master","sha":"daa9e280e04d4bcb9a69d61cef140d95b4993ccf","user":{"login":"playgameservices","id":4439547,"avatar_url":"https://avatars.githubusercontent.com/u/4439547?v=3","gravatar_id":"","url":"https://api.github.com/users/playgameservices","html_url":"https://github.com/playgameservices","followers_url":"https://api.github.com/users/playgameservices/followers","following_url":"https://api.github.com/users/playgameservices/following{/other_user}","gists_url":"https://api.github.com/users/playgameservices/gists{/gist_id}","starred_url":"https://api.github.com/users/playgameservices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/playgameservices/subscriptions","organizations_url":"https://api.github.com/users/playgameservices/orgs","repos_url":"https://api.github.com/users/playgameservices/repos","events_url":"https://api.github.com/users/playgameservices/events{/privacy}","received_events_url":"https://api.github.com/users/playgameservices/received_events","type":"Organization","site_admin":false},"repo":{"id":12820609,"name":"management-tools","full_name":"playgameservices/management-tools","owner":{"login":"playgameservices","id":4439547,"avatar_url":"https://avatars.githubusercontent.com/u/4439547?v=3","gravatar_id":"","url":"https://api.github.com/users/playgameservices","html_url":"https://github.com/playgameservices","followers_url":"https://api.github.com/users/playgameservices/followers","following_url":"https://api.github.com/users/playgameservices/following{/other_user}","gists_url":"https://api.github.com/users/playgameservices/gists{/gist_id}","starred_url":"https://api.github.com/users/playgameservices/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/playgameservices/subscriptions","organizations_url":"https://api.github.com/users/playgameservices/orgs","repos_url":"https://api.github.com/users/playgameservices/repos","events_url":"https://api.github.com/users/playgameservices/events{/privacy}","received_events_url":"https://api.github.com/users/playgameservices/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/playgameservices/management-tools","description":"Tools for app developers to mange their Play Game services apps.","fork":false,"url":"https://api.github.com/repos/playgameservices/management-tools","forks_url":"https://api.github.com/repos/playgameservices/management-tools/forks","keys_url":"https://api.github.com/repos/playgameservices/management-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/playgameservices/management-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/playgameservices/management-tools/teams","hooks_url":"https://api.github.com/repos/playgameservices/management-tools/hooks","issue_events_url":"https://api.github.com/repos/playgameservices/management-tools/issues/events{/number}","events_url":"https://api.github.com/repos/playgameservices/management-tools/events","assignees_url":"https://api.github.com/repos/playgameservices/management-tools/assignees{/user}","branches_url":"https://api.github.com/repos/playgameservices/management-tools/branches{/branch}","tags_url":"https://api.github.com/repos/playgameservices/management-tools/tags","blobs_url":"https://api.github.com/repos/playgameservices/management-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/playgameservices/management-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/playgameservices/management-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/playgameservices/management-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/playgameservices/management-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/playgameservices/management-tools/languages","stargazers_url":"https://api.github.com/repos/playgameservices/management-tools/stargazers","contributors_url":"https://api.github.com/repos/playgameservices/management-tools/contributors","subscribers_url":"https://api.github.com/repos/playgameservices/management-tools/subscribers","subscription_url":"https://api.github.com/repos/playgameservices/management-tools/subscription","commits_url":"https://api.github.com/repos/playgameservices/management-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/playgameservices/management-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/playgameservices/management-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/playgameservices/management-tools/issues/comments/{number}","contents_url":"https://api.github.com/repos/playgameservices/management-tools/contents/{+path}","compare_url":"https://api.github.com/repos/playgameservices/management-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/playgameservices/management-tools/merges","archive_url":"https://api.github.com/repos/playgameservices/management-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/playgameservices/management-tools/downloads","issues_url":"https://api.github.com/repos/playgameservices/management-tools/issues{/number}","pulls_url":"https://api.github.com/repos/playgameservices/management-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/playgameservices/management-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/playgameservices/management-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/playgameservices/management-tools/labels{/name}","releases_url":"https://api.github.com/repos/playgameservices/management-tools/releases{/id}","created_at":"2013-09-13T22:19:16Z","updated_at":"2014-12-15T21:24:06Z","pushed_at":"2014-10-24T20:36:36Z","git_url":"git://github.com/playgameservices/management-tools.git","ssh_url":"git@github.com:playgameservices/management-tools.git","clone_url":"https://github.com/playgameservices/management-tools.git","svn_url":"https://github.com/playgameservices/management-tools","homepage":null,"size":318,"stargazers_count":48,"watchers_count":48,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":2,"forks":21,"open_issues":2,"watchers":48,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/playgameservices/management-tools/pulls/13"},"html":{"href":"https://github.com/playgameservices/management-tools/pull/13"},"issue":{"href":"https://api.github.com/repos/playgameservices/management-tools/issues/13"},"comments":{"href":"https://api.github.com/repos/playgameservices/management-tools/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/playgameservices/management-tools/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/playgameservices/management-tools/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/playgameservices/management-tools/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/playgameservices/management-tools/statuses/6f66e39ca51ef97cbe9efb55a352d6716d9a2555"}}}}