Querying the campaign collection

JohnnyD37
Regular Participant

Querying the campaign collection

Is it possible to query campaign collection to retrieve only campaigns in some period?


For example (pseudo code):
https://api.constantcontact.com/ws/customers/{user-name}/campaigns?date-from=’2012-01-01’&date-to=’2012-06-01’


or the only way is to retrieve all campaigns (handling rel="next" if we have more than 50 campaigns) and then locally filter the collection?

 

My final intention is to retrieve bounced mail addresses (contacts) in specified period.

 

Thanks in advance

1 REPLY 1
Shannon_W
Employee

Hi,

 

I see what you mean.  Unfortunately there isn't a way to get a list of campaigns sent in a given time period.  We are working on version 2 of our API, and I will pass on the suggestion for that feature.

 

You're correct, you would have to work through the pages of email campaigns and process it on your side to get the bounces in a given time period.

 

Best Regards,

Shannon W.

API Support Specialist

Developer Portal

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

Visit Page