Hello,
We have an AMP PHP. This site has a form which we want to the user to fill in order to create a new Contact record to our CC account. Since the user generating the record will not have the account to login, we want to confirm what options do we have. We already followed the process stated here https://v3.developer.constantcontact.com/api_guide/server_flow.html
We already generated the access and refresh tokens, but the docs says the refresh token is erased and a new one is created that means we can't have it hardcoded on the code. This is for a newsletter.
Your thoughts will be appreciated,
Thanks
Hello @DMIMarketing,
Thank you for reaching out to Constant Contact's API Support.
You would not want to hard code the Access/Refresh Tokens as the Access Token does expire. You would want to store the tokens somewhere and then use a variable in your code to pull the token. The refresh flow is used to generate a new Access Token when needed.
Regards,
Jimmy D.
Tier II API Support Engineer
Announcements
Join our list to be notified of new features and updates to our V3 API.
Sign Up