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

            object o = _api.GetClientDetail(apiKey, clientID);

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