Got a 'How do I' question? Join 'Ask a Trainer' Monday to Friday, 11am to 4pm ET for instant help and pro tips!

Insert contact from site

DMIMarketing
Rookie
0 Votes

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

1 REPLY 1
Jimmy_D
Employee
0 Votes

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


Regards,
Jimmy D.
Tier II API Support Engineer
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