I am using the API to access the bounce report. The Bounces on the email campaign tells me there are 151 but when i extract the xml file using the API, i only get 35% of the contacts. Not all of them come through. What am i doing wrong here?
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://api.constantcontact.com/ws/customers/" + uName + "/campaigns/" + campaignId + "/events/bounces");
When you request any of our collection URI's, our API system will return the full list in groups of 50. If you have more than 50 of any of the reports, at the very top of the XML there will be a node to return the next 50. The node will look like this:
I do see a link..in my case its
<link href="/ws/customers/username/campaigns/campaignId/events/bounces?next=1298" rel="next" />
So, in my app, I would need to get this url each time i run my bounce report then, correct? I guess the next(1298) changes for each bounce report.
The 1298 would change depending on the current bounce report ID is at. You would definitely want to get the url each time and then pass it as a post.
View API documentation, code samples, get your API key.Visit Page
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