예제 #1
0
        public static Result<CampaignMonitorAPI.ListDetail> GetDetail(string apiKey, string listID)
        {
            CampaignMonitorAPIWrapper.CampaignMonitorAPI.api _api = new CampaignMonitorAPI.api();

            object o = _api.GetListDetail(apiKey, listID);

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