{"action":"created","comment":{"url":"https://api.github.com/repos/Usertech/lensid-client/pulls/comments/66989333","id":66989333,"diff_hunk":"@@ -0,0 +1,86 @@\n+import json\n+\n+import requests as r\n+\n+from typing import Mapping, Optional, Tuple\n+\n+\n+RESOURCES = {\n+    'login': '/api/login/',\n+    'document': '/api/document/',\n+}\n+\n+HEADERS = {\n+    'Accept': 'application/json',\n+    'Content-Type': 'application/json',\n+}\n+\n+\n+def json_or_none(response:r.Response) -> Tuple[Optional[str], r.Response]:\n+    \"\"\"\n+    Returns a valid JSON and `requests.Response` as a tuple. When the response if not a valid JSON, returns `None`\n+    as a JSON.\n+    \"\"\"\n+    try:\n+        return (response.json(), response)","path":"lensid_client/__init__.py","position":25,"original_position":25,"commit_id":"33039077280ba2484133673bffe72f238bc73ddd","original_commit_id":"33039077280ba2484133673bffe72f238bc73ddd","user":{"login":"LukasRychtecky","id":585068,"avatar_url":"https://avatars.githubusercontent.com/u/585068?v=3","gravatar_id":"","url":"https://api.github.com/users/LukasRychtecky","html_url":"https://github.com/LukasRychtecky","followers_url":"https://api.github.com/users/LukasRychtecky/followers","following_url":"https://api.github.com/users/LukasRychtecky/following{/other_user}","gists_url":"https://api.github.com/users/LukasRychtecky/gists{/gist_id}","starred_url":"https://api.github.com/users/LukasRychtecky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukasRychtecky/subscriptions","organizations_url":"https://api.github.com/users/LukasRychtecky/orgs","repos_url":"https://api.github.com/users/LukasRychtecky/repos","events_url":"https://api.github.com/users/LukasRychtecky/events{/privacy}","received_events_url":"https://api.github.com/users/LukasRychtecky/received_events","type":"User","site_admin":false},"body":"@ondrejSkowronek máš to mít.","created_at":"2016-06-14T15:06:49Z","updated_at":"2016-06-14T15:06:49Z","html_url":"https://github.com/Usertech/lensid-client/pull/1#discussion_r66989333","pull_request_url":"https://api.github.com/repos/Usertech/lensid-client/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Usertech/lensid-client/pulls/comments/66989333"},"html":{"href":"https://github.com/Usertech/lensid-client/pull/1#discussion_r66989333"},"pull_request":{"href":"https://api.github.com/repos/Usertech/lensid-client/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Usertech/lensid-client/pulls/1","id":73462696,"html_url":"https://github.com/Usertech/lensid-client/pull/1","diff_url":"https://github.com/Usertech/lensid-client/pull/1.diff","patch_url":"https://github.com/Usertech/lensid-client/pull/1.patch","issue_url":"https://api.github.com/repos/Usertech/lensid-client/issues/1","number":1,"state":"open","locked":false,"title":"Aplha version of a client library","user":{"login":"LukasRychtecky","id":585068,"avatar_url":"https://avatars.githubusercontent.com/u/585068?v=3","gravatar_id":"","url":"https://api.github.com/users/LukasRychtecky","html_url":"https://github.com/LukasRychtecky","followers_url":"https://api.github.com/users/LukasRychtecky/followers","following_url":"https://api.github.com/users/LukasRychtecky/following{/other_user}","gists_url":"https://api.github.com/users/LukasRychtecky/gists{/gist_id}","starred_url":"https://api.github.com/users/LukasRychtecky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukasRychtecky/subscriptions","organizations_url":"https://api.github.com/users/LukasRychtecky/orgs","repos_url":"https://api.github.com/users/LukasRychtecky/repos","events_url":"https://api.github.com/users/LukasRychtecky/events{/privacy}","received_events_url":"https://api.github.com/users/LukasRychtecky/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-11T08:35:20Z","updated_at":"2016-06-14T15:06:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd25650c7c29db490dca5a93303aa986c5482eb0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Usertech/lensid-client/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Usertech/lensid-client/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Usertech/lensid-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Usertech/lensid-client/issues/1/comments","statuses_url":"https://api.github.com/repos/Usertech/lensid-client/statuses/33039077280ba2484133673bffe72f238bc73ddd","head":{"label":"Usertech:aplha","ref":"aplha","sha":"33039077280ba2484133673bffe72f238bc73ddd","user":{"login":"Usertech","id":9248940,"avatar_url":"https://avatars.githubusercontent.com/u/9248940?v=3","gravatar_id":"","url":"https://api.github.com/users/Usertech","html_url":"https://github.com/Usertech","followers_url":"https://api.github.com/users/Usertech/followers","following_url":"https://api.github.com/users/Usertech/following{/other_user}","gists_url":"https://api.github.com/users/Usertech/gists{/gist_id}","starred_url":"https://api.github.com/users/Usertech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Usertech/subscriptions","organizations_url":"https://api.github.com/users/Usertech/orgs","repos_url":"https://api.github.com/users/Usertech/repos","events_url":"https://api.github.com/users/Usertech/events{/privacy}","received_events_url":"https://api.github.com/users/Usertech/received_events","type":"Organization","site_admin":false},"repo":{"id":60701467,"name":"lensid-client","full_name":"Usertech/lensid-client","owner":{"login":"Usertech","id":9248940,"avatar_url":"https://avatars.githubusercontent.com/u/9248940?v=3","gravatar_id":"","url":"https://api.github.com/users/Usertech","html_url":"https://github.com/Usertech","followers_url":"https://api.github.com/users/Usertech/followers","following_url":"https://api.github.com/users/Usertech/following{/other_user}","gists_url":"https://api.github.com/users/Usertech/gists{/gist_id}","starred_url":"https://api.github.com/users/Usertech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Usertech/subscriptions","organizations_url":"https://api.github.com/users/Usertech/orgs","repos_url":"https://api.github.com/users/Usertech/repos","events_url":"https://api.github.com/users/Usertech/events{/privacy}","received_events_url":"https://api.github.com/users/Usertech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Usertech/lensid-client","description":"","fork":false,"url":"https://api.github.com/repos/Usertech/lensid-client","forks_url":"https://api.github.com/repos/Usertech/lensid-client/forks","keys_url":"https://api.github.com/repos/Usertech/lensid-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Usertech/lensid-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Usertech/lensid-client/teams","hooks_url":"https://api.github.com/repos/Usertech/lensid-client/hooks","issue_events_url":"https://api.github.com/repos/Usertech/lensid-client/issues/events{/number}","events_url":"https://api.github.com/repos/Usertech/lensid-client/events","assignees_url":"https://api.github.com/repos/Usertech/lensid-client/assignees{/user}","branches_url":"https://api.github.com/repos/Usertech/lensid-client/branches{/branch}","tags_url":"https://api.github.com/repos/Usertech/lensid-client/tags","blobs_url":"https://api.github.com/repos/Usertech/lensid-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Usertech/lensid-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Usertech/lensid-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Usertech/lensid-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Usertech/lensid-client/statuses/{sha}","languages_url":"https://api.github.com/repos/Usertech/lensid-client/languages","stargazers_url":"https://api.github.com/repos/Usertech/lensid-client/stargazers","contributors_url":"https://api.github.com/repos/Usertech/lensid-client/contributors","subscribers_url":"https://api.github.com/repos/Usertech/lensid-client/subscribers","subscription_url":"https://api.github.com/repos/Usertech/lensid-client/subscription","commits_url":"https://api.github.com/repos/Usertech/lensid-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Usertech/lensid-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Usertech/lensid-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Usertech/lensid-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Usertech/lensid-client/contents/{+path}","compare_url":"https://api.github.com/repos/Usertech/lensid-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Usertech/lensid-client/merges","archive_url":"https://api.github.com/repos/Usertech/lensid-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Usertech/lensid-client/downloads","issues_url":"https://api.github.com/repos/Usertech/lensid-client/issues{/number}","pulls_url":"https://api.github.com/repos/Usertech/lensid-client/pulls{/number}","milestones_url":"https://api.github.com/repos/Usertech/lensid-client/milestones{/number}","notifications_url":"https://api.github.com/repos/Usertech/lensid-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Usertech/lensid-client/labels{/name}","releases_url":"https://api.github.com/repos/Usertech/lensid-client/releases{/id}","deployments_url":"https://api.github.com/repos/Usertech/lensid-client/deployments","created_at":"2016-06-08T13:50:23Z","updated_at":"2016-06-08T13:50:23Z","pushed_at":"2016-06-14T15:05:42Z","git_url":"git://github.com/Usertech/lensid-client.git","ssh_url":"git@github.com:Usertech/lensid-client.git","clone_url":"https://github.com/Usertech/lensid-client.git","svn_url":"https://github.com/Usertech/lensid-client","homepage":null,"size":27,"stargazers_count":0,"watchers_count":0,"language":null,"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":"Usertech:master","ref":"master","sha":"3da34fe2e3a9a89039a927d7380b1af595f1adf5","user":{"login":"Usertech","id":9248940,"avatar_url":"https://avatars.githubusercontent.com/u/9248940?v=3","gravatar_id":"","url":"https://api.github.com/users/Usertech","html_url":"https://github.com/Usertech","followers_url":"https://api.github.com/users/Usertech/followers","following_url":"https://api.github.com/users/Usertech/following{/other_user}","gists_url":"https://api.github.com/users/Usertech/gists{/gist_id}","starred_url":"https://api.github.com/users/Usertech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Usertech/subscriptions","organizations_url":"https://api.github.com/users/Usertech/orgs","repos_url":"https://api.github.com/users/Usertech/repos","events_url":"https://api.github.com/users/Usertech/events{/privacy}","received_events_url":"https://api.github.com/users/Usertech/received_events","type":"Organization","site_admin":false},"repo":{"id":60701467,"name":"lensid-client","full_name":"Usertech/lensid-client","owner":{"login":"Usertech","id":9248940,"avatar_url":"https://avatars.githubusercontent.com/u/9248940?v=3","gravatar_id":"","url":"https://api.github.com/users/Usertech","html_url":"https://github.com/Usertech","followers_url":"https://api.github.com/users/Usertech/followers","following_url":"https://api.github.com/users/Usertech/following{/other_user}","gists_url":"https://api.github.com/users/Usertech/gists{/gist_id}","starred_url":"https://api.github.com/users/Usertech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Usertech/subscriptions","organizations_url":"https://api.github.com/users/Usertech/orgs","repos_url":"https://api.github.com/users/Usertech/repos","events_url":"https://api.github.com/users/Usertech/events{/privacy}","received_events_url":"https://api.github.com/users/Usertech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Usertech/lensid-client","description":"","fork":false,"url":"https://api.github.com/repos/Usertech/lensid-client","forks_url":"https://api.github.com/repos/Usertech/lensid-client/forks","keys_url":"https://api.github.com/repos/Usertech/lensid-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Usertech/lensid-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Usertech/lensid-client/teams","hooks_url":"https://api.github.com/repos/Usertech/lensid-client/hooks","issue_events_url":"https://api.github.com/repos/Usertech/lensid-client/issues/events{/number}","events_url":"https://api.github.com/repos/Usertech/lensid-client/events","assignees_url":"https://api.github.com/repos/Usertech/lensid-client/assignees{/user}","branches_url":"https://api.github.com/repos/Usertech/lensid-client/branches{/branch}","tags_url":"https://api.github.com/repos/Usertech/lensid-client/tags","blobs_url":"https://api.github.com/repos/Usertech/lensid-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Usertech/lensid-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Usertech/lensid-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Usertech/lensid-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Usertech/lensid-client/statuses/{sha}","languages_url":"https://api.github.com/repos/Usertech/lensid-client/languages","stargazers_url":"https://api.github.com/repos/Usertech/lensid-client/stargazers","contributors_url":"https://api.github.com/repos/Usertech/lensid-client/contributors","subscribers_url":"https://api.github.com/repos/Usertech/lensid-client/subscribers","subscription_url":"https://api.github.com/repos/Usertech/lensid-client/subscription","commits_url":"https://api.github.com/repos/Usertech/lensid-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Usertech/lensid-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Usertech/lensid-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Usertech/lensid-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Usertech/lensid-client/contents/{+path}","compare_url":"https://api.github.com/repos/Usertech/lensid-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Usertech/lensid-client/merges","archive_url":"https://api.github.com/repos/Usertech/lensid-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Usertech/lensid-client/downloads","issues_url":"https://api.github.com/repos/Usertech/lensid-client/issues{/number}","pulls_url":"https://api.github.com/repos/Usertech/lensid-client/pulls{/number}","milestones_url":"https://api.github.com/repos/Usertech/lensid-client/milestones{/number}","notifications_url":"https://api.github.com/repos/Usertech/lensid-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Usertech/lensid-client/labels{/name}","releases_url":"https://api.github.com/repos/Usertech/lensid-client/releases{/id}","deployments_url":"https://api.github.com/repos/Usertech/lensid-client/deployments","created_at":"2016-06-08T13:50:23Z","updated_at":"2016-06-08T13:50:23Z","pushed_at":"2016-06-14T15:05:42Z","git_url":"git://github.com/Usertech/lensid-client.git","ssh_url":"git@github.com:Usertech/lensid-client.git","clone_url":"https://github.com/Usertech/lensid-client.git","svn_url":"https://github.com/Usertech/lensid-client","homepage":null,"size":27,"stargazers_count":0,"watchers_count":0,"language":null,"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/Usertech/lensid-client/pulls/1"},"html":{"href":"https://github.com/Usertech/lensid-client/pull/1"},"issue":{"href":"https://api.github.com/repos/Usertech/lensid-client/issues/1"},"comments":{"href":"https://api.github.com/repos/Usertech/lensid-client/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Usertech/lensid-client/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Usertech/lensid-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Usertech/lensid-client/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Usertech/lensid-client/statuses/33039077280ba2484133673bffe72f238bc73ddd"}}}}
{"actor":{"display_login":"LukasRychtecky"}}