The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

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

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


http://code.google.com/p/devdefined-tools/wiki/OAuth 


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.


 


 


 

4 REPLIES 4
Highlighted
Employee

Re: How to get the summary data for a campaign using oauth mecha

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

Highlighted
New Member

Still can't get summary data

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?





Highlighted
Employee

Re: Still can't get summary data

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

Highlighted
Employee

Re: Still can't get summary data

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

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured