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.
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 firstname.lastname@example.org for review and we’ll follow up via email with our findings.