<?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 URL for HttpWebRequerst in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/URL-for-HttpWebRequerst/m-p/205957#M6538</link>
    <description>&lt;P&gt;Hi, I try to get a Power Bi Report List per c# code. My problem is to find the right URL for my workspace.&lt;/P&gt;&lt;P&gt;The error happens, when I try to get the report list from the xml string in line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PBIReports&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; PBIReports = &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;JsonConvert&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.DeserializeObject&amp;lt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PBIReports&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;gt;(json)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Can someone help please, I try:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var uri = String.Format("&lt;A href="https://api.powerbi.com/v1.0/collections/{0}/workspaces/{1}/reports" target="_blank"&gt;https://api.powerbi.com/v1.0/collections/{0}/workspaces/{1}/reports&lt;/A&gt;", workspaceName, workspaceId);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I get workspaceName and the&lt;/P&gt;&lt;P&gt;workspaceId ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jul 2017 12:56:23 GMT</pubDate>
    <dc:creator>bprob</dc:creator>
    <dc:date>2017-07-04T12:56:23Z</dc:date>
    <item>
      <title>URL for HttpWebRequerst</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/URL-for-HttpWebRequerst/m-p/205957#M6538</link>
      <description>&lt;P&gt;Hi, I try to get a Power Bi Report List per c# code. My problem is to find the right URL for my workspace.&lt;/P&gt;&lt;P&gt;The error happens, when I try to get the report list from the xml string in line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PBIReports&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; PBIReports = &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;JsonConvert&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.DeserializeObject&amp;lt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PBIReports&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;gt;(json)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Can someone help please, I try:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var uri = String.Format("&lt;A href="https://api.powerbi.com/v1.0/collections/{0}/workspaces/{1}/reports" target="_blank"&gt;https://api.powerbi.com/v1.0/collections/{0}/workspaces/{1}/reports&lt;/A&gt;", workspaceName, workspaceId);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I get workspaceName and the&lt;/P&gt;&lt;P&gt;workspaceId ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 12:56:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/URL-for-HttpWebRequerst/m-p/205957#M6538</guid>
      <dc:creator>bprob</dc:creator>
      <dc:date>2017-07-04T12:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: URL for HttpWebRequerst</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/URL-for-HttpWebRequerst/m-p/206256#M6546</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/34921"&gt;@bprob&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi, I try to get a Power Bi Report List per c# code. My problem is to find the right URL for my workspace.&lt;/P&gt;
&lt;P&gt;The error happens, when I try to get the report list from the xml string in line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;PBIReports&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; PBIReports = &lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;JsonConvert&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.DeserializeObject&amp;lt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;PBIReports&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;gt;(json)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Can someone help please, I try:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var uri = String.Format("&lt;A href="https://api.powerbi.com/v1.0/collections/{0}/workspaces/{1}/reports" target="_blank"&gt;https://api.powerbi.com/v1.0/collections/{0}/workspaces/{1}/reports&lt;/A&gt;", workspaceName, workspaceId);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How I get workspaceName and the&lt;/P&gt;
&lt;P&gt;workspaceId ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/34921"&gt;@bprob&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;That collections and workspaces are for &lt;A href="https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-what-is-power-bi-embedded" target="_self"&gt;Power BI Embedded&lt;/A&gt;. You could find &amp;nbsp;the collection name, workspaceid and accesskey in &lt;A href="http://portal.azure.com" target="_self"&gt;Azure portal&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;GET /v1.0/collections/cisdemo/workspaces/79c71931-de23-49a8-a3c8-b79d2192fe0b/reports HTTP/1.1
Host: api.powerbi.com
Authorization: AppKey KJixsmmw+NGNOtjDZTLOMxxxxxxxxxxxHFp7G45RYHRIO23ViXY8iE/zNVHROCmcaOIFr6a2vmQ==&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/48682i3D90F721ED2FF9A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&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;To get the reports from Power BI Service, you could reference&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;GET /v1.0/myorg/groups/dc581184-a209-463b-8446-5432f16b6c15/reports HTTP/1.1
Host: api.powerbi.com
Authorization: Bearer eyJ0eXAiOiJKV1QixxxxxxxxPclZvM0Q1_m0Y3PA0k0pnytbhhcAzpzS2Mw
Content-Type: application/json&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Jul 2017 06:13:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/URL-for-HttpWebRequerst/m-p/206256#M6546</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-07-05T06:13:24Z</dc:date>
    </item>
  </channel>
</rss>

