Exemple #1
0
        public void LiveContactTrackingSendsTest()
        {
            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<SendActivity> a = cc.GetContactTrackingSends(contacts.Results[0].Id, DateTime.Now.AddMonths(-1));
            Assert.IsNotNull(a);
        }