public IEnumerable <ListSubscriber> GetSubscribersOnList(ExactTargetClient.List list) { SimpleFilterPart filter = new SimpleFilterPart(); filter.Property = "ListID"; filter.SimpleOperator = SimpleOperators.equals; filter.Value = new string[] { list.ID.ToString() }; return(_client.GetMany <ListSubscriber>(filter, new string[] { "SubscriberKey", "Status" })); }
public IEnumerable <ExactTargetClient.List> GetAllLists() { var client = new ETClient(); return(client.GetMany <List>(null, new string[] { "ObjectID", "ListName", "ID" })); }