node package manager

node-bi

Use Microsoft PowerBI API with NodeJs

node-bi

getting started

Use the PowerBi API and create your own Data Schema.

var myClientId = 'Set your client id here',
    appConfig = {
      "oAuth": {
        "clientId": myClientId,
        "uri": "login.windows.net",
        "port": 443,
        "path": "/common/oauth2/token",
        "resourceUri": "https://analysis.windows.net/powerbi/api"
      },
      "powerBi": {
        "uri": "api.powerbi.com",
        "port": 443,
        "path": "/v1.0/myorg/datasets"
      }
    },
    dtoScheme = { ... },
    powerBiService = new require('node-bi')(appConfig, dtoScheme);
    
powerBiService.login( <username>, <password>, function() {
 
    powerBiService.sendData( <data> );
 
});