Skip to content

getActiveSubscribers example #3

@abigwonderful

Description

@abigwonderful

rather than harassing you for full documentation, I was wondering if you could share a little insight on how to use getActiveSubscribers? I'm very new to both node and campaign monitor and struggling a bit.

what I've got:

 //more module dependancies above
 var createsend = require('createsend-node'),
 auth = { apiKey: 'XXXXXXXX' },
 api = new createsend(auth);

//unsub is my mongo schema

 unsub.statics.CMCall = function(callback){

//where do i provide the listid???

api.list.getActiveSubscribers(
    function (err, subscribers){
        for( var i = 0; i < subscribers.length; subscribers++){
            console.log(subscribers[i]);
        }
    }
  );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions