Slack v0.23.5 Slack.Web.Oauth View Source
Link to this section Summary
Functions
Exchanges a temporary OAuth code for an API token
Link to this section Functions
Link to this function
access(client_id, client_secret, code, optional_params \\ %{}) View Source
Exchanges a temporary OAuth code for an API token.
Required Params
client_id- Issued when you created your application. ex:4b39e9-752c4client_secret- Issued when you created your application. ex:33fea0113f5b1code- Thecodeparam 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_secretwas invalid.bad_redirect_uri- Value passed forredirect_uridid not match theredirect_uriin the original request.invalid_client_id- Value passed forclient_idwas invalid.invalid_code- Value passed forcodewas invalid.