@00f100/pbie-node 中文文档教程
pbie-node
用打字稿编写的 NodeJS 库,专为使用 PowerBI 嵌入式报告而设计。
灵感来自 Power BI API 代码示例
Installation
>> npm i -s @mend3/pbie-node
Testing
>> npm test
Getting Started
安装后,创建或更新您的 .env 文件.
PBIE_APP_ID="your_app_id"
PBIE_WORKSPACE_ID="your_workspace_id"
PBIE_REPORT_ID="your_report_id"
PBIE_USERNAME="your_powerbi_user"
PBIE_PASSWORD="your_powerbi_password"
Getting access token
const { accessToken } = await getAuthToken();
Getting embed token for report
const { token } = await generateEmbedToken(reportId);
Getting embed token with roles for report
const { token } = await generateEmbedTokenWithRls(reportId, username, roles);
Issues
pbie-node
NodeJS library written in typescript and designed for using PowerBI embedded reports.
Inspired on Power BI API Code Samples
Installation
>> npm i -s @mend3/pbie-node
Testing
>> npm test
Getting Started
After installation, create or update your .env file.
PBIE_APP_ID="your_app_id"
PBIE_WORKSPACE_ID="your_workspace_id"
PBIE_REPORT_ID="your_report_id"
PBIE_USERNAME="your_powerbi_user"
PBIE_PASSWORD="your_powerbi_password"
Getting access token
const { accessToken } = await getAuthToken();
Getting embed token for report
const { token } = await generateEmbedToken(reportId);
Getting embed token with roles for report
const { token } = await generateEmbedTokenWithRls(reportId, username, roles);