Announcing our brand new Campaign Builder!

GET Requests

user9214
Rookie
0 Votes

Is there a way to make a GET request that returns a json-array formatted list of my organization's contacts without having to click a button on a browser window in order to authenticate? I'm just trying to pull data; not create a user-facing app.

1 REPLY 1
Courtney_E
Moderator
0 Votes

Hello user9214,

 

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.

 

You should be able to fully automate your integration with the exception of the initial Authorization Request screen and redirect, which can only be accessed/authorized via a browser window and cannot be bypassed, but you should only need to authorize a connected account once.

 

After that initial connection, you are granted an access token and a refresh token. The access token has a lifespan of 24 hrs, at which point you'd use the refresh token to generate a new token set. Refreshing the token set can be done via API call and does not require you to grant access again. 

 

OAuth2 Authorization Code Flow

https://v3.developer.constantcontact.com/api_guide/server_flow.html

 

Please have a look and let us know if you have any other questions!


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.
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

Polls
How confident are you about the effectiveness of your current marketing strategy?

Top Choice: Not confident at all (72%)