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.

authenticate user before calling https://campaign-ui.constantcontact.com/campaign/ajax/campaigns?%0A

Highlighted
Occasional Contributor

authenticate user before calling https://campaign-ui.constantcontact.com/campaign/ajax/campaigns?%0A

current process:

step 1. Log in to constant contact

step 2. open this link in the browser 

https://campaign-ui.constantcontact.com/campaign/ajax/campaigns?%0A&statuses=1,2,3,4,5,6,7,9,10&type...
step 3. copy the result set and save as .json file

 

we want to automate the process. what is the cleanest way to automate step 1 and 2? 

we have an apikey if that is needed.

 

Thank you

 

1 REPLY 1
Highlighted
Moderator

Re: authenticate user before calling https://campaign-ui.constantcontact.com/campaign/ajax/campaigns

Hello TaylorM7,

 

The way you are looking to access the account and pull up data is not something that is supported. Actually it should not be used at all. Using one of our internal URLs in this manner is not the intended use and would be best if it did not continue.

 

I am happy to give you information on how to do this with your API key however. You will first want to check out the main API Documents section here to get an overview of how to use our API. http://developer.constantcontact.com/docs/developer-guides/overview-of-api-endpoints.html

 

The link you provided looks like you are trying to get the summary of your campaigns in the account. So you will need to "log in" to the account usually using oAuth2 which can be found here. http://developer.constantcontact.com/docs/authentication/authentication.html

 

From there you will use a GET method to pull the summary status of your campaigns and that can be found here.  http://developer.constantcontact.com/docs/email-campaigns/email-campaigns-collection.html?method=GET

 

You might instead want the reporting details of your campaigns and that can be pulled using this information. http://developer.constantcontact.com/docs/campaign-tracking/summary-report.html

 

Let me know if this helps out.


Regards,
Jimmy D.
Tier II API Support Engineer
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