開發人員可如何利用 Power BI API?What can developers do with the Power BI API?

Power BI 顯示互動式儀表板,可即時從不同的資料來源建立及更新。Power BI displays dashboards that are interactive, and can be created and updated from many different data sources in real time. 您可以使用任何支援 REST 呼叫的程式設計語言,建立即時整合 Power BI 儀表板的應用程式。Using any programming language that supports REST calls, you can create apps that integrate with a Power BI dashboard in real time. 您也可以將 Power BI 磚和報告整合到應用程式中。You can also integrate Power BI tiles and reports into apps.

開發人員也可以建置自己專屬的資料視覺效果,並將其用於互動式報表及儀表板。Developers can also build their own data visualizations that can be used in interactive reports and dashboards.

以下是一些您可以使用 Power BI API 進行的操作。Here are some of the things you can do with the Power BI APIs.

若要這樣做To do this 請前往這裡Go here
為 Power BI 使用者和非 Power BI 使用者 (應用程式擁有資料) 內嵌儀表板、報告及圖格Embed dashboards, reports, and tiles for Power BI users and Non-Power BI users (app owns data) 如何內嵌 Power BI 儀表板、報表和圖格How to embed your Power BI dashboards, reports, and tiles
擴充現有商務工作流程,將關鍵資料推送至 Power BI 儀表板。Extend an existing business workflow to push key data into a Power BI dashboard. 將資料推入儀表板中Push data into a dashboard
向 Power BI 驗證。Authenticate to Power BI. 向 Power BI 驗證Authenticate to Power BI
建立自訂視覺效果。Create a custom visual. Developing a Power BI custom visual (開發 Power BI 自訂視覺效果)Developing a Power BI custom visual

注意

Power BI API 仍然將應用程式工作區稱為群組。The Power BI APIs still refer to app workspaces as groups. 任何對群組的引述都表示您處理的是應用程式工作區。Any references to groups mean that you are working with app workspaces.

Power BI 開發人員範例Power BI Developer samples

Power BI 開發人員範例包含用來內嵌儀表板、報告和圖格的項目。The Power BI Developer samples include items for embedding dashboards, reports and tiles.

Power BI 開發人員範例Power BI Developer samples

  • 應用程式擁有資料內的範例適用於針對非 Power BI 使用者內嵌。Samples within App Owns Data are for embedding with non-Power BI users.
  • 使用者擁有資料內的範例適用於針對 Power BI 使用者內嵌。Samples within User Owns Data are for embedding with Power BI users.

GitHub 存放庫GitHub repositories

開發人員工具Developer tools

以下是可用來協助您開發 Power BI 項目的工具。The following are tools you can use to aid in your development of Power BI items.

您可以完成內嵌安裝工具以快速開始使用並下載關於如何內嵌 Power BI 內容的應用程式範例。You can go through the Embedding setup tool to quickly get started and download a sample application on how to embed Power BI content.

選擇最適合您的方案:Choose the solution that is right for you:

如需使用 JavaScript API 的完整範例,您可以使用測試網工具For a full sample of using the JavaScript API, you can use the Playground tool . 此工具是一個可測試不同類型 Power BI Embedded 範例的快速方式。This tool is a quick way to play with different types of Power BI Embedded samples. 您也可瀏覽 PowerBI-JavaScript Wiki 頁面,取得有關 JavaScript API 的詳細資訊。You also can get more Information about the JavaScript API by visiting the PowerBI-JavaScript wiki page.

將資料推送至 Power BIPush data into Power BI

您可以使用 Power BI API 以將資料推送至資料集。You can use the Power BI API to push data into a dataset. 此功能可讓您將資料列新增至資料集內的資料表。This feature allows you to add a row to a table within a dataset. 新資料接著會反映在儀表板的磚中,以及報表的視覺效果內。The new data can then be reflected in tiles on a dashboard and within visuals within your report.

推送資料範例

後續步驟Next steps

將資料推送至資料集Push data into a dataset
Developing a Power BI custom visual (開發 Power BI 自訂視覺效果)Developing a Power BI custom visual
Power BI REST API 參考Power BI REST API reference

有其他問題嗎?More questions? 嘗試在 Power BI 社群提問Try asking the Power BI Community