Esempio n. 1
0
        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" }));
        }
Esempio n. 2
0
        public IEnumerable <ExactTargetClient.List> GetAllLists()
        {
            var client = new ETClient();

            return(client.GetMany <List>(null, new string[] { "ObjectID", "ListName", "ID" }));
        }