Class OAuthTokenRequest
java.lang.Object
com.slack.api.methods.request.oauth.OAuthTokenRequest
- All Implemented Interfaces:
SlackApiRequest
public class OAuthTokenRequest extends Object implements SlackApiRequest
Exchanges a temporary OAuth verifier code for a workspace token.
https://api.slack.com/docs/oauth
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOAuthTokenRequest.OAuthTokenRequestBuilder -
Method Summary
Modifier and Type Method Description static OAuthTokenRequest.OAuthTokenRequestBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)StringgetClientId()Issued when you created your application.StringgetClientSecret()Issued when you created your application.StringgetCode()The `code` param returned via the OAuth callback.StringgetRedirectUri()This must match the originally submitted URI (if one was sent).StringgetToken()inthashCode()booleanisSingleChannel()Request 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.voidsetCode(String code)The `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.StringtoString()
-
Method Details
-
getToken
- Specified by:
getTokenin interfaceSlackApiRequest
-
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
-