예제 #1
0
        public void LiveContactTrackingOpensTest()
        {
            var cc = new ConstantContact(ApiKey, AccessToken);

            ResultSet<Contact> contacts = cc.GetContacts(DateTime.Now.AddMonths(-1));
            Assert.IsNotNull(contacts);
            Assert.IsNotNull(contacts.Results);
            Assert.IsTrue(contacts.Results.Count > 0);

            ResultSet<OpenActivity> a = cc.GetContactTrackingOpens(contacts.Results[0].Id, DateTime.Now.AddMonths(-1));
            Assert.IsNotNull(a);
        }