Our system does not support java.net.http.HttpClient, so I have to use java.net.URLConnection
I got 403 error
403 Forbidden
Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: https://authz.constantcontact.com/oauth2/default/v1/token?code={authcode}&redirect_uri={url}&grant_t...
Here is my Java code,
Hello XinwangN,
Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.
Based on our logs for your account, it looks like you may have already resolved your issue.
However, if you still need assistance, please feel free to contact us directly/securely via email at webservices@constantcontact.com and reference case #30215783.
Within your email, please also include the API key that you are using to make the request, the full request(s) where you are receiving the response error (including URL, headers, timestamp, and request body), and the full response body so that we can so that we can better assist you in identifying the root cause of the issue.
Please let us know if you have any other questions!
Support Tips
"There's a multitude of ways to engage your audience through us using your social platforms - via ads, social post metrics, email links, and more! " - Will
See ArticleSupport Tips
"Target your most engaged contacts by creating a segment. Create a special offer or show your appreciation!" - Caitlin
See ArticleSupport Tips
"Greet new contacts with one or more automated Welcome Emails depending on their interests or your business goals." - Nick
See Article