klevendoglu
klevendoglu

Reputation: 622

Power bi how to initialize service client credentials in .net sdk

I'm using Microsoft.PowerBI.Api nuget package and follow through this sample under the repo.

Client expects credentials and I cannot figure out how to initialize it.

enter image description here

Upvotes: 0

Views: 689

Answers (1)

Mehdi Kacim
Mehdi Kacim

Reputation: 152

You need initialize new ServiceClientCredentials and pass in PowerBIClient constructor at line 26 (using statement)

What type of authentication do you want to use? Basic (username and password) token ? Windows authentication ?

Thank you in advance.

Upvotes: 1

Related Questions