Followers Are Great, Contacts Are Gold. Create a Free AI-Quiz With Lead Magnet to Share With Your Followers and Own Your Contacts!

OAuth 2.0 Integration for Automated Contact API Submission

user742094
Rookie
0 Votes

I want to integrate  Contact APIs with Java spring boot application to submit user data, my application to constantcontact platform as a job (background running job without manual interruption). But when I check their API documentation, I saw they are using only OAuth2 mechanism. As per my understanding, seem that needs manual involvement in authorization step before get bearer token. But my expectation is to do this integration without having manual involvement step. how can I achieve this? any option can you suggest (something like just parsing clientId and secretKey to authorize without browser step)

1 REPLY 1
John__B
Employee
0 Votes

Hello user742094,

 

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.

 

Each of our available OAuth2 authorization flows requires the use of a browser window for a user to grant access to an application for their Constant Contact account through a permission request screen, however, you should only need to do this once as after access has been granted, your application can maintain account access through the use of refresh tokens.

 

If you don’t want to use redirects for authorization, I would recommend looking into our device flow, which doesn’t use redirects or the client secret. I’m including documentation for this authorization flow below.

 

OAuth2 Device Flow:

https://developer.constantcontact.com/api_guide/device_flow.html

 

Please have a look and 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