public Token getAccessToken(final Token requestToken, final Verifier verifier) {
final OAuthRequest request = new ProxyOAuthRequest(this.api.getAccessTokenVerb(),
this.api.getAccessTokenEndpoint(), this.connectTimeout,
this.readTimeout, this.proxyHost, this.proxyPort);
if (this.getParameter) {
request.addQuerystringParameter(OAuthConstants.CLIENT_ID, this.config.getApiKey());
request.addQuerystringParameter(OAuthConstants.CLIENT_SECRET, this.config.getApiSecret());
request.addQuerystringParameter(OAuthConstants.CODE, verifier.getValue());
request.addQuerystringParameter(OAuthConstants.REDIRECT_URI, this.config.getCallback());
if (this.config.hasScope()) {
request.addQuerystringParameter(OAuthConstants.SCOPE, this.config.getScope());