public static OAuthClientRequest getAccessTokenRequest ( String clientId , String clientSecret , String redirectUri , String authCode ) throws OAuthSystemException { return OAuthClientRequest . tokenLocation ( OAUTH2_ACCESS_TOKEN_URL ) . setGrantType ( GrantType . AUTHORIZATION_CODE ) . setClientId ( clientId ) . setClientSecret ( clientSecret ) . setRedirectURI ( redirectUri ) . setCode ( authCode ) . buildQueryMessage ( ) ; }
Build an OAuth access token request .