Note: This CloudFlare client is not yet production ready. It is still in the very early stages of development
var cloudflare = require('cloudflare').createClient({
email: '[email protected]',
token: 'somethingFromCloudFlare'
});
cloudflare.listDomains(function (err, domains) {
if (err) throw err;
domains.forEach(function (domain) {
var plan = domain.props.plan,
status = domain.zone_status_class.replace('status-', '');
console.log("Domain: %s, plan: %s, status: %s", domain.display_name, plan, status);
});
});