public static Result<List<CampaignMonitorAPI.Subscriber>> GetActive(string apiKey, string listID, DateTime addedAfter) { CampaignMonitorAPIWrapper.CampaignMonitorAPI.api _api = new CampaignMonitorAPI.api(); object o = _api.GetSubscribers(apiKey, listID, addedAfter.ToString("yyyy-MM-dd HH:mm:ss")); if (o is CampaignMonitorAPI.Result) return new Result<List<CampaignMonitorAPI.Subscriber>>((CampaignMonitorAPI.Result)o, null); else return new Result<List<CampaignMonitorAPI.Subscriber>>(0, "Success", new List<CampaignMonitorAPI.Subscriber>((IEnumerable<CampaignMonitorAPI.Subscriber>)o)); }
public static Result <List <CampaignMonitorAPI.Subscriber> > GetActive(string apiKey, string listID, DateTime addedAfter) { CampaignMonitorAPIWrapper.CampaignMonitorAPI.api _api = new CampaignMonitorAPI.api(); object o = _api.GetSubscribers(apiKey, listID, addedAfter.ToString("yyyy-MM-dd HH:mm:ss")); if (o is CampaignMonitorAPI.Result) { return(new Result <List <CampaignMonitorAPI.Subscriber> >((CampaignMonitorAPI.Result)o, null)); } else { return(new Result <List <CampaignMonitorAPI.Subscriber> >(0, "Success", new List <CampaignMonitorAPI.Subscriber>((IEnumerable <CampaignMonitorAPI.Subscriber>)o))); } }