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.
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!
Announcements
Join our list to be notified of new features and updates to our V3 API.
Sign Up