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

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

问题描述

我是Power Bi的新手。我在那里拥有Power Bi帐户,我创建了一些带有一些报告的仪表板,现在我想使用Power Bi Rest API( https://docs.microsoft.com/zh-cn/rest/api/power-bi/)in 我们自己的应用程序。在我们的应用程序中,后端使用.net内核,前端使用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?

推荐答案

首先阅读以下内容:

  • Embedding with Power BI
  • Tutorial: Embed a Power BI report, dashboard, or tile into an application for your customers
  • Microsoft Power BI Embedded Playground

本质上,您需要使用 Azure Active Directory身份验证库(ADAL),获取 embedUrl ,它的ID和它所在的组的ID。将使用嵌入式客户端将其加载到html文件的div部分中。有关更多详细信息,请参阅正式的样本应用拥有数据表示,为了验证您使用的是您的应用知道的一个帐户(例如,配置中存储的用户名和密码),而 User拥有数据意味着每个用户都使用自己的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天全站免登陆