Join the Ready, Set, Send Challenge Week 3. Share your QR code or landing page and win a badge!

How to authenticate with the API from a console application / non web environment?

LizzetteC0
Rookie
0 Votes

Hi,

 

it seems all the examples provided assumes that we are accessing the Constant Contact API from a web environment (browser). 

 

I am trying to create a console application in C# that will access the API. I was able to get some calls working but I had to use the API references examples (ex : https://v3.developer.constantcontact.com/api_reference/index.html#!/Contact_Lists/getLists) , open the browser console and look at the request the browser makes for the call, then copy / paste the Bearer token and use it in my app.

 

Since it is my understanding that the Bearer Token will only lasts 24 hours at most, obviously this wouldn't work in a real case scenario.

What are the alternatives to making this work?

 

Thank you!

 

1 REPLY 1
Jimmy_D
Employee
0 Votes

Hi @LizzetteC0,

 

At this time the oAuth flow listed in our documentation is the only option. We are researching other options; however we do not have an ETA for any of them.


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