Class OAuthTokenRequest
java.lang.Object
com.slack.api.methods.request.oauth.OAuthTokenRequest
- All Implemented Interfaces:
SlackApiRequest
Exchanges a temporary OAuth verifier code for a workspace token.
- https://api.slack.com/methods/oauth.token - https://api.slack.com/docs/oauth
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
Issued when you created your application.Issued when you created your application.getCode()
The `code` param returned via the OAuth callback.This must match the originally submitted URI (if one was sent).getToken()
Returns a token in this request object.int
hashCode()
boolean
Request the user to add your app only to a single channel.void
setClientId
(String clientId) Issued when you created your application.void
setClientSecret
(String clientSecret) Issued when you created your application.void
The `code` param returned via the OAuth callback.void
setRedirectUri
(String redirectUri) This must match the originally submitted URI (if one was sent).void
setSingleChannel
(boolean singleChannel) Request the user to add your app only to a single channel.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.slack.api.methods.SlackApiRequest
setToken
-
Method Details
-
getToken
Description copied from interface:SlackApiRequest
Returns a token in this request object. If the API endpoint does not require a token (e.g., api.test), this method can return null.- Specified by:
getToken
in interfaceSlackApiRequest
- Returns:
- token string value or null
-
builder
-
getClientId
Issued when you created your application. -
getClientSecret
Issued when you created your application. -
getCode
The `code` param returned via the OAuth callback. -
getRedirectUri
This must match the originally submitted URI (if one was sent). -
isSingleChannel
public boolean isSingleChannel()Request the user to add your app only to a single channel. -
setClientId
Issued when you created your application. -
setClientSecret
Issued when you created your application. -
setCode
The `code` param returned via the OAuth callback. -
setRedirectUri
This must match the originally submitted URI (if one was sent). -
setSingleChannel
public void setSingleChannel(boolean singleChannel) Request the user to add your app only to a single channel. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-