Slack Developer Kit for Node.js
Go to GitHub

OauthFacet

Kind: global class

oauthFacet.access(client_id, client_secret, code, [opts], [optCb])

Exchanges a temporary OAuth code for an API token.

Kind: instance method of [OauthFacet](#OauthFacet)
See: oauth.access

Param Type Description
client_id ? Issued when you created your application.
client_secret ? Issued when you created your application.
code ? The code param returned via the OAuth callback.
[opts] Object  
opts.redirect_uri ? This must match the originally submitted URI (if one was sent).
[optCb] function Optional callback, if not using promises.