Slack.Web.Oauth.access
You're seeing just the function
access
, go back to Slack.Web.Oauth module for more information.
Exchanges a temporary OAuth code for an API token.
Required Params
client_id
- Issued when you created your application. ex:4b39e9-752c4
client_secret
- Issued when you created your application. ex:33fea0113f5b1
code
- Thecode
param returned via the OAuth callback. ex:ccdaa72ad
Optional Params
redirect_uri
- This must match the originally submitted URI (if one was sent). ex:http://example.com
Errors the API can return:
bad_client_secret
- Value passed forclient_secret
was invalid.bad_redirect_uri
- Value passed forredirect_uri
did not match theredirect_uri
in the original request.invalid_client_id
- Value passed forclient_id
was invalid.invalid_code
- Value passed forcode
was invalid.