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

Simple Sign up form without user consent

CaminarLatino
Rookie
0 Votes
I just want to create a simple sign up form for new users to a specific contacts list using the API. I've looked over the documentation but it looks like to use the contact_data endpoint I need to get user authorization. How can I bypass this so I can retrieve the token to have access to the endpoint? I'm following the instructions here: https://v3.developer.constantcontact.com/api_guide/server_flow.html . But in the first step I'm supposed to create an authorization request. If this is a new user, how are they supposed to sign in authenticate?
3 REPLIES 3
John__B
Employee
0 Votes

Hello CaminarLatino,

 

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.

 

The Authorization Request screen is only for connecting a Constant Contact account to the integration, so for example if you are making a sign-up form or integration that only connects to one Constant Contact account, only you would access the Authorization Request screen one initial time to connect your account, it wouldn't be visible to people using the form/integration.  When your users are accessing the integration, it will use the token set generated when you initially granted permission to access the connection. The only time other people would access the Authorization Request screen is if you are designing an integration that needs to connect to other Constant Contact accounts, as each account needs to grant permission to the integration.

 

Please let us know if you have any other questions!

 

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.
CaminarLatino
Rookie
0 Votes

Thank you for your response.

 

As the owner of the Constant Contact account, it is mandatory for me to get to the Authorization Request screen to give access? Would this token then be able to be used from then on, or would to create a cron job, or something similar, to refresh the token?

John__B
Employee
0 Votes

Hello CarminarLatino,

 

Thank you for your reply. You are correct. In order for the sign-up form/integration to successfully connect to your account, you must grant access through the permission request screen. After this is done, your sign-up form/integration can maintain account access by utilizing refresh tokens. 

 

Please let us know if you have any other questions!

 

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