Echoing number of subscribers on WordPress web site

Hi there

Fairly new to CM so apologies if my question is frequently asked. I've had a search and not been able to find anything concrete with regards to my query.

I have used the Contact Form 7 WordPress plugin addon to successfully link my list to my web site using the API. The next thing I would like to do is echo the number of people who have signed up somewhere on my page. To do this, I assume I need to use the Subscribers.GetActive function, but I have no idea how to do it.

API info link: http://www.campaignmonitor.com/api/method/subscribers-getactive/

Is it simply a case of embedding the XML in my page somehow?

Thanks in advance,
James

jamblo, 7 years ago

Realise I may have posted this in the wrong section... could an admin please move if necessary, please.

roshodgekiss roshodgekiss, 7 years ago

Hi jamblo, thanks for writing in! Actually, you would be better off using the List.GetStats function for this. How you want to implement this really depends on a few things including which language you're comfortable coding in - please feel free to post on the API developer forum if you have any specific questions about working with the API.


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free