Example #1
0
        //private static string[] _defaultSubscriberColumns = new string[] { "ID", "SubscriberKey" };

        public Subscriber GetSubscriberBySLXID(string slxId)
        {
            SimpleFilterPart sfp = new SimpleFilterPart();

            sfp.Property       = "SubscrierKey";
            sfp.Value          = new string[] { slxId };
            sfp.SimpleOperator = SimpleOperators.equals;

            return(_client.Get <Subscriber>(sfp, _defaultColumns));
        }
Example #2
0
        public ExactTargetClient.List GetList(int listID)
        {
            SimpleFilterPart sfp = new SimpleFilterPart();

            sfp.Property       = "ID";
            sfp.SimpleOperator = SimpleOperators.equals;
            sfp.Value          = new string[] { listID.ToString() };

            var client = new ETClient();

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