TwitterOAuth2Client class 
 
    
    
    
  
    
  
    
  
    Methods
    
        
- 
  
  inherited 
- 
  getAuthorizeUrl({required String clientId, String responseType = 'code', String? redirectUri, List<String>? scopes, bool enableState = true, String? state, String? codeChallenge, Map<String, dynamic>? customParams})
    → String
  
  
- 
  Generates the url to be used for fetching the authorization code.
  inherited 
- 
  getRefreshUrlParams({required String refreshToken})
    → Map<String, String>
  
  
- 
  Returns the parameters needed for the refresh token request
  inherited 
- 
  getTokenUrlParams({required String code, String? redirectUri, String? codeVerifier, Map<String, dynamic>? customParams})
    → Map<String, dynamic>
  
  
- 
  Returns the parameters needed for the authorization code request
  inherited 
- 
  getTokenWithAuthCodeFlow({required String clientId, List<String>? scopes, String? clientSecret, bool enablePKCE = true, bool enableState = true, String? state, String? codeVerifier, Function? afterAuthorizationCodeCb, Map<String, dynamic>? authCodeParams, Map<String, dynamic>? accessTokenParams, dynamic httpClient, BaseWebAuth? webAuthClient, Map<String, dynamic>? webAuthOpts})
    → Future<AccessTokenResponse>
  
  
- 
  Requests an Access Token to the OAuth2 endpoint using the Authorization Code Flow.
  inherited 
- 
  getTokenWithClientCredentialsFlow({required String clientId, required String clientSecret, List<String>? scopes, dynamic httpClient})
    → Future<AccessTokenResponse>
  
  
- 
  Requests an Access Token to the OAuth2 endpoint using the Client Credentials flow.
  inherited 
- 
  getTokenWithImplicitGrantFlow({required String clientId, List<String>? scopes, bool enableState = true, String? state, dynamic httpClient, BaseWebAuth? webAuthClient, Map<String, dynamic>? webAuthOpts, Map<String, dynamic>? customParams})
    → Future<AccessTokenResponse>
  
  
- 
  Requests an Access Token to the OAuth2 endpoint using the Implicit grant flow (https://tools.ietf.org/html/rfc6749#page-31)
  inherited 
- 
  http2TokenResponse(Response response, {List<String>? requestedScopes})
    → AccessTokenResponse
  
  
- 
  
  inherited 
- 
  noSuchMethod(Invocation invocation)
    → dynamic
  
  
- 
  Invoked when a nonexistent method or property is accessed.
  inherited 
- 
  refreshToken(String refreshToken, {dynamic httpClient, required String clientId, String? clientSecret, List<String>? scopes})
    → Future<AccessTokenResponse>
  
  
- 
  Refreshes an Access Token issuing a refresh_token grant to the OAuth2 server.
  inherited 
- 
  requestAccessToken({required String code, required String clientId, String? clientSecret, String? codeVerifier, List<String>? scopes, Map<String, dynamic>? customParams, dynamic httpClient})
    → Future<AccessTokenResponse>
  
  
- 
  Requests and Access Token using the provided Authorization code.inherited 
- 
  requestAuthorization({required String clientId, List<String>? scopes, String? codeChallenge, bool enableState = true, String? state, Map<String, dynamic>? customParams, BaseWebAuth? webAuthClient, Map<String, dynamic>? webAuthOpts})
    → Future<AuthorizationResponse>
  
  
- 
  Requests an Authorization Code to be used in the Authorization Code grant.
  inherited 
- 
  revokeAccessToken(AccessTokenResponse tknResp, {String? clientId, String? clientSecret, dynamic httpClient, Map<String, dynamic>? params})
    → Future<OAuth2Response>
  
  
- 
  Revokes the Access Token in the provided tknRespinherited 
- 
  revokeRefreshToken(AccessTokenResponse tknResp, {String? clientId, String? clientSecret, dynamic httpClient, Map<String, dynamic>? params})
    → Future<OAuth2Response>
  
  
- 
  Revokes the Refresh Token in the provided tknRespinherited 
- 
  revokeToken(AccessTokenResponse tknResp, {String? clientId, String? clientSecret, dynamic httpClient, Map<String, dynamic>? params})
    → Future<OAuth2Response>
  
  
- 
  Revokes both the Access and the Refresh tokens in the provided tknRespinherited 
- 
  serializeScopes(List<String> scopes)
    → String
  
  
- 
  
  inherited 
- 
  toString()
    → String
  
  
- 
  A string representation of this object.
  inherited