We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

How to get the summary data for a campaign using oauth mechanism

Regular Participant

How to get the summary data for a campaign using oauth mechanism

Hello All,

After struggling for some days, at last i was successfully able to go through the oauth mechanism process using c# and Asp.NET , i espeically thankful to all the constant contact support team in guiding me the right way to achieve the success.  The following url given by the support team really really helped me in completing my task.


especially go throug this http://code.google.com/p/devdefined-tools/wiki/OAuthConsumer url if you are going to consume the resources from constantcontact i.e., for getting the oauth authentication.

As of now i am able to get the data feeds successfully from the constant contact apis,

But there was a problem in getting the summary data for a campaign using oauth mechanism, to overcome this problem as of now only for this method i am going through the basic authentication using clients username and password and my url address i am using for oauth mechanism along with the other parameters (i am nog giving here) as supposed by oauth and constantcontact api is as below

 1.  https://api.constantcontact.com/ws/customers/{myclientusername}/campaigns/1104186216852

and the error message i am getting when i am using oauth mechanism is as followos

The remote server returned an error: (400) Bad Request.

and for the rest of the url address i am getting the data as supposed using oauth mechanism like given below.

2. https://api.constantcontact.com/ws/customers/{myclientusername}/campaigns

3. https://api.constantcontact.com/ws/customers/{myclientusername}/campaigns/1104186216852/events/

  I am not sure what is going wrong here with 1st url, is it something that need to be fixed at constantcontact provider end or need to do some settings at my end in my code i don't know?  Please kindly let me know in this request.





I have actually been able to replicate this issue with my own account, so it appears that this is not a setting in your account. I am going to do some more research into this and will update this thread as soon as I have more information. Thank you for bringing this to our attention.

David J

Occasional Participant

I'm having this problem as well.  Using oAuth the calls to /ws/customers/{user}/campaigns/{id}/ return a 400 error, but otherwise calls to /ws/customers/{user}/campaigns and /ws/customers/{user}/campaigns/{id}/events/ work fine.  Any update?


This is still something that is going on, but is going to be resolved in the very near future. Unfortunately I cannot offer an exact resolution date for this, but I can say that we are planning on this being fixed shortly.  Again, I apologize for any inconvenience that this issue has caused. Please let me know if you have any questions or concerns regarding this. Thanks.

David J

I apologize for not updating this thread sooner, but this issue has been resolved. You can now successfully pull detailed campaign data while using OAuth as opposed to Basic authentication.

David J

Developer Portal

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

Visit Page