Enter the Share Your Success Sweepstakes 2024 For the Chance to Win Great Prizes!

Contacts not coming through to Constant Contact from my website

PeterK26
Campaign Contributor
0 Votes

I am getting the following error when I run the syncconstantcontact.v3.php script.:

error_description":"refresh_token parameter is required for grant_type=refresh_token","error":"invalid_request

It appears there is an issue with the code in getaccesstoken.v3.php since I am getting the following error:

"error_description":"Authorization code is invalid or expired.","error":"invalid_grant"

 

How do I solve the issue with the expired Authorization code?

Running the first code above should sync contacts in my database with constant contact but that is not working now.

4 REPLIES 4
mfan97
Rookie
0 Votes

Getting the same problem.

 

Courtney_E
Moderator
0 Votes

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.

 

If the scripts you're using aren't correctly generating Access and Refresh Tokens, we’d be happy to take a look at your code to see if we can provide any further insight. Please feel free to send copies of your PHP scripts to webservices@constantcontact.com for review and we’ll follow up via email with our findings.


Regards,

Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
AfshinY
Campaign Collaborator
0 Votes

hi, i am facing the same problem when i test with postman, it is really hard to get an answer here, can you help me?
here is my problem;

GET https://authz.constantcontact.com/oauth2/default/v1/authorize?response_type=token&redirect_uri=http:...

I've never been able to get tokens with your APIs, really, my client instructed me to look for alternatives and I think I'm making my last attempts.

John__B
Employee
0 Votes

Hello AfshinY,

 

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.

 

It looks like we've already followed up with you directly via email, but I wanted to close the loop here as well. If you haven't received our reply, please let us know via email at webservices@constantcontact.com, and reference case number 29531377.

 

Regards,


John B.
API Support Specialist
Did I answer your question? If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Resources
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up