如何使用rest api获取BI中报表的所有数据?

How to get all the data of a report in BI using restapi?

我有一个使用 sap BI 启动板中的查询创建的报告,现在如果我想获取创建的报告中的所有数据

使用高级休息客户端的 GET 方法

基地url:http://:6405/biprws/

要使用 GET 方法请求 url 要获取报告的所有数据,需要提供哪些参数?

您可以检索报告的数据或数据提供者的数据(即:查询)。

从数据提供者检索数据(对于重要文档,您需要调用 3 次):

获取数据提供者列表

[GET] http://<hostname>:6405/biprws/documents/<documentID>/dataproviders

获取数据提供者的流量(在不兼容的情况下可能大于1objects;当查询中有上下文时)。

[GET] http://<hostname>:6405/documents/<documentID>/dataproviders/DP0/flows/count

获取流的数据:

[GET] http://<hostname>:6405/documents/<documentID>/dataproviders/DP0/flows/0

正在从报告中检索数据

获取文档中的报表列表

[GET] http://<hostname>:6405/documents/<documentID>/reports

将报告内容导出为 CSV

[GET] http://<hostname>:6405/documents/<documentID>/reports/<reportID> 

发送最后一个请求 Accept header 等于 text/csv


For more information, you should have a look to the online documentation.