<?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 Can't connect to API that uses POST (Dropbox) in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Can-t-connect-to-API-that-uses-POST-Dropbox/m-p/1942392#M30383</link>
    <description>&lt;P&gt;Hi, I am trying to connect to the dropbox API but keep getting a 404 error. The documentation gives me this example, whcih works well in command promt:&lt;/P&gt;&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/team_log/get_events \
    --header "Authorization: Bearer &amp;lt;Hidden access token&amp;gt;" \
    --header "Content-Type: application/json" \
    --data "{\"limit\": 50,\"category\": \"groups\"}"&lt;/PRE&gt;&lt;P&gt;I then tried making this work in power query with the following code:&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="javascript"&gt;let
  access = "Bearer &amp;lt;Hidden Access Token&amp;gt;",
  Source = Json.Document(Web.Contents("https://api.dropboxapi.com/2/team_log/get_events",[Query=[limit="50"],Headers=[#"Content-Type"="application/json",Authorization=access]]))
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;&amp;nbsp;I think the problem is that the API used POST but Web.Contents defaults to GET. I couldnt find any helpful information anywhere to tell me how to use POST&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jul 2021 09:02:42 GMT</pubDate>
    <dc:creator>NathanMoyle</dc:creator>
    <dc:date>2021-07-07T09:02:42Z</dc:date>
    <item>
      <title>Can't connect to API that uses POST (Dropbox)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Can-t-connect-to-API-that-uses-POST-Dropbox/m-p/1942392#M30383</link>
      <description>&lt;P&gt;Hi, I am trying to connect to the dropbox API but keep getting a 404 error. The documentation gives me this example, whcih works well in command promt:&lt;/P&gt;&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/team_log/get_events \
    --header "Authorization: Bearer &amp;lt;Hidden access token&amp;gt;" \
    --header "Content-Type: application/json" \
    --data "{\"limit\": 50,\"category\": \"groups\"}"&lt;/PRE&gt;&lt;P&gt;I then tried making this work in power query with the following code:&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="javascript"&gt;let
  access = "Bearer &amp;lt;Hidden Access Token&amp;gt;",
  Source = Json.Document(Web.Contents("https://api.dropboxapi.com/2/team_log/get_events",[Query=[limit="50"],Headers=[#"Content-Type"="application/json",Authorization=access]]))
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;&amp;nbsp;I think the problem is that the API used POST but Web.Contents defaults to GET. I couldnt find any helpful information anywhere to tell me how to use POST&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 09:02:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Can-t-connect-to-API-that-uses-POST-Dropbox/m-p/1942392#M30383</guid>
      <dc:creator>NathanMoyle</dc:creator>
      <dc:date>2021-07-07T09:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can't connect to API that uses POST (Dropbox)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Can-t-connect-to-API-that-uses-POST-Dropbox/m-p/1947440#M30420</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/311840"&gt;@NathanMoyle&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please review the content in the following links and hope they can help you resolve the problem.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Power-Query/Connecting-to-data-source-hosted-on-Dropbox/m-p/220277" target="_self"&gt;&lt;STRONG&gt;Connecting to data source hosted on Dropbox&lt;/STRONG&gt;&lt;/A&gt; (check message &lt;STRONG&gt;23&lt;/STRONG&gt; from&amp;nbsp;&lt;STRONG&gt;@masplin&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Power-Query/Power-BI-service-and-Dropbox/m-p/389595" target="_self"&gt;&lt;STRONG&gt;Power BI service and Dropbox&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.thebiccountant.com/2017/06/25/import-multiple-files-dropbox-folder-powerbi-excel-via-powerquery-at-once/" target="_self"&gt;&lt;STRONG&gt;Import multiple files from Dropbox folder into PowerBI and Excel (via PowerQuery) at once&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 06:34:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Can-t-connect-to-API-that-uses-POST-Dropbox/m-p/1947440#M30420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-09T06:34:12Z</dc:date>
    </item>
  </channel>
</rss>

