Reporting on AutoResponders via API

Highlighted
Participating Solution Provider

Re: Reporting on AutoResponders via API

The v2 API has the capability to add emails to a list:

https://developer.constantcontact.com/docs/contacts-api/contacts-collection.html?method=POST

 

create a campaign:

https://developer.constantcontact.com/docs/email-campaigns/email-campaigns-collection.html?method=PO...

 

schedule the campaign:

https://developer.constantcontact.com/docs/campaign-scheduling/campaign-schedule-collection.html?met...

 

and report on the results:

https://developer.constantcontact.com/docs/campaign-tracking/summary-report.html

 

...so you could do it all from the API. 

Mike Sullivan is the founder of Analytics Edge, providing simple Excel-based report automation products for individuals and small businesses.
Highlighted
Participant

Re: Reporting on AutoResponders via API

I'm still just not seeing how I could add the contacts added in the first step to the campaign before sending it?

Highlighted
Participating Solution Provider

Re: Reporting on AutoResponders via API

You don't add a contact to a campaign, you add it to a list. Then you send the campaign to the list.

Mike Sullivan is the founder of Analytics Edge, providing simple Excel-based report automation products for individuals and small businesses.
Highlighted
Participant

Re: Reporting on AutoResponders via API

That's the part that I'm missing. How can I send a campaign to a list?

Highlighted
Participating Solution Provider

Re: Reporting on AutoResponders via API

Ah -- that is a step I overlooked. Using PUT to the campaign after it is created, you can add a list to it:

https://developer.constantcontact.com/docs/email-campaigns/email-campaign-resource.html?method=PUT

 

In the JSON body, you set the list ID

"sent_to_contact_lists": [{"id": "1"}]

Mike Sullivan is the founder of Analytics Edge, providing simple Excel-based report automation products for individuals and small businesses.
Developer Portal

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

Visit Page

Constant Contact Would Like To Hear From You!

We want to hear from customers like you about your favorite features and how they have helped your business or organization. Tell us by answering a few questions in...

Read More
Featured