@00f100/pbie-node
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

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);

Issues

Repo Issues

Power BI Support Page

Power BI Ideas

Package Sidebar

Install

npm i @00f100/pbie-node

Weekly Downloads

7

Version

1.3.1

License

MIT

Unpacked Size

39.4 kB

Total Files

36

Last publish

Collaborators

  • 00f100