{"action":"created","comment":{"url":"https://api.github.com/repos/square/connect-api-specification/pulls/comments/73755883","id":73755883,"diff_hunk":"@@ -0,0 +1,252 @@\n+# coding: utf-8\n+\n+{{>partial_header}}\n+from __future__ import absolute_import\n+\n+import sys\n+import io\n+import json\n+import ssl\n+import certifi\n+import logging\n+\n+# python 2 and python 3 compatibility library\n+from six import iteritems\n+\n+from .configuration import Configuration\n+\n+try:\n+    import urllib3\n+except ImportError:\n+    raise ImportError('Swagger python client requires urllib3.')\n+\n+try:\n+    # for python3\n+    from urllib.parse import urlencode\n+except ImportError:\n+    # for python2\n+    from urllib import urlencode\n+\n+\n+logger = logging.getLogger(__name__)\n+\n+\n+class RESTResponse(io.IOBase):\n+\n+    def __init__(self, resp, method):\n+        self.urllib3_response = resp\n+        self.status = resp.status\n+        self.reason = resp.reason\n+        # In Square Connect v2 API, \n+        # GET ListCustomers/ListLocations/ListTransaction/ListRefunds\n+        # may have large response thus calling stream() for chunked-encoding\n+        if method in ['GET', 'HEAD']:\n+            self.data = ''\n+            for chunk in resp.stream():\n+                # In the python 3, the response.data is bytes.\n+                # we need to decode it to string.\n+                if sys.version_info > (3,):\n+                    self.data += chunk.decode('utf8')","path":"swagger-templates/python/rest.mustache","position":49,"original_position":49,"commit_id":"5ec59ea1376142fb7d32c01d231d649e43b1374c","original_commit_id":"5ec59ea1376142fb7d32c01d231d649e43b1374c","user":{"login":"ti55987","id":9205030,"avatar_url":"https://avatars.githubusercontent.com/u/9205030?v=3","gravatar_id":"","url":"https://api.github.com/users/ti55987","html_url":"https://github.com/ti55987","followers_url":"https://api.github.com/users/ti55987/followers","following_url":"https://api.github.com/users/ti55987/following{/other_user}","gists_url":"https://api.github.com/users/ti55987/gists{/gist_id}","starred_url":"https://api.github.com/users/ti55987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ti55987/subscriptions","organizations_url":"https://api.github.com/users/ti55987/orgs","repos_url":"https://api.github.com/users/ti55987/repos","events_url":"https://api.github.com/users/ti55987/events{/privacy}","received_events_url":"https://api.github.com/users/ti55987/received_events","type":"User","site_admin":false},"body":"Note down. will track this problem.","created_at":"2016-08-05T20:40:12Z","updated_at":"2016-08-05T20:40:12Z","html_url":"https://github.com/square/connect-api-specification/pull/6#discussion_r73755883","pull_request_url":"https://api.github.com/repos/square/connect-api-specification/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/square/connect-api-specification/pulls/comments/73755883"},"html":{"href":"https://github.com/square/connect-api-specification/pull/6#discussion_r73755883"},"pull_request":{"href":"https://api.github.com/repos/square/connect-api-specification/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/square/connect-api-specification/pulls/6","id":79308571,"html_url":"https://github.com/square/connect-api-specification/pull/6","diff_url":"https://github.com/square/connect-api-specification/pull/6.diff","patch_url":"https://github.com/square/connect-api-specification/pull/6.patch","issue_url":"https://api.github.com/repos/square/connect-api-specification/issues/6","number":6,"state":"open","locked":false,"title":"Tpan jchang python original cmp","user":{"login":"ti55987","id":9205030,"avatar_url":"https://avatars.githubusercontent.com/u/9205030?v=3","gravatar_id":"","url":"https://api.github.com/users/ti55987","html_url":"https://github.com/ti55987","followers_url":"https://api.github.com/users/ti55987/followers","following_url":"https://api.github.com/users/ti55987/following{/other_user}","gists_url":"https://api.github.com/users/ti55987/gists{/gist_id}","starred_url":"https://api.github.com/users/ti55987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ti55987/subscriptions","organizations_url":"https://api.github.com/users/ti55987/orgs","repos_url":"https://api.github.com/users/ti55987/repos","events_url":"https://api.github.com/users/ti55987/events{/privacy}","received_events_url":"https://api.github.com/users/ti55987/received_events","type":"User","site_admin":false},"body":"@longboardcat @DanGe42 \r\nIt would be great to have you guys' review! Thanks!","created_at":"2016-07-29T05:28:24Z","updated_at":"2016-08-05T20:40:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e214b97f1e91bc866916acf6d4e8b09e3c77e7d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/square/connect-api-specification/pulls/6/commits","review_comments_url":"https://api.github.com/repos/square/connect-api-specification/pulls/6/comments","review_comment_url":"https://api.github.com/repos/square/connect-api-specification/pulls/comments{/number}","comments_url":"https://api.github.com/repos/square/connect-api-specification/issues/6/comments","statuses_url":"https://api.github.com/repos/square/connect-api-specification/statuses/5ec59ea1376142fb7d32c01d231d649e43b1374c","head":{"label":"square:tpan-jchang-python-original-cmp","ref":"tpan-jchang-python-original-cmp","sha":"5ec59ea1376142fb7d32c01d231d649e43b1374c","user":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"repo":{"id":54998230,"name":"connect-api-specification","full_name":"square/connect-api-specification","owner":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/square/connect-api-specification","description":"","fork":false,"url":"https://api.github.com/repos/square/connect-api-specification","forks_url":"https://api.github.com/repos/square/connect-api-specification/forks","keys_url":"https://api.github.com/repos/square/connect-api-specification/keys{/key_id}","collaborators_url":"https://api.github.com/repos/square/connect-api-specification/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/square/connect-api-specification/teams","hooks_url":"https://api.github.com/repos/square/connect-api-specification/hooks","issue_events_url":"https://api.github.com/repos/square/connect-api-specification/issues/events{/number}","events_url":"https://api.github.com/repos/square/connect-api-specification/events","assignees_url":"https://api.github.com/repos/square/connect-api-specification/assignees{/user}","branches_url":"https://api.github.com/repos/square/connect-api-specification/branches{/branch}","tags_url":"https://api.github.com/repos/square/connect-api-specification/tags","blobs_url":"https://api.github.com/repos/square/connect-api-specification/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/square/connect-api-specification/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/square/connect-api-specification/git/refs{/sha}","trees_url":"https://api.github.com/repos/square/connect-api-specification/git/trees{/sha}","statuses_url":"https://api.github.com/repos/square/connect-api-specification/statuses/{sha}","languages_url":"https://api.github.com/repos/square/connect-api-specification/languages","stargazers_url":"https://api.github.com/repos/square/connect-api-specification/stargazers","contributors_url":"https://api.github.com/repos/square/connect-api-specification/contributors","subscribers_url":"https://api.github.com/repos/square/connect-api-specification/subscribers","subscription_url":"https://api.github.com/repos/square/connect-api-specification/subscription","commits_url":"https://api.github.com/repos/square/connect-api-specification/commits{/sha}","git_commits_url":"https://api.github.com/repos/square/connect-api-specification/git/commits{/sha}","comments_url":"https://api.github.com/repos/square/connect-api-specification/comments{/number}","issue_comment_url":"https://api.github.com/repos/square/connect-api-specification/issues/comments{/number}","contents_url":"https://api.github.com/repos/square/connect-api-specification/contents/{+path}","compare_url":"https://api.github.com/repos/square/connect-api-specification/compare/{base}...{head}","merges_url":"https://api.github.com/repos/square/connect-api-specification/merges","archive_url":"https://api.github.com/repos/square/connect-api-specification/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/square/connect-api-specification/downloads","issues_url":"https://api.github.com/repos/square/connect-api-specification/issues{/number}","pulls_url":"https://api.github.com/repos/square/connect-api-specification/pulls{/number}","milestones_url":"https://api.github.com/repos/square/connect-api-specification/milestones{/number}","notifications_url":"https://api.github.com/repos/square/connect-api-specification/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/square/connect-api-specification/labels{/name}","releases_url":"https://api.github.com/repos/square/connect-api-specification/releases{/id}","deployments_url":"https://api.github.com/repos/square/connect-api-specification/deployments","created_at":"2016-03-29T17:56:27Z","updated_at":"2016-07-25T00:19:35Z","pushed_at":"2016-08-05T18:54:13Z","git_url":"git://github.com/square/connect-api-specification.git","ssh_url":"git@github.com:square/connect-api-specification.git","clone_url":"https://github.com/square/connect-api-specification.git","svn_url":"https://github.com/square/connect-api-specification","homepage":null,"size":135,"stargazers_count":10,"watchers_count":10,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":10,"default_branch":"master"}},"base":{"label":"square:master","ref":"master","sha":"39cdf036300a3b5241d00ab51587a131101a5406","user":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"repo":{"id":54998230,"name":"connect-api-specification","full_name":"square/connect-api-specification","owner":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/square/connect-api-specification","description":"","fork":false,"url":"https://api.github.com/repos/square/connect-api-specification","forks_url":"https://api.github.com/repos/square/connect-api-specification/forks","keys_url":"https://api.github.com/repos/square/connect-api-specification/keys{/key_id}","collaborators_url":"https://api.github.com/repos/square/connect-api-specification/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/square/connect-api-specification/teams","hooks_url":"https://api.github.com/repos/square/connect-api-specification/hooks","issue_events_url":"https://api.github.com/repos/square/connect-api-specification/issues/events{/number}","events_url":"https://api.github.com/repos/square/connect-api-specification/events","assignees_url":"https://api.github.com/repos/square/connect-api-specification/assignees{/user}","branches_url":"https://api.github.com/repos/square/connect-api-specification/branches{/branch}","tags_url":"https://api.github.com/repos/square/connect-api-specification/tags","blobs_url":"https://api.github.com/repos/square/connect-api-specification/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/square/connect-api-specification/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/square/connect-api-specification/git/refs{/sha}","trees_url":"https://api.github.com/repos/square/connect-api-specification/git/trees{/sha}","statuses_url":"https://api.github.com/repos/square/connect-api-specification/statuses/{sha}","languages_url":"https://api.github.com/repos/square/connect-api-specification/languages","stargazers_url":"https://api.github.com/repos/square/connect-api-specification/stargazers","contributors_url":"https://api.github.com/repos/square/connect-api-specification/contributors","subscribers_url":"https://api.github.com/repos/square/connect-api-specification/subscribers","subscription_url":"https://api.github.com/repos/square/connect-api-specification/subscription","commits_url":"https://api.github.com/repos/square/connect-api-specification/commits{/sha}","git_commits_url":"https://api.github.com/repos/square/connect-api-specification/git/commits{/sha}","comments_url":"https://api.github.com/repos/square/connect-api-specification/comments{/number}","issue_comment_url":"https://api.github.com/repos/square/connect-api-specification/issues/comments{/number}","contents_url":"https://api.github.com/repos/square/connect-api-specification/contents/{+path}","compare_url":"https://api.github.com/repos/square/connect-api-specification/compare/{base}...{head}","merges_url":"https://api.github.com/repos/square/connect-api-specification/merges","archive_url":"https://api.github.com/repos/square/connect-api-specification/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/square/connect-api-specification/downloads","issues_url":"https://api.github.com/repos/square/connect-api-specification/issues{/number}","pulls_url":"https://api.github.com/repos/square/connect-api-specification/pulls{/number}","milestones_url":"https://api.github.com/repos/square/connect-api-specification/milestones{/number}","notifications_url":"https://api.github.com/repos/square/connect-api-specification/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/square/connect-api-specification/labels{/name}","releases_url":"https://api.github.com/repos/square/connect-api-specification/releases{/id}","deployments_url":"https://api.github.com/repos/square/connect-api-specification/deployments","created_at":"2016-03-29T17:56:27Z","updated_at":"2016-07-25T00:19:35Z","pushed_at":"2016-08-05T18:54:13Z","git_url":"git://github.com/square/connect-api-specification.git","ssh_url":"git@github.com:square/connect-api-specification.git","clone_url":"https://github.com/square/connect-api-specification.git","svn_url":"https://github.com/square/connect-api-specification","homepage":null,"size":135,"stargazers_count":10,"watchers_count":10,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/square/connect-api-specification/pulls/6"},"html":{"href":"https://github.com/square/connect-api-specification/pull/6"},"issue":{"href":"https://api.github.com/repos/square/connect-api-specification/issues/6"},"comments":{"href":"https://api.github.com/repos/square/connect-api-specification/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/square/connect-api-specification/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/square/connect-api-specification/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/square/connect-api-specification/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/square/connect-api-specification/statuses/5ec59ea1376142fb7d32c01d231d649e43b1374c"}}}}
{"actor":{"display_login":"ti55987"}}