Ejemplo n.º 1
0
        public static Result<CampaignMonitorAPI.CampaignSummary> GetSummary(string apiKey, string campaignID)
        {
            CampaignMonitorAPIWrapper.CampaignMonitorAPI.api _api = new CampaignMonitorAPI.api();

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

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