<?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 Re: API setup authorization bearer. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/API-setup-authorization-bearer/m-p/2749249#M38411</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/436091"&gt;@nroeder&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The access token will&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-tokens?tabs=embed-for-customers#azure-ad-token" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;expire after an hour.&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;So you should use script to refresh&amp;nbsp;the token.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/refresh-token" target="_blank"&gt;Refresh the access token in Power BI embedded analytics | Microsoft Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Then use the token in the headers for the rest api.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details, you can refer this post&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/REST-API-Get-Access-Token/m-p/1895937" target="_blank"&gt;Solved: REST API Get Access Token - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ chenwu zhu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 05:58:49 GMT</pubDate>
    <dc:creator>v-chenwuz-msft</dc:creator>
    <dc:date>2022-09-06T05:58:49Z</dc:date>
    <item>
      <title>API setup authorization bearer.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-setup-authorization-bearer/m-p/2748685#M38404</link>
      <description>&lt;P&gt;I've followed all the different insturctions to setup the API. The one thing I cannot figure out is where and how to get the authorization code/string/bearer. I'm trying to connect my dataset to Retool.&amp;nbsp;retool.com The only way I can get it to work is to copy the Authorization: Bearer from&amp;nbsp;&lt;A href="https://docs.microsoft.com/" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/&lt;/A&gt;&amp;nbsp;example but this only works for a day and then it changes. I'm sure i'm missing something incredibly simple but i cannot figure it out. Any help would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 20:20:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-setup-authorization-bearer/m-p/2748685#M38404</guid>
      <dc:creator>nroeder</dc:creator>
      <dc:date>2022-09-05T20:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: API setup authorization bearer.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-setup-authorization-bearer/m-p/2749249#M38411</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/436091"&gt;@nroeder&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The access token will&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-tokens?tabs=embed-for-customers#azure-ad-token" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;expire after an hour.&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;So you should use script to refresh&amp;nbsp;the token.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/refresh-token" target="_blank"&gt;Refresh the access token in Power BI embedded analytics | Microsoft Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Then use the token in the headers for the rest api.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details, you can refer this post&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/REST-API-Get-Access-Token/m-p/1895937" target="_blank"&gt;Solved: REST API Get Access Token - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ chenwu zhu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 05:58:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-setup-authorization-bearer/m-p/2749249#M38411</guid>
      <dc:creator>v-chenwuz-msft</dc:creator>
      <dc:date>2022-09-06T05:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: API setup authorization bearer.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-setup-authorization-bearer/m-p/2750416#M38428</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nroeder_0-1662470864826.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/778784iFC582FD213BCB44B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nroeder_0-1662470864826.jpeg" alt="nroeder_0-1662470864826.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks! I definetley think i'm on the right track but everything I find is based on coding. Here is the interface i'm trying to connect. Any idea?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 13:27:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-setup-authorization-bearer/m-p/2750416#M38428</guid>
      <dc:creator>nroeder</dc:creator>
      <dc:date>2022-09-06T13:27:53Z</dc:date>
    </item>
  </channel>
</rss>

