<?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 API with different token name did not work ( Web.Contents function) in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/API-with-different-token-name-did-not-work-Web-Contents-function/m-p/2683827#M37742</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am searching for hours, watching tutorials and also have no idea how to get the right answer. So I hope you can help me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get the informations of this website per API:&amp;nbsp;&lt;A href="https://exchangeratesapi.io/documentation/" target="_blank" rel="noopener"&gt;Documentation | Exchange Rates API,&lt;/A&gt;&lt;BR /&gt;e.g. for the latest prices. So thats the documentation:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://api.exchangeratesapi.io/v1/&lt;SPAN class=""&gt;latest&lt;/SPAN&gt;
    ? access_key = API_KEY
    &amp;amp; base = USD
    &amp;amp; symbols = GBP,JPY,EUR&lt;/PRE&gt;&lt;P&gt;At first I try to connect the Webservice with the surface of power BI, but this didn't work because of the name of the key ( access_key) instead of Authorization. Now my plan was to take the code, how it was offerd in the blog (&lt;A href="https://blog.powp.co/my-power-query-web-contents-cheat-sheet-6a5bbfdce5eb" target="_blank" rel="noopener"&gt;Power Query Web.Contents cheat sheet walkthrough | by Oscar Martinez | PowPCo&lt;/A&gt;) at Example No. 5 but i don't get it. How I can adress the freaking name of the token?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to me something like :&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;LI-CODE lang="markup"&gt;let

Source = Json.Document(
        Web.Contents(
            "https://api.exchangeratesapi.io/v1/latest",
            [
Query = [
access_key = "123"

]])),

in
    Source&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Json.Document(Web.Contents(
        "https://api.exchangeratesapi.io/v1/latest",

        Query =[

    ApiKeyName="access_key",
    apikey = "123"
        ]
  
  ))

in 
     Source&lt;/LI-CODE&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;In this solution I should only set the "Key Name" and set the Key at the login screen. But It also did not work. Is the key incorrect or did I some mistakes?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Get-Data-through-API/m-p/369917" target="_blank" rel="noopener"&gt;Get Data through API - Microsoft Power BI Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Json.Document(Web.Contents(
        "https://api.exchangeratesapi.io/v1/latest",

      [

    ApiKeyName="? access_key"]
        
  
  ))
        
    
in 
     Source&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screen:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Do5779_0-1659691530945.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/760597iF061221C83880A04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Do5779_0-1659691530945.png" alt="Do5779_0-1659691530945.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;The Key "123" is only for the understanding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":loudly_crying_face:"&gt;😭&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2022 09:28:22 GMT</pubDate>
    <dc:creator>Do5779</dc:creator>
    <dc:date>2022-08-05T09:28:22Z</dc:date>
    <item>
      <title>API with different token name did not work ( Web.Contents function)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-with-different-token-name-did-not-work-Web-Contents-function/m-p/2683827#M37742</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am searching for hours, watching tutorials and also have no idea how to get the right answer. So I hope you can help me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get the informations of this website per API:&amp;nbsp;&lt;A href="https://exchangeratesapi.io/documentation/" target="_blank" rel="noopener"&gt;Documentation | Exchange Rates API,&lt;/A&gt;&lt;BR /&gt;e.g. for the latest prices. So thats the documentation:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;https://api.exchangeratesapi.io/v1/&lt;SPAN class=""&gt;latest&lt;/SPAN&gt;
    ? access_key = API_KEY
    &amp;amp; base = USD
    &amp;amp; symbols = GBP,JPY,EUR&lt;/PRE&gt;&lt;P&gt;At first I try to connect the Webservice with the surface of power BI, but this didn't work because of the name of the key ( access_key) instead of Authorization. Now my plan was to take the code, how it was offerd in the blog (&lt;A href="https://blog.powp.co/my-power-query-web-contents-cheat-sheet-6a5bbfdce5eb" target="_blank" rel="noopener"&gt;Power Query Web.Contents cheat sheet walkthrough | by Oscar Martinez | PowPCo&lt;/A&gt;) at Example No. 5 but i don't get it. How I can adress the freaking name of the token?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to me something like :&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;LI-CODE lang="markup"&gt;let

Source = Json.Document(
        Web.Contents(
            "https://api.exchangeratesapi.io/v1/latest",
            [
Query = [
access_key = "123"

]])),

in
    Source&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Json.Document(Web.Contents(
        "https://api.exchangeratesapi.io/v1/latest",

        Query =[

    ApiKeyName="access_key",
    apikey = "123"
        ]
  
  ))

in 
     Source&lt;/LI-CODE&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;In this solution I should only set the "Key Name" and set the Key at the login screen. But It also did not work. Is the key incorrect or did I some mistakes?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Get-Data-through-API/m-p/369917" target="_blank" rel="noopener"&gt;Get Data through API - Microsoft Power BI Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Json.Document(Web.Contents(
        "https://api.exchangeratesapi.io/v1/latest",

      [

    ApiKeyName="? access_key"]
        
  
  ))
        
    
in 
     Source&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screen:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Do5779_0-1659691530945.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/760597iF061221C83880A04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Do5779_0-1659691530945.png" alt="Do5779_0-1659691530945.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;The Key "123" is only for the understanding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":loudly_crying_face:"&gt;😭&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 09:28:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-with-different-token-name-did-not-work-Web-Contents-function/m-p/2683827#M37742</guid>
      <dc:creator>Do5779</dc:creator>
      <dc:date>2022-08-05T09:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: API with different token name did not work ( Web.Contents function)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-with-different-token-name-did-not-work-Web-Contents-function/m-p/2685435#M37761</link>
      <description>&lt;P&gt;Your first option is most appropriate but you are missing the other query components. You need to supply base and symbols too.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Aug 2022 00:59:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-with-different-token-name-did-not-work-Web-Contents-function/m-p/2685435#M37761</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-08-07T00:59:29Z</dc:date>
    </item>
  </channel>
</rss>

