I'm using the .net wrapper of campaign monitor.
I'd like to ask if there is a SINGLE call which retrieves all lists including the summary of subscribers in it. (Same data like visiting the "Lists & Subscribers" link via web browser).
ATM I'm looping 2 times, once to get the list ID's, then calling Stats().TotalActiveSubscribers for each given list ID.
Of course it's terribly slow, am I missing something here?
Thanks in advance,
There isn't a single method which shows all lists including the total active subscriber count. However, I've just added those comments to our feature request list as something to consider.
The only way to get this data would be to do exactly what you're doing. Out of interest, which method are you calling to get the total subscriber count?
Another option that would help speed up the process would be to cache the details in your app. You could either set this up to check for new updates every x number of minutes. Or maybe update those stats periodically in a background procedure.
For a bit more details on .NET caching, check out: http://www.asp.net/web-forms/overview/performance-and-caching
I hope that helps!
While inside the loop which gives me the list ID's i'm using:
int subs = new List(auth, ListIDhere).Stats().TotalActiveSubscribers;
Doesn't make a difference using it in a locally stored array of list ID's