<?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: Create a function to call an API in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-function-to-call-an-API/m-p/3446209#M131122</link>
    <description>&lt;P&gt;we can give that a try.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 15:25:26 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-09-25T15:25:26Z</dc:date>
    <item>
      <title>Create a function to call an API</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-function-to-call-an-API/m-p/3443808#M130893</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last month, I created a connection to an API where there was a list (format = text) and the function modified the Relative Path to call the API with every single element of the list and worked perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I'm trying to do the same for a different data source but with this new one, I need to add the authorization input. I tried to do it but I was not able to find the way to create the function bearing in mind the authorization. How could I do it to generate the function adding the authorization (it's always the same no matter the Game ID)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example of the API call for a simple game (it's what I want to create a function like the one above for this website, with the authorization input included in the call function):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your time.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 21:18:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-function-to-call-an-API/m-p/3443808#M130893</guid>
      <dc:creator>sfernamer</dc:creator>
      <dc:date>2023-09-22T21:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create a function to call an API</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-function-to-call-an-API/m-p/3444812#M131031</link>
      <description>&lt;P&gt;You likely will have to run a separate API call to collect the bearer token.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 16:52:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-function-to-call-an-API/m-p/3444812#M131031</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-09-24T16:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create a function to call an API</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-function-to-call-an-API/m-p/3444928#M131036</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you share an example about how to do it? So I guess I should do an API call for the authorizer, save the result into a variable and then, do the 2nd API Call, adding the variable to the call?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 21:42:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-function-to-call-an-API/m-p/3444928#M131036</guid>
      <dc:creator>sfernamer</dc:creator>
      <dc:date>2023-09-24T21:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create a function to call an API</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-function-to-call-an-API/m-p/3444980#M131041</link>
      <description>&lt;P&gt;That's correct.&amp;nbsp; As you can probably appreciate it is nearly impossible to help with API queries without access to said API&amp;nbsp; (which you may not be willing to provide for understandable reasons). You're on your own here.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 00:19:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-function-to-call-an-API/m-p/3444980#M131041</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-09-25T00:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create a function to call an API</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-function-to-call-an-API/m-p/3445842#M131094</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you agree, I can share you the info of the API though Direct Message and we see how to do it. It's from a public site so nothing impossible to share. Let me know here or on private.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your time.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 11:38:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-function-to-call-an-API/m-p/3445842#M131094</guid>
      <dc:creator>sfernamer</dc:creator>
      <dc:date>2023-09-25T11:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create a function to call an API</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-function-to-call-an-API/m-p/3446209#M131122</link>
      <description>&lt;P&gt;we can give that a try.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 15:25:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-function-to-call-an-API/m-p/3446209#M131122</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-09-25T15:25:26Z</dc:date>
    </item>
  </channel>
</rss>

