<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using Power BI Query to submit a PUT API request to obtain authorization token for GET API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Using-Power-BI-Query-to-submit-a-PUT-API-request-to-obtain/m-p/1533801#M26687</link>
    <description>&lt;P&gt;Probably a beginner question here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to access a third party vendor API (GET).&amp;nbsp; It requires an authorization token based on user supplied ID and password through a PUT API.&amp;nbsp; Is there a way to use a Power BI query to get the authorization token.&amp;nbsp; Once that is done is there a way to ensure it is dynamically included in the power BI query GET API?&amp;nbsp; I think I need to include the PUT in the header somehow, but I am not able to figure this out.&lt;/P&gt;&lt;P&gt;The PUT API is structured as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;URL: &lt;/STRONG&gt;&lt;A href="https://xxxxx.xxxxx-put.com/api/Auth/Login" target="_blank"&gt;https://xxxxx.xxxxx-put.com/api/Auth/Login&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request Type: &lt;/STRONG&gt;PUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Parameter Content Type: &lt;/STRONG&gt;application/json&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Body Parameters: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"Username": "string",&lt;/P&gt;&lt;P&gt;"Password": "string",&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Response: &lt;/STRONG&gt;{&lt;/P&gt;&lt;P&gt;"Data": {&lt;/P&gt;&lt;P&gt;"access_token": "xbxbssgdgdgdgdgdggdgd",&lt;/P&gt;&lt;P&gt;"token_type": "bearer"&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;"KeyValue": null,&lt;/P&gt;&lt;P&gt;"IsSuccessful": true,&lt;/P&gt;&lt;P&gt;"Errors": null&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;The get API is as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://clientapi.sea-link.com/api/General/GetData" target="_blank"&gt;https://xxxxx.get.com/api/General/GetData&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated&lt;/P&gt;</description>
    <pubDate>Fri, 04 Dec 2020 23:55:44 GMT</pubDate>
    <dc:creator>gand3rs0n</dc:creator>
    <dc:date>2020-12-04T23:55:44Z</dc:date>
    <item>
      <title>Using Power BI Query to submit a PUT API request to obtain authorization token for GET API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Power-BI-Query-to-submit-a-PUT-API-request-to-obtain/m-p/1533801#M26687</link>
      <description>&lt;P&gt;Probably a beginner question here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to access a third party vendor API (GET).&amp;nbsp; It requires an authorization token based on user supplied ID and password through a PUT API.&amp;nbsp; Is there a way to use a Power BI query to get the authorization token.&amp;nbsp; Once that is done is there a way to ensure it is dynamically included in the power BI query GET API?&amp;nbsp; I think I need to include the PUT in the header somehow, but I am not able to figure this out.&lt;/P&gt;&lt;P&gt;The PUT API is structured as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;URL: &lt;/STRONG&gt;&lt;A href="https://xxxxx.xxxxx-put.com/api/Auth/Login" target="_blank"&gt;https://xxxxx.xxxxx-put.com/api/Auth/Login&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request Type: &lt;/STRONG&gt;PUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Parameter Content Type: &lt;/STRONG&gt;application/json&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Body Parameters: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"Username": "string",&lt;/P&gt;&lt;P&gt;"Password": "string",&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Response: &lt;/STRONG&gt;{&lt;/P&gt;&lt;P&gt;"Data": {&lt;/P&gt;&lt;P&gt;"access_token": "xbxbssgdgdgdgdgdggdgd",&lt;/P&gt;&lt;P&gt;"token_type": "bearer"&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;P&gt;"KeyValue": null,&lt;/P&gt;&lt;P&gt;"IsSuccessful": true,&lt;/P&gt;&lt;P&gt;"Errors": null&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;The get API is as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://clientapi.sea-link.com/api/General/GetData" target="_blank"&gt;https://xxxxx.get.com/api/General/GetData&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 23:55:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Power-BI-Query-to-submit-a-PUT-API-request-to-obtain/m-p/1533801#M26687</guid>
      <dc:creator>gand3rs0n</dc:creator>
      <dc:date>2020-12-04T23:55:44Z</dc:date>
    </item>
  </channel>
</rss>

