{"action":"created","comment":{"url":"https://api.github.com/repos/box/box-python-sdk/pulls/comments/25728835","id":25728835,"diff_hunk":"@@ -38,37 +39,38 @@ Get the authorization url\n \n     from boxsdk.auth.oauth2 import OAuth2\n \n-    oauth = OAuth2(\n-        client_id='YOUR_CLIENT_ID',\n-        client_secret='YOUR_CLIENT_SECRET',\n-        store_tokens=your_store_tokens_callback_method,\n-    )\n+    oauth = OAuth2(client_id='YOUR_CLIENT_ID',\n+                   client_secret='YOUR_CLIENT_SECRET',\n+                   store_tokens=your_store_tokens_callback_method)\n \n     auth_url, csrf_token = oauth.get_authorization_url('http://YOUR_REDIRECT_URL')\n \n-store_tokens is a callback used to store the access token\n-and refresh token. You might want to define something like this:\n+store_tokens is a callback used to store the access token and refresh\n+token. You might want to define something like this:\n \n .. code-block:: python\n \n     def store_tokens(access_token, refresh_token):\n         # store the tokens at secure storage (e.g. Keychain)\n \n-The SDK will keep the tokens in memory for the duration of the Python script run, so you don't always need to\n-pass store_tokens.\n+The SDK will keep the tokens in memory for the duration of the Python\n+script run, so you don't always need to pass store_tokens.\n \n Authenticate (get access/refresh token)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n \n-If you navigate the user to the auth_url, \n-the user will eventually get redirected to http://YOUR_REDIRECT_URL?code=YOUR_AUTH_CODE.\n-After getting the code, you will be able to use the code to exchange for access token and fresh token.\n+If you navigate the user to the auth_url, the user will eventually get\n+redirected to http://YOUR_REDIRECT_URL?code=YOUR_AUTH_CODE.  After\n+getting the code, you will be able to use the code to exchange for\n+access token and fresh token.\n \n The SDK handles all the work for you; all you need to do is run:\n \n .. code-block:: python\n \n-    # Make sure that the csrf token you get from the `state` parameter in the final redirect URI is the same token you get from the get_authorization_url method.\n+    # Make sure that the csrf token you get from the `state` parameter\n+    # in the final redirect URI is the same token you get from the\n+    # get_authorization_url method.","path":"README.rst","position":58,"original_position":58,"commit_id":"0ebca34b4e88d5d4dac196b86ec58876a10cc022","original_commit_id":"0ebca34b4e88d5d4dac196b86ec58876a10cc022","user":{"login":"aptxkid","id":941406,"avatar_url":"https://avatars.githubusercontent.com/u/941406?v=3","gravatar_id":"","url":"https://api.github.com/users/aptxkid","html_url":"https://github.com/aptxkid","followers_url":"https://api.github.com/users/aptxkid/followers","following_url":"https://api.github.com/users/aptxkid/following{/other_user}","gists_url":"https://api.github.com/users/aptxkid/gists{/gist_id}","starred_url":"https://api.github.com/users/aptxkid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aptxkid/subscriptions","organizations_url":"https://api.github.com/users/aptxkid/orgs","repos_url":"https://api.github.com/users/aptxkid/repos","events_url":"https://api.github.com/users/aptxkid/events{/privacy}","received_events_url":"https://api.github.com/users/aptxkid/received_events","type":"User","site_admin":false},"body":"Thanks for making this change. It makes reading the code comment much nicer on github.","created_at":"2015-03-03T21:33:49Z","updated_at":"2015-03-03T21:33:49Z","html_url":"https://github.com/box/box-python-sdk/pull/24#discussion_r25728835","pull_request_url":"https://api.github.com/repos/box/box-python-sdk/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/box/box-python-sdk/pulls/comments/25728835"},"html":{"href":"https://github.com/box/box-python-sdk/pull/24#discussion_r25728835"},"pull_request":{"href":"https://api.github.com/repos/box/box-python-sdk/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/box/box-python-sdk/pulls/24","id":30401984,"html_url":"https://github.com/box/box-python-sdk/pull/24","diff_url":"https://github.com/box/box-python-sdk/pull/24.diff","patch_url":"https://github.com/box/box-python-sdk/pull/24.patch","issue_url":"https://api.github.com/repos/box/box-python-sdk/issues/24","number":24,"state":"open","locked":false,"title":"Fix typo in docs, cosmetic noops","user":{"login":"alexei-matveev","id":1738828,"avatar_url":"https://avatars.githubusercontent.com/u/1738828?v=3","gravatar_id":"","url":"https://api.github.com/users/alexei-matveev","html_url":"https://github.com/alexei-matveev","followers_url":"https://api.github.com/users/alexei-matveev/followers","following_url":"https://api.github.com/users/alexei-matveev/following{/other_user}","gists_url":"https://api.github.com/users/alexei-matveev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexei-matveev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexei-matveev/subscriptions","organizations_url":"https://api.github.com/users/alexei-matveev/orgs","repos_url":"https://api.github.com/users/alexei-matveev/repos","events_url":"https://api.github.com/users/alexei-matveev/events{/privacy}","received_events_url":"https://api.github.com/users/alexei-matveev/received_events","type":"User","site_admin":false},"body":"Saw this while reading last commits.","created_at":"2015-03-03T19:00:40Z","updated_at":"2015-03-03T21:33:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99cf5b43c9ce2708e615d7c94528b681dd23aa97","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/box/box-python-sdk/pulls/24/commits","review_comments_url":"https://api.github.com/repos/box/box-python-sdk/pulls/24/comments","review_comment_url":"https://api.github.com/repos/box/box-python-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/box/box-python-sdk/issues/24/comments","statuses_url":"https://api.github.com/repos/box/box-python-sdk/statuses/0ebca34b4e88d5d4dac196b86ec58876a10cc022","head":{"label":"alexei-matveev:master","ref":"master","sha":"0ebca34b4e88d5d4dac196b86ec58876a10cc022","user":{"login":"alexei-matveev","id":1738828,"avatar_url":"https://avatars.githubusercontent.com/u/1738828?v=3","gravatar_id":"","url":"https://api.github.com/users/alexei-matveev","html_url":"https://github.com/alexei-matveev","followers_url":"https://api.github.com/users/alexei-matveev/followers","following_url":"https://api.github.com/users/alexei-matveev/following{/other_user}","gists_url":"https://api.github.com/users/alexei-matveev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexei-matveev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexei-matveev/subscriptions","organizations_url":"https://api.github.com/users/alexei-matveev/orgs","repos_url":"https://api.github.com/users/alexei-matveev/repos","events_url":"https://api.github.com/users/alexei-matveev/events{/privacy}","received_events_url":"https://api.github.com/users/alexei-matveev/received_events","type":"User","site_admin":false},"repo":{"id":31614573,"name":"box-python-sdk","full_name":"alexei-matveev/box-python-sdk","owner":{"login":"alexei-matveev","id":1738828,"avatar_url":"https://avatars.githubusercontent.com/u/1738828?v=3","gravatar_id":"","url":"https://api.github.com/users/alexei-matveev","html_url":"https://github.com/alexei-matveev","followers_url":"https://api.github.com/users/alexei-matveev/followers","following_url":"https://api.github.com/users/alexei-matveev/following{/other_user}","gists_url":"https://api.github.com/users/alexei-matveev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexei-matveev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexei-matveev/subscriptions","organizations_url":"https://api.github.com/users/alexei-matveev/orgs","repos_url":"https://api.github.com/users/alexei-matveev/repos","events_url":"https://api.github.com/users/alexei-matveev/events{/privacy}","received_events_url":"https://api.github.com/users/alexei-matveev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexei-matveev/box-python-sdk","description":"Box SDK for Python","fork":true,"url":"https://api.github.com/repos/alexei-matveev/box-python-sdk","forks_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/forks","keys_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/teams","hooks_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/hooks","issue_events_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/events","assignees_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/tags","blobs_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/languages","stargazers_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/stargazers","contributors_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/contributors","subscribers_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/subscribers","subscription_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/subscription","commits_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/merges","archive_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/downloads","issues_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/labels{/name}","releases_url":"https://api.github.com/repos/alexei-matveev/box-python-sdk/releases{/id}","created_at":"2015-03-03T18:37:29Z","updated_at":"2015-03-03T18:50:23Z","pushed_at":"2015-03-03T18:50:21Z","git_url":"git://github.com/alexei-matveev/box-python-sdk.git","ssh_url":"git@github.com:alexei-matveev/box-python-sdk.git","clone_url":"https://github.com/alexei-matveev/box-python-sdk.git","svn_url":"https://github.com/alexei-matveev/box-python-sdk","homepage":null,"size":1856,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"box:master","ref":"master","sha":"0d11a96729d71406d91f2dbc5e3b22a6cb4b2741","user":{"login":"box","id":23900,"avatar_url":"https://avatars.githubusercontent.com/u/23900?v=3","gravatar_id":"","url":"https://api.github.com/users/box","html_url":"https://github.com/box","followers_url":"https://api.github.com/users/box/followers","following_url":"https://api.github.com/users/box/following{/other_user}","gists_url":"https://api.github.com/users/box/gists{/gist_id}","starred_url":"https://api.github.com/users/box/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/box/subscriptions","organizations_url":"https://api.github.com/users/box/orgs","repos_url":"https://api.github.com/users/box/repos","events_url":"https://api.github.com/users/box/events{/privacy}","received_events_url":"https://api.github.com/users/box/received_events","type":"Organization","site_admin":false},"repo":{"id":30386388,"name":"box-python-sdk","full_name":"box/box-python-sdk","owner":{"login":"box","id":23900,"avatar_url":"https://avatars.githubusercontent.com/u/23900?v=3","gravatar_id":"","url":"https://api.github.com/users/box","html_url":"https://github.com/box","followers_url":"https://api.github.com/users/box/followers","following_url":"https://api.github.com/users/box/following{/other_user}","gists_url":"https://api.github.com/users/box/gists{/gist_id}","starred_url":"https://api.github.com/users/box/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/box/subscriptions","organizations_url":"https://api.github.com/users/box/orgs","repos_url":"https://api.github.com/users/box/repos","events_url":"https://api.github.com/users/box/events{/privacy}","received_events_url":"https://api.github.com/users/box/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/box/box-python-sdk","description":"Box SDK for Python","fork":false,"url":"https://api.github.com/repos/box/box-python-sdk","forks_url":"https://api.github.com/repos/box/box-python-sdk/forks","keys_url":"https://api.github.com/repos/box/box-python-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/box/box-python-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/box/box-python-sdk/teams","hooks_url":"https://api.github.com/repos/box/box-python-sdk/hooks","issue_events_url":"https://api.github.com/repos/box/box-python-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/box/box-python-sdk/events","assignees_url":"https://api.github.com/repos/box/box-python-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/box/box-python-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/box/box-python-sdk/tags","blobs_url":"https://api.github.com/repos/box/box-python-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/box/box-python-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/box/box-python-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/box/box-python-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/box/box-python-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/box/box-python-sdk/languages","stargazers_url":"https://api.github.com/repos/box/box-python-sdk/stargazers","contributors_url":"https://api.github.com/repos/box/box-python-sdk/contributors","subscribers_url":"https://api.github.com/repos/box/box-python-sdk/subscribers","subscription_url":"https://api.github.com/repos/box/box-python-sdk/subscription","commits_url":"https://api.github.com/repos/box/box-python-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/box/box-python-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/box/box-python-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/box/box-python-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/box/box-python-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/box/box-python-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/box/box-python-sdk/merges","archive_url":"https://api.github.com/repos/box/box-python-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/box/box-python-sdk/downloads","issues_url":"https://api.github.com/repos/box/box-python-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/box/box-python-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/box/box-python-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/box/box-python-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/box/box-python-sdk/labels{/name}","releases_url":"https://api.github.com/repos/box/box-python-sdk/releases{/id}","created_at":"2015-02-06T00:30:55Z","updated_at":"2015-03-03T18:54:02Z","pushed_at":"2015-03-02T20:50:05Z","git_url":"git://github.com/box/box-python-sdk.git","ssh_url":"git@github.com:box/box-python-sdk.git","clone_url":"https://github.com/box/box-python-sdk.git","svn_url":"https://github.com/box/box-python-sdk","homepage":null,"size":1856,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":4,"forks":6,"open_issues":4,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/box/box-python-sdk/pulls/24"},"html":{"href":"https://github.com/box/box-python-sdk/pull/24"},"issue":{"href":"https://api.github.com/repos/box/box-python-sdk/issues/24"},"comments":{"href":"https://api.github.com/repos/box/box-python-sdk/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/box/box-python-sdk/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/box/box-python-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/box/box-python-sdk/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/box/box-python-sdk/statuses/0ebca34b4e88d5d4dac196b86ec58876a10cc022"}}}}