2

I would like to retrieve all subscribers for a list with their associated attributes. I am using the FuelSDK.

It seems like the Subscriber Object is the correct one to use, so that I return all the attributes (not just the slimmed down properties on the SubscriberList object).

However I'm lost with trying to apply a SimpleFilterPart or some other mechanism to filter based on List.

Any pointers ?

        var etSubscriber = new ET_Subscriber();
        etSubscriber.AuthStub = etClient;
        //etSubscriber.SearchFilter =  new SimpleFilterPart() { Property = "List", SimpleOperator = SimpleOperators.equals, 
        //    Value = new string[] { "3963" } };
        var subscriberReturn = etSubscriber.Get();


        var subscriberList = subscriberReturn.Results.ToList();
        subscriberList.ForEach(sub =>
        {
            var etSub = (ET_Subscriber)sub;
            etSubscriber.Attributes.ToList().ForEach(attr =>
                {
                    Console.WriteLine("Name: " + attr.Name + " Value: " + attr.Value);
                });
        });

1 Answer 1

0

I believe you'll have to do this in two parts, since Subscriber is just for one subscriber. After you have your subscriberList, then use the subscriber object to get additional attributes for one more subscribers.

2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .