public ActionResult List(string id) { listMembersInput listIn = new listMembersInput(apikey, id, EnumValues.listMembers_status.subscribed, 0, 100); listIn.api_AccessType = EnumValues.AccessType.Serial; listIn.api_OutputType = EnumValues.OutputType.JSON; listMembers listMem = new listMembers(listIn); listMembersOutput listOut = listMem.Execute(); return View(listOut.result); }
private List<string> GetListSubscriberEMails(string apikey, string id) { listMembersInput input_member = new listMembersInput(); input_member.parms.apikey = apikey; input_member.parms.id = id; input_member.parms.start = 0; input_member.parms.limit = 15000; input_member.parms.status = EnumValues.listMembers_status.cleaned | EnumValues.listMembers_status.NotSpecified | EnumValues.listMembers_status.subscribed | EnumValues.listMembers_status.unsubscribed | EnumValues.listMembers_status.updated; listMembers cmd = new listMembers(input_member); listMembersOutput output_member = cmd.Execute(); List<string> EMails = new List<string>(); output_member.result.ForEach(x => EMails.Add(x.email)); return EMails; }