Class OAuthTokenRequest.OAuthTokenRequestBuilder
- java.lang.Object
-
- com.slack.api.methods.request.oauth.OAuthTokenRequest.OAuthTokenRequestBuilder
-
- Enclosing class:
- OAuthTokenRequest
public static class OAuthTokenRequest.OAuthTokenRequestBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuthTokenRequest
build()
OAuthTokenRequest.OAuthTokenRequestBuilder
clientId(String clientId)
Issued when you created your application.OAuthTokenRequest.OAuthTokenRequestBuilder
clientSecret(String clientSecret)
Issued when you created your application.OAuthTokenRequest.OAuthTokenRequestBuilder
code(String code)
The `code` param returned via the OAuth callback.OAuthTokenRequest.OAuthTokenRequestBuilder
redirectUri(String redirectUri)
This must match the originally submitted URI (if one was sent).OAuthTokenRequest.OAuthTokenRequestBuilder
singleChannel(boolean singleChannel)
Request the user to add your app only to a single channel.String
toString()
-
-
-
Method Detail
-
clientId
public OAuthTokenRequest.OAuthTokenRequestBuilder clientId(String clientId)
Issued when you created your application.- Returns:
this
.
-
clientSecret
public OAuthTokenRequest.OAuthTokenRequestBuilder clientSecret(String clientSecret)
Issued when you created your application.- Returns:
this
.
-
code
public OAuthTokenRequest.OAuthTokenRequestBuilder code(String code)
The `code` param returned via the OAuth callback.- Returns:
this
.
-
redirectUri
public OAuthTokenRequest.OAuthTokenRequestBuilder redirectUri(String redirectUri)
This must match the originally submitted URI (if one was sent).- Returns:
this
.
-
singleChannel
public OAuthTokenRequest.OAuthTokenRequestBuilder singleChannel(boolean singleChannel)
Request the user to add your app only to a single channel.- Returns:
this
.
-
build
public OAuthTokenRequest build()
-
-