Class OAuthV2AccessRequest.OAuthV2AccessRequestBuilder
java.lang.Object
com.slack.api.methods.request.oauth.OAuthV2AccessRequest.OAuthV2AccessRequestBuilder
- Enclosing class:
- OAuthV2AccessRequest
public static class OAuthV2AccessRequest.OAuthV2AccessRequestBuilder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description OAuthV2AccessRequestbuild()OAuthV2AccessRequest.OAuthV2AccessRequestBuilderclientId(java.lang.String clientId)Issued when you created your application.OAuthV2AccessRequest.OAuthV2AccessRequestBuilderclientSecret(java.lang.String clientSecret)Issued when you created your application.OAuthV2AccessRequest.OAuthV2AccessRequestBuildercode(java.lang.String code)The `code` param returned via the OAuth callback.OAuthV2AccessRequest.OAuthV2AccessRequestBuildergrantType(java.lang.String grantType)The grant_type param as described in the OAuth spec.OAuthV2AccessRequest.OAuthV2AccessRequestBuilderredirectUri(java.lang.String redirectUri)This must match the originally submitted URI (if one was sent).OAuthV2AccessRequest.OAuthV2AccessRequestBuilderrefreshToken(java.lang.String refreshToken)The refresh_token param as described in the OAuth spec.java.lang.StringtoString()
-
Method Details
-
clientId
Issued when you created your application.- Returns:
this.
-
clientSecret
public OAuthV2AccessRequest.OAuthV2AccessRequestBuilder clientSecret(java.lang.String clientSecret)Issued when you created your application.- Returns:
this.
-
code
The `code` param returned via the OAuth callback.- Returns:
this.
-
redirectUri
This must match the originally submitted URI (if one was sent).- Returns:
this.
-
grantType
The grant_type param as described in the OAuth spec.- Returns:
this.
-
refreshToken
public OAuthV2AccessRequest.OAuthV2AccessRequestBuilder refreshToken(java.lang.String refreshToken)The refresh_token param as described in the OAuth spec.- Returns:
this.
-
build
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-