Exemple #1
0
        public PBIReports RESTGetReports(string groupId)
        {
            string     responseContent = RESTWrapper("groups/" + groupId + "/reports");
            PBIReports pbiReports      = JsonConvert.DeserializeObject <PBIReports>(responseContent);

            return(pbiReports);
        }
Exemple #2
0
        public PBIReport RESTGetReportByName(string groupName, string reportName)
        {
            PBIGroup group = RESTGetGroupByName(groupName);

            string     responseContent = RESTWrapper(String.Format("groups/{0}/Reports?$filter=name eq '{1}'", group.id, reportName));
            PBIReports pbiReports      = JsonConvert.DeserializeObject <PBIReports>(responseContent);

            return(pbiReports.List[0]);
        }
Exemple #3
0
        public void RESTListReports()
        {
            PBIGroups groups = RESTGetGroups();

            foreach (PBIGroup group in groups.List)
            {
                Console.WriteLine(group.name);

                PBIReports reports = RESTGetReports(group.id);

                foreach (PBIReport report in reports.List)
                {
                    Console.WriteLine("     " + report.name);
                }
            }
        }