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://docs.slack.dev/authentication/installing-with-oauth
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanIssued 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.inthashCode()booleanRequest the user to add your app only to a single channel.voidsetClientId(String clientId) Issued when you created your application.voidsetClientSecret(String clientSecret) Issued when you created your application.voidThe `code` param returned via the OAuth callback.voidsetRedirectUri(String redirectUri) This must match the originally submitted URI (if one was sent).voidsetSingleChannel(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, waitMethods inherited from interface com.slack.api.methods.SlackApiRequest
setToken
-
Method Details
-
getToken
Description copied from interface:SlackApiRequestReturns 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:
getTokenin 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
-