{"action":"created","comment":{"url":"https://api.github.com/repos/slackapi/python-slackclient/pulls/comments/215474572","pull_request_review_id":152747494,"id":215474572,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNTQ3NDU3Mg==","diff_hunk":"@@ -19,20 +21,79 @@ class SlackClient(object):\n     is associated with.\n \n     For more information, check out the `Slack API Docs <https://api.slack.com/>`_\n-\n-    Init:\n-        :Args:\n-            token (str): Your Slack Authentication token. You can find or generate a test token\n-            `here <https://api.slack.com/docs/oauth-test-tokens>`_\n-            Note: Be `careful with your token <https://api.slack.com/docs/oauth-safety>`_\n-            proxies (dict): Proxies to use when create websocket or api calls,\n-            declare http and websocket proxies using {'http': 'http://127.0.0.1'},\n-            and https proxy using {'https': 'https://127.0.0.1:443'}\n     '''\n-    def __init__(self, token, proxies=None):\n+    def __init__(\n+            self,\n+            access_token=None,","path":"slackclient/client.py","position":29,"original_position":29,"commit_id":"a4055365e02ef80cc860fd235b829a7f4f9b6eeb","original_commit_id":"3026372fdf3c6dd590e8041f88c973b23c116303","user":{"login":"Roach","id":32463,"node_id":"MDQ6VXNlcjMyNDYz","avatar_url":"https://avatars0.githubusercontent.com/u/32463?v=4","gravatar_id":"","url":"https://api.github.com/users/Roach","html_url":"https://github.com/Roach","followers_url":"https://api.github.com/users/Roach/followers","following_url":"https://api.github.com/users/Roach/following{/other_user}","gists_url":"https://api.github.com/users/Roach/gists{/gist_id}","starred_url":"https://api.github.com/users/Roach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roach/subscriptions","organizations_url":"https://api.github.com/users/Roach/orgs","repos_url":"https://api.github.com/users/Roach/repos","events_url":"https://api.github.com/users/Roach/events{/privacy}","received_events_url":"https://api.github.com/users/Roach/received_events","type":"User","site_admin":false},"body":"Nope. It assigns to the first arg in the list, which is `access_token`.","created_at":"2018-09-06T01:49:53Z","updated_at":"2018-09-06T01:49:54Z","html_url":"https://github.com/slackapi/python-slackclient/pull/347#discussion_r215474572","pull_request_url":"https://api.github.com/repos/slackapi/python-slackclient/pulls/347","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/slackapi/python-slackclient/pulls/comments/215474572"},"html":{"href":"https://github.com/slackapi/python-slackclient/pull/347#discussion_r215474572"},"pull_request":{"href":"https://api.github.com/repos/slackapi/python-slackclient/pulls/347"}},"in_reply_to_id":215438410},"pull_request":{"url":"https://api.github.com/repos/slackapi/python-slackclient/pulls/347","id":213433690,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzNDMzNjkw","html_url":"https://github.com/slackapi/python-slackclient/pull/347","diff_url":"https://github.com/slackapi/python-slackclient/pull/347.diff","patch_url":"https://github.com/slackapi/python-slackclient/pull/347.patch","issue_url":"https://api.github.com/repos/slackapi/python-slackclient/issues/347","number":347,"state":"open","locked":false,"title":"Add automatic access token rotation for workspace apps","user":{"login":"Roach","id":32463,"node_id":"MDQ6VXNlcjMyNDYz","avatar_url":"https://avatars0.githubusercontent.com/u/32463?v=4","gravatar_id":"","url":"https://api.github.com/users/Roach","html_url":"https://github.com/Roach","followers_url":"https://api.github.com/users/Roach/followers","following_url":"https://api.github.com/users/Roach/following{/other_user}","gists_url":"https://api.github.com/users/Roach/gists{/gist_id}","starred_url":"https://api.github.com/users/Roach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roach/subscriptions","organizations_url":"https://api.github.com/users/Roach/orgs","repos_url":"https://api.github.com/users/Roach/repos","events_url":"https://api.github.com/users/Roach/events{/privacy}","received_events_url":"https://api.github.com/users/Roach/received_events","type":"User","site_admin":false},"body":"###  Summary\r\n\r\nWith workspace apps comes the ability to use short-lived, expiring, tokens. This patch adds the ability for the client to automatically refresh access tokens after expiration and call your app's refresh callback to update said tokens in your app's datastore.\r\n\r\nMore info: https://api.slack.com/changelog/2018-08-workspace-token-rotation\r\n\r\nDocs are still in progress.\r\n\r\n### Requirements (place an `x` in each `[ ]`)\r\n\r\n* [x] I've read and understood the [Contributing Guidelines](https://github.com/slackapi/python-slackclient/blob/master/.github/contributing.md) and have done my best effort to follow them.\r\n* [x] I've read and agree to the [Code of Conduct](https://slackhq.github.io/code-of-conduct).","created_at":"2018-09-05T21:30:05Z","updated_at":"2018-09-06T01:49:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c25477a774b4448d482b5f03cccb7ef1400e901","assignee":{"login":"Roach","id":32463,"node_id":"MDQ6VXNlcjMyNDYz","avatar_url":"https://avatars0.githubusercontent.com/u/32463?v=4","gravatar_id":"","url":"https://api.github.com/users/Roach","html_url":"https://github.com/Roach","followers_url":"https://api.github.com/users/Roach/followers","following_url":"https://api.github.com/users/Roach/following{/other_user}","gists_url":"https://api.github.com/users/Roach/gists{/gist_id}","starred_url":"https://api.github.com/users/Roach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roach/subscriptions","organizations_url":"https://api.github.com/users/Roach/orgs","repos_url":"https://api.github.com/users/Roach/repos","events_url":"https://api.github.com/users/Roach/events{/privacy}","received_events_url":"https://api.github.com/users/Roach/received_events","type":"User","site_admin":false},"assignees":[{"login":"Roach","id":32463,"node_id":"MDQ6VXNlcjMyNDYz","avatar_url":"https://avatars0.githubusercontent.com/u/32463?v=4","gravatar_id":"","url":"https://api.github.com/users/Roach","html_url":"https://github.com/Roach","followers_url":"https://api.github.com/users/Roach/followers","following_url":"https://api.github.com/users/Roach/following{/other_user}","gists_url":"https://api.github.com/users/Roach/gists{/gist_id}","starred_url":"https://api.github.com/users/Roach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roach/subscriptions","organizations_url":"https://api.github.com/users/Roach/orgs","repos_url":"https://api.github.com/users/Roach/repos","events_url":"https://api.github.com/users/Roach/events{/privacy}","received_events_url":"https://api.github.com/users/Roach/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":622018265,"node_id":"MDU6TGFiZWw2MjIwMTgyNjU=","url":"https://api.github.com/repos/slackapi/python-slackclient/labels/Web%20API","name":"Web API","color":"fbca04","default":false},{"id":1047143166,"node_id":"MDU6TGFiZWwxMDQ3MTQzMTY2","url":"https://api.github.com/repos/slackapi/python-slackclient/labels/Workspace%20Apps","name":"Workspace Apps","color":"d93f0b","default":false},{"id":634759782,"node_id":"MDU6TGFiZWw2MzQ3NTk3ODI=","url":"https://api.github.com/repos/slackapi/python-slackclient/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/slackapi/python-slackclient/pulls/347/commits","review_comments_url":"https://api.github.com/repos/slackapi/python-slackclient/pulls/347/comments","review_comment_url":"https://api.github.com/repos/slackapi/python-slackclient/pulls/comments{/number}","comments_url":"https://api.github.com/repos/slackapi/python-slackclient/issues/347/comments","statuses_url":"https://api.github.com/repos/slackapi/python-slackclient/statuses/a4055365e02ef80cc860fd235b829a7f4f9b6eeb","head":{"label":"slackapi:roach/automatic-token-rotation","ref":"roach/automatic-token-rotation","sha":"a4055365e02ef80cc860fd235b829a7f4f9b6eeb","user":{"login":"slackapi","id":6962987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5NjI5ODc=","avatar_url":"https://avatars3.githubusercontent.com/u/6962987?v=4","gravatar_id":"","url":"https://api.github.com/users/slackapi","html_url":"https://github.com/slackapi","followers_url":"https://api.github.com/users/slackapi/followers","following_url":"https://api.github.com/users/slackapi/following{/other_user}","gists_url":"https://api.github.com/users/slackapi/gists{/gist_id}","starred_url":"https://api.github.com/users/slackapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackapi/subscriptions","organizations_url":"https://api.github.com/users/slackapi/orgs","repos_url":"https://api.github.com/users/slackapi/repos","events_url":"https://api.github.com/users/slackapi/events{/privacy}","received_events_url":"https://api.github.com/users/slackapi/received_events","type":"Organization","site_admin":false},"repo":{"id":26456792,"node_id":"MDEwOlJlcG9zaXRvcnkyNjQ1Njc5Mg==","name":"python-slackclient","full_name":"slackapi/python-slackclient","owner":{"login":"slackapi","id":6962987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5NjI5ODc=","avatar_url":"https://avatars3.githubusercontent.com/u/6962987?v=4","gravatar_id":"","url":"https://api.github.com/users/slackapi","html_url":"https://github.com/slackapi","followers_url":"https://api.github.com/users/slackapi/followers","following_url":"https://api.github.com/users/slackapi/following{/other_user}","gists_url":"https://api.github.com/users/slackapi/gists{/gist_id}","starred_url":"https://api.github.com/users/slackapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackapi/subscriptions","organizations_url":"https://api.github.com/users/slackapi/orgs","repos_url":"https://api.github.com/users/slackapi/repos","events_url":"https://api.github.com/users/slackapi/events{/privacy}","received_events_url":"https://api.github.com/users/slackapi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/slackapi/python-slackclient","description":"Slack Developer Kit for Python","fork":false,"url":"https://api.github.com/repos/slackapi/python-slackclient","forks_url":"https://api.github.com/repos/slackapi/python-slackclient/forks","keys_url":"https://api.github.com/repos/slackapi/python-slackclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slackapi/python-slackclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slackapi/python-slackclient/teams","hooks_url":"https://api.github.com/repos/slackapi/python-slackclient/hooks","issue_events_url":"https://api.github.com/repos/slackapi/python-slackclient/issues/events{/number}","events_url":"https://api.github.com/repos/slackapi/python-slackclient/events","assignees_url":"https://api.github.com/repos/slackapi/python-slackclient/assignees{/user}","branches_url":"https://api.github.com/repos/slackapi/python-slackclient/branches{/branch}","tags_url":"https://api.github.com/repos/slackapi/python-slackclient/tags","blobs_url":"https://api.github.com/repos/slackapi/python-slackclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slackapi/python-slackclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slackapi/python-slackclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/slackapi/python-slackclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slackapi/python-slackclient/statuses/{sha}","languages_url":"https://api.github.com/repos/slackapi/python-slackclient/languages","stargazers_url":"https://api.github.com/repos/slackapi/python-slackclient/stargazers","contributors_url":"https://api.github.com/repos/slackapi/python-slackclient/contributors","subscribers_url":"https://api.github.com/repos/slackapi/python-slackclient/subscribers","subscription_url":"https://api.github.com/repos/slackapi/python-slackclient/subscription","commits_url":"https://api.github.com/repos/slackapi/python-slackclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/slackapi/python-slackclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/slackapi/python-slackclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/slackapi/python-slackclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/slackapi/python-slackclient/contents/{+path}","compare_url":"https://api.github.com/repos/slackapi/python-slackclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slackapi/python-slackclient/merges","archive_url":"https://api.github.com/repos/slackapi/python-slackclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slackapi/python-slackclient/downloads","issues_url":"https://api.github.com/repos/slackapi/python-slackclient/issues{/number}","pulls_url":"https://api.github.com/repos/slackapi/python-slackclient/pulls{/number}","milestones_url":"https://api.github.com/repos/slackapi/python-slackclient/milestones{/number}","notifications_url":"https://api.github.com/repos/slackapi/python-slackclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slackapi/python-slackclient/labels{/name}","releases_url":"https://api.github.com/repos/slackapi/python-slackclient/releases{/id}","deployments_url":"https://api.github.com/repos/slackapi/python-slackclient/deployments","created_at":"2014-11-10T21:32:02Z","updated_at":"2018-09-05T21:23:40Z","pushed_at":"2018-09-06T01:34:17Z","git_url":"git://github.com/slackapi/python-slackclient.git","ssh_url":"git@github.com:slackapi/python-slackclient.git","clone_url":"https://github.com/slackapi/python-slackclient.git","svn_url":"https://github.com/slackapi/python-slackclient","homepage":"http://slackapi.github.io/python-slackclient","size":1110,"stargazers_count":1540,"watchers_count":1540,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":355,"mirror_url":null,"archived":false,"open_issues_count":54,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":355,"open_issues":54,"watchers":1540,"default_branch":"master"}},"base":{"label":"slackapi:master","ref":"master","sha":"05dacba806935b39e37a44728f3c831d60ed8f50","user":{"login":"slackapi","id":6962987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5NjI5ODc=","avatar_url":"https://avatars3.githubusercontent.com/u/6962987?v=4","gravatar_id":"","url":"https://api.github.com/users/slackapi","html_url":"https://github.com/slackapi","followers_url":"https://api.github.com/users/slackapi/followers","following_url":"https://api.github.com/users/slackapi/following{/other_user}","gists_url":"https://api.github.com/users/slackapi/gists{/gist_id}","starred_url":"https://api.github.com/users/slackapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackapi/subscriptions","organizations_url":"https://api.github.com/users/slackapi/orgs","repos_url":"https://api.github.com/users/slackapi/repos","events_url":"https://api.github.com/users/slackapi/events{/privacy}","received_events_url":"https://api.github.com/users/slackapi/received_events","type":"Organization","site_admin":false},"repo":{"id":26456792,"node_id":"MDEwOlJlcG9zaXRvcnkyNjQ1Njc5Mg==","name":"python-slackclient","full_name":"slackapi/python-slackclient","owner":{"login":"slackapi","id":6962987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5NjI5ODc=","avatar_url":"https://avatars3.githubusercontent.com/u/6962987?v=4","gravatar_id":"","url":"https://api.github.com/users/slackapi","html_url":"https://github.com/slackapi","followers_url":"https://api.github.com/users/slackapi/followers","following_url":"https://api.github.com/users/slackapi/following{/other_user}","gists_url":"https://api.github.com/users/slackapi/gists{/gist_id}","starred_url":"https://api.github.com/users/slackapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackapi/subscriptions","organizations_url":"https://api.github.com/users/slackapi/orgs","repos_url":"https://api.github.com/users/slackapi/repos","events_url":"https://api.github.com/users/slackapi/events{/privacy}","received_events_url":"https://api.github.com/users/slackapi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/slackapi/python-slackclient","description":"Slack Developer Kit for Python","fork":false,"url":"https://api.github.com/repos/slackapi/python-slackclient","forks_url":"https://api.github.com/repos/slackapi/python-slackclient/forks","keys_url":"https://api.github.com/repos/slackapi/python-slackclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slackapi/python-slackclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slackapi/python-slackclient/teams","hooks_url":"https://api.github.com/repos/slackapi/python-slackclient/hooks","issue_events_url":"https://api.github.com/repos/slackapi/python-slackclient/issues/events{/number}","events_url":"https://api.github.com/repos/slackapi/python-slackclient/events","assignees_url":"https://api.github.com/repos/slackapi/python-slackclient/assignees{/user}","branches_url":"https://api.github.com/repos/slackapi/python-slackclient/branches{/branch}","tags_url":"https://api.github.com/repos/slackapi/python-slackclient/tags","blobs_url":"https://api.github.com/repos/slackapi/python-slackclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slackapi/python-slackclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slackapi/python-slackclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/slackapi/python-slackclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slackapi/python-slackclient/statuses/{sha}","languages_url":"https://api.github.com/repos/slackapi/python-slackclient/languages","stargazers_url":"https://api.github.com/repos/slackapi/python-slackclient/stargazers","contributors_url":"https://api.github.com/repos/slackapi/python-slackclient/contributors","subscribers_url":"https://api.github.com/repos/slackapi/python-slackclient/subscribers","subscription_url":"https://api.github.com/repos/slackapi/python-slackclient/subscription","commits_url":"https://api.github.com/repos/slackapi/python-slackclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/slackapi/python-slackclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/slackapi/python-slackclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/slackapi/python-slackclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/slackapi/python-slackclient/contents/{+path}","compare_url":"https://api.github.com/repos/slackapi/python-slackclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slackapi/python-slackclient/merges","archive_url":"https://api.github.com/repos/slackapi/python-slackclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slackapi/python-slackclient/downloads","issues_url":"https://api.github.com/repos/slackapi/python-slackclient/issues{/number}","pulls_url":"https://api.github.com/repos/slackapi/python-slackclient/pulls{/number}","milestones_url":"https://api.github.com/repos/slackapi/python-slackclient/milestones{/number}","notifications_url":"https://api.github.com/repos/slackapi/python-slackclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slackapi/python-slackclient/labels{/name}","releases_url":"https://api.github.com/repos/slackapi/python-slackclient/releases{/id}","deployments_url":"https://api.github.com/repos/slackapi/python-slackclient/deployments","created_at":"2014-11-10T21:32:02Z","updated_at":"2018-09-05T21:23:40Z","pushed_at":"2018-09-06T01:34:17Z","git_url":"git://github.com/slackapi/python-slackclient.git","ssh_url":"git@github.com:slackapi/python-slackclient.git","clone_url":"https://github.com/slackapi/python-slackclient.git","svn_url":"https://github.com/slackapi/python-slackclient","homepage":"http://slackapi.github.io/python-slackclient","size":1110,"stargazers_count":1540,"watchers_count":1540,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":355,"mirror_url":null,"archived":false,"open_issues_count":54,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":355,"open_issues":54,"watchers":1540,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/slackapi/python-slackclient/pulls/347"},"html":{"href":"https://github.com/slackapi/python-slackclient/pull/347"},"issue":{"href":"https://api.github.com/repos/slackapi/python-slackclient/issues/347"},"comments":{"href":"https://api.github.com/repos/slackapi/python-slackclient/issues/347/comments"},"review_comments":{"href":"https://api.github.com/repos/slackapi/python-slackclient/pulls/347/comments"},"review_comment":{"href":"https://api.github.com/repos/slackapi/python-slackclient/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/slackapi/python-slackclient/pulls/347/commits"},"statuses":{"href":"https://api.github.com/repos/slackapi/python-slackclient/statuses/a4055365e02ef80cc860fd235b829a7f4f9b6eeb"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"Roach"}}