示例#1
0
        public void TestCreateReportTableInfoHeader()
        {
            AccessToken accessToken = accessTokenService.GetAccessToken();

            TableInfoHeaderVo header = new TableInfoHeaderVo();

            header.eid              = "11738174";
            header.name             = "自定义API测试";
            header.reportCategoryId = "59cf54bd59b4462841b12c85"; // 报表分类Id
                                                                  // 来源于AdminTableInfos

            List <HeaderItemVo> headerItems = new List <HeaderItemVo>();

            headerItems.Add(new HeaderItemVo("表头1", "string"));
            headerItems.Add(new HeaderItemVo("表头2", "number"));
            headerItems.Add(new HeaderItemVo("表头3", "timestamp"));
            header.headerItems = headerItems;

            TableInfoIdParam tableInfoIdParam = openApiService.CreateReportTableInfoHeader(header, accessToken.accessToken);

            Console.WriteLine(tableInfoIdParam);
        }