Forum Discussion

brunozanoelo's avatar
brunozanoelo
Post Patron
9 years ago

Power BI API for IMPORT pbix files

Hello guys, all right?

I'm working on an application so that you can send multiple files to pbix different organizations of power bi.
My goal is to make this application in Delphi (for various reasons), with that, I have a few questions, and would be grateful if you guys could help me.

1) In these organizations, only the Power BI service is purchased, they will not have the azurre and not the 365.
It would not have problem?

2) To get the token, you do not need to install any security software?
https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-authenticate-to-power-bi-service/#clientID


3) To make the import pbix file is only necessary to get the token?

Thanks guys!!! :D 

3 Replies

  • Eric_Zhang's avatar
    Eric_Zhang
    Microsoft Employee

    I'm working on an application so that you can send multiple files to pbix different organizations of power bi.
    My goal is to make this application in Delphi (for various reasons), with that, I have a few questions, and would be grateful if you guys could help me.

    1) In these organizations, only the Power BI service is purchased, they will not have the azurre and not the 365.
    It would not have problem?

    2) To get the token, you do not need to install any security software?
    https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-authenticate-to-power-bi-service/#clientID


    3) To make the import pbix file is only necessary to get the token?


    1. There would not have any probelm.
    2. No need to install any software.
    3. I don't quite get this question, anyway check the AccessToken method in this sample.
    • brunozanoelo's avatar
      brunozanoelo
      Post Patron

      The problem is that I am developing in Delphi, not C #, Delphi unfortunately does not contain an integration API as C #, which already has the GetToken function.

      RequestAuthToken.Params.ParameterByName('grant_type').Value := 'password';
      RequestAuthToken.Params.ParameterByName('scope').Value         := 'openid';
      RequestAuthToken.Params.ParameterByName('resource').Value    := ResourceURI;
      RequestAuthToken.Params.ParameterByName('client_id').Value     := ClientID;

      My app is a native app, so i dont have a client_secret, what should i do? Need to pass this param?
      RequestAuthToken.Params.ParameterByName('client_secret').Value := ?

      RequestAuthToken.Params.ParameterByName('username').Value := ':MY_USR+NAME';
      RequestAuthToken.Params.ParameterByName('password').Value  := ':PASSWORD_OF_USER';

      What params should i use to get the token? In C# example, the program just call one function and nothing else.