package org.scribe.builder.api;

import org.scribe.model.OAuthConfig;
import org.scribe.utils.URLUtils;

public class ConstantContactApi2 extends DefaultApi20 {
	
	private static final String AUTHORIZE_URL = "https://oauth2.constantcontact.com/oauth2/oauth/siteowner/authorize?client_id=%s&response_type=code&redirect_uri=%s";
	
	@Override
	public String getAccessTokenEndpoint() {

		return "https://oauth2.constantcontact.com/oauth2/oauth/token";
	}

	@Override
	public String getAuthorizationUrl(OAuthConfig config) {

		return String.format(AUTHORIZE_URL, config.getApiKey(), URLUtils.formURLEncode(config.getCallback()));
	}

}

@@ -90,24 +90,28 @@
 e.utils.
-URLUtils
+OAuthEncoder
 ;%0D%0A%0D%0Apub
@@ -599,25 +599,22 @@
 (), 
-URLUtils.formURLE
+OAuthEncoder.e
 ncod

Support for OAuth 2