Class OAuthV2AccessRequest

java.lang.Object
com.slack.api.methods.request.oauth.OAuthV2AccessRequest
All Implemented Interfaces:
SlackApiRequest

public class OAuthV2AccessRequest extends Object implements SlackApiRequest
- https://docs.slack.dev/reference/methods/oauth.v2.access - https://docs.slack.dev/authentication
  • Method Details

    • getToken

      public String 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 interface SlackApiRequest
      Returns:
      token string value or null
    • builder

    • getClientId

      public String getClientId()
      Issued when you created your application.
    • getClientSecret

      public String getClientSecret()
      Issued when you created your application.
    • getCode

      public String getCode()
      The `code` param returned via the OAuth callback.
    • getRedirectUri

      public String getRedirectUri()
      This must match the originally submitted URI (if one was sent).
    • getGrantType

      public String getGrantType()
      The grant_type param as described in the OAuth spec.
    • getRefreshToken

      public String getRefreshToken()
      The refresh_token param as described in the OAuth spec.
    • setClientId

      public void setClientId(String clientId)
      Issued when you created your application.
    • setClientSecret

      public void setClientSecret(String clientSecret)
      Issued when you created your application.
    • setCode

      public void setCode(String code)
      The `code` param returned via the OAuth callback.
    • setRedirectUri

      public void setRedirectUri(String redirectUri)
      This must match the originally submitted URI (if one was sent).
    • setGrantType

      public void setGrantType(String grantType)
      The grant_type param as described in the OAuth spec.
    • setRefreshToken

      public void setRefreshToken(String refreshToken)
      The refresh_token param as described in the OAuth spec.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object