コード例 #1
0
        public static Result<List<CampaignMonitorAPI.SubscriberOpen>> GetOpens(string apiKey, string campaignID)
        {
            CampaignMonitorAPIWrapper.CampaignMonitorAPI.api _api = new CampaignMonitorAPI.api();

            object o = _api.GetCampaignOpens(apiKey, campaignID);

            if (o is CampaignMonitorAPI.Result)
                return new Result<List<CampaignMonitorAPI.SubscriberOpen>>((CampaignMonitorAPI.Result)o, null);
            else
                return new Result<List<CampaignMonitorAPI.SubscriberOpen>>(0, "Success", new List<CampaignMonitorAPI.SubscriberOpen>((IEnumerable<CampaignMonitorAPI.SubscriberOpen>)o));
        }