Tonight (8/3) between 11:00 PM - 11:30 PM ET, we need to make a few updates to our site. During this time some customers will not be able to access their contacts. We recommend not using your account during this time. Thank you for your patience.

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

Highlighted
Consulting & Training

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

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
Highlighted
Moderator

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

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
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Meet the New Constant Contact

ctct_ripple_logo_icon_blue_orange.pngConstant Contact is Bigger. Better. Smarter. Check out our new look and Power On!

 

Read More
Featured