node-bi
v1.2.17
Published
Use Microsoft PowerBI API with NodeJs
Downloads
38
Readme
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> );
});