如何在我们自己的应用程序中获取 power bi 仪表板? [英] How to get power bi dashboard in our own application?

查看:19
本文介绍了如何在我们自己的应用程序中获取 power bi 仪表板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Power bi 的新手.我在那里有 power bi 帐户我创建了一些带有一些报告的仪表板,现在我想使用这些仪表板并使用 power bi rest API (https://docs.microsoft.com/en-us/rest/api/power-bi/)in 我们自己的应用程序.我们的应用程序使用 .net 核心作为后端,使用 angular 6 作为前端.我们需要从 .net 核心调用 power bi API.如果我更改权力报告,它也应该反映在我们的应用程序中.我是新手,所以我不知道从哪里开始?

I am new to power bi. I have power bi account there I created some dashboards with some reports, now I want to consume those dashboard and report using power bi rest API (https://docs.microsoft.com/en-us/rest/api/power-bi/)in our own application. Our application we used the .net core for back-end and angular 6 for the front end. We need to call power bi API from the .net core. If I change report in power it should also reflect in our application. I am new so I am not understanding from where to start?

推荐答案

从阅读这些开始:

本质上,您需要使用 Azure Active Directory 身份验证库 (ADAL),获取 embedUrl 的仪表板,它的 id 和它所在的组的 id.它将使用 嵌入式客户端加载到 html 文件的 div 部分.有关详细信息,请查看官方 示例.App Owns Data 表示您使用一个帐户进行身份验证,您的应用程序知道该帐户(例如存储在配置中的用户名和密码),而 User Owns Data 表示每个用户使用他自己的 Power BI 凭据来访问嵌入的元素.

In essence, you need to authenticate using Azure Active Directory Authentication Libraries (ADAL), obtain the embedUrl of the dashboard, it's id and the id of the group in which it is. It will be loaded in a div section of a html file using the embedded client. For more details look at the official samples. App Owns Data means that for authenticating you are using one account, which your application knows (e.g. user name and password stored in the configuration), while User Owns Data means that each user uses his own Power BI credentials to access the embedded elements.

这篇关于如何在我们自己的应用程序中获取 power bi 仪表板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆