<?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: Connecting to web api in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-to-web-api/m-p/784210#M20644</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any update ? If you solved your problem, please accept the answer so that it will help other community members&lt;/P&gt;</description>
    <pubDate>Thu, 05 Sep 2019 05:31:11 GMT</pubDate>
    <dc:creator>Jayendran</dc:creator>
    <dc:date>2019-09-05T05:31:11Z</dc:date>
    <item>
      <title>Connecting to web api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-to-web-api/m-p/775075#M20514</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very new to using Power bi, so this might be a very basic question, but hope someone can help me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Until now&amp;nbsp;I have only created dashboards based on data from our local server. However now I would like to connect to data from one of our online services.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They have provided the following:&lt;/P&gt;&lt;P&gt;&lt;A title="" href="https://speca.io/SimonOnlinePOS/external-api-v2?key=41502b8375f30e56b210877ef797b7e4" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://speca.io/SimonOnlinePOS/external-api-v2?key=41502b8375f30e56b210877ef797b7e4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;How would I easiest set a connect up? I have look though the many connects in Power bi, but only got more confused. So maybe someone, could guide me on where to start &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Jesper Miles&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 18:08:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connecting-to-web-api/m-p/775075#M20514</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-25T18:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to web api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-to-web-api/m-p/775249#M20517</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the &lt;STRONG&gt;Web Connector&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let
    Source = Json.Document(Web.Contents("http://https://speca.io/SimonOnlinePOS/external-api-v2"))
in
    Source&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-importing-and-analyzing-data-from-a-web-page" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/desktop-tutorial-importing-and-analyzing-data-from-a-web-page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/36685463/how-to-connect-my-web-api-wtih-power-bi-reports" target="_blank"&gt;https://stackoverflow.com/questions/36685463/how-to-connect-my-web-api-wtih-power-bi-reports&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 05:27:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connecting-to-web-api/m-p/775249#M20517</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-08-26T05:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to web api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-to-web-api/m-p/776007#M20522</link>
      <description>&lt;P&gt;Thansk&amp;nbsp;Jayendran!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been provieded with a token form the web service, where does that fit in ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you open the link, then i though i shoul build a Url like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Web.Contents("&lt;SPAN&gt;https://api.onlinepos.dk/api/getCardsList/{debtor}/{type}/{offset}&lt;/SPAN&gt;")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 18:08:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connecting-to-web-api/m-p/776007#M20522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-26T18:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to web api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-to-web-api/m-p/776092#M20526</link>
      <description>&lt;P&gt;If you go Get Data &amp;gt; Web Contents, you have the option of "Advanced".&lt;/P&gt;&lt;P&gt;This will allow you to apply Headers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2019-08-26 161351.png" style="width: 703px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/187715i5C084C2DB50AC916/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation 2019-08-26 161351.png" alt="Annotation 2019-08-26 161351.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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Love hearing about Power BI tips, jobs and news?&lt;BR /&gt;I love to share about these - connect with me!&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/stevencampbellmilwaukee" target="_blank" rel="noopener"&gt;&lt;U&gt;&lt;FONT color="#000000"&gt;Stay up to date on&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;&lt;/U&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="linkedin-logo.png" style="width: 100px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/183154i015F66CBB76D4A56/image-size/small?v=v2&amp;amp;px=200" role="button" title="linkedin-logo.png" alt="linkedin-logo.png" /&gt;&lt;/span&gt;&lt;/A&gt;&lt;A href="https://powerbi.tips/author/steve-campbell/" target="_blank" rel="noopener"&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Read my blogs on&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="powerbi.tips_.png" style="width: 100px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/183152iC0B45F50A9E030AD/image-size/small?v=v2&amp;amp;px=200" role="button" title="powerbi.tips_.png" alt="powerbi.tips_.png" /&gt;&lt;/span&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Remember to spread knowledge in the community when you can!&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tu.png" style="width: 31px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/183156i82CDF1F189324D48/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tu.png" alt="tu.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 21:15:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connecting-to-web-api/m-p/776092#M20526</guid>
      <dc:creator>SteveCampbell</dc:creator>
      <dc:date>2019-08-26T21:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to web api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-to-web-api/m-p/776300#M20530</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17551"&gt;@SteveCampbell&lt;/a&gt;&amp;nbsp; mentioned you can pass the token in the Headers,&lt;/P&gt;&lt;P&gt;In Power Query this will be like&lt;/P&gt;&lt;PRE&gt;Web.Contents("https://api.powerbi.com/v2.0/",[Headers=[Authorization=Bearer 412sdsx1....]])&lt;/PRE&gt;&lt;P&gt;Making much simpler you can also provide your query parameters lilke the below&lt;/P&gt;&lt;PRE&gt;Web.Contents(
    "https://data.gov.uk/api", 
    [
        RelativePath="3/action/package_search", 
        Query=
        [
            q="cows", 
            rows="20"
        ]
    ]
)&lt;/PRE&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Some References:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blog.crossjoin.co.uk/2016/08/16/using-the-relativepath-and-query-options-with-web-contents-in-power-query-and-power-bi-m-code/" target="_blank"&gt;https://blog.crossjoin.co.uk/2016/08/16/using-the-relativepath-and-query-options-with-web-contents-in-power-query-and-power-bi-m-code/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://eriksvensen.wordpress.com/2014/09/15/specifying-json-query-in-power-query-example-statistics-sweden/" target="_blank"&gt;https://eriksvensen.wordpress.com/2014/09/15/specifying-json-query-in-power-query-example-statistics-sweden/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blog.crossjoin.co.uk/2014/03/26/working-with-web-services-in-power-query/" target="_blank"&gt;https://blog.crossjoin.co.uk/2014/03/26/working-with-web-services-in-power-query/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 05:24:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connecting-to-web-api/m-p/776300#M20530</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-08-27T05:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to web api</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-to-web-api/m-p/784210#M20644</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any update ? If you solved your problem, please accept the answer so that it will help other community members&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 05:31:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connecting-to-web-api/m-p/784210#M20644</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-09-05T05:31:11Z</dc:date>
    </item>
  </channel>
</rss>

