public void ActiveCampain_AddContact() { var emailadd = new List <Entities.Integration.InfusionSoft.EmailAddress>(); emailadd.Add(new Entities.Integration.InfusionSoft.EmailAddress() { email = "*****@*****.**", field = "EMAIL1" }); var phoneadd = new List <Entities.Integration.InfusionSoft.PhoneNumber>(); phoneadd.Add(new Entities.Integration.InfusionSoft.PhoneNumber() { number = "0909890910", field = "PHONE1" }); var res2 = new IntegrationServices.InfusionSoft.InfusionSoftTask("4ecdp3rfushp6gqj8zfp3zr7").AddContact(new Entities.Integration.InfusionSoft.ContactRequest() { email_addresses = emailadd, phone_numbers = phoneadd, family_name = "Xuân" + " " + "nam" }, "1"); var res_at = new IntegrationServices.ActiveCampain.ActiveCampainTask("https://yonofate.api-us1.com", "2c894518a67dc36c9227161a6fcc9ba062397ea29f7b2048705680372f03a2243d4df69b").AddContact(new Entities.Integration.ActiveCampain.ContactRequest { contact = new Entities.Integration.ActiveCampain.ContactModelRequest() { email = "*****@*****.**", phone = "0989890987", firstName = "Nguyen", lastName = "Lam" } }, "1"); }
public void AddContact() { var emailadd = new List <Entities.Integration.InfusionSoft.EmailAddress>(); emailadd.Add(new Entities.Integration.InfusionSoft.EmailAddress() { email = "*****@*****.**", field = "EMAIL1" }); var phoneadd = new List <Entities.Integration.InfusionSoft.PhoneNumber>(); phoneadd.Add(new Entities.Integration.InfusionSoft.PhoneNumber() { number = "0909890910", field = "PHONE1" }); var res2 = new IntegrationServices.InfusionSoft.InfusionSoftTask("4ecdp3rfushp6gqj8zfp3zr7").AddContact(new Entities.Integration.InfusionSoft.ContactRequest() { email_addresses = emailadd, phone_numbers = phoneadd, family_name = "Xuân" + " " + "nam" }, "1"); }