Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Commit

Permalink
Add oauth.token method
Browse files Browse the repository at this point in the history
  • Loading branch information
os committed Aug 19, 2017
1 parent 598167d commit 3f45237
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions slacker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,17 @@ def access(self, client_id, client_secret, code, redirect_uri=None):
'redirect_uri': redirect_uri
})

def token(self, client_id, client_secret, code, redirect_uri=None,
single_channel=None):
return self.post('oauth.token',
data={
'client_id': client_id,
'client_secret': client_secret,
'code': code,
'redirect_uri': redirect_uri,
'single_channel': single_channel,
})


class AppsPermissions(BaseAPI):
def info(self):
Expand Down

0 comments on commit 3f45237

Please sign in to comment.