public static OAuthAccessTokenResponse getAccessTokenResponse(String clientId,
            String clientSecret, String redirectUri, String authCode)
            throws OAuthSystemException, OAuthProblemException {
        OAuthClientRequest request = getAccessTokenRequest(clientId, clientSecret, redirectUri, authCode);

        // create HTTP client which is able to follow protocol redirects (tvtag likes to redirect from HTTPS to HTTP)
        OAuthClient client = new OAuthClient(new GetGlueHttpClient());
        return client.accessToken(request);
    }
public static OAuthAccessTokenResponse getAccessTokenResponse ( String clientId , String clientSecret , String redirectUri , String authCode ) throws OAuthSystemException , OAuthProblemException { OAuthClientRequest request = getAccessTokenRequest ( clientId , clientSecret , redirectUri , authCode ) ; OAuthClient client = new OAuthClient ( new GetGlueHttpClient ( ) ) ; return client . accessToken ( request ) ; }
Request an access token from tvtag. Builds the request with {@link #getAccessTokenRequest(String, String, String,
String)} and executes it, then returns the response which includes the access and refresh tokens.

@param clientId The OAuth client id obtained from tvtag.
@param clientSecret The OAuth client secret obtained from tvtag.
@param redirectUri The redirect URI previously used for obtaining the auth code.
@param authCode A previously obtained auth code.
@return A new OAuth access and refresh token from tvtag.
@throws OAuthSystemException
@throws OAuthProblemException