The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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:
curl -X POST https://api.dropboxapi.com/2/team_log/get_events \ --header "Authorization: Bearer <Hidden access token>" \ --header "Content-Type: application/json" \ --data "{\"limit\": 50,\"category\": \"groups\"}"
I then tried making this work in power query with the following code:
let
access = "Bearer <Hidden Access Token>",
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
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
Solved! Go to Solution.
Hi @NathanMoyle ,
Please review the content in the following links and hope they can help you resolve the problem.
Connecting to data source hosted on Dropbox (check message 23 from @masplin)
Import multiple files from Dropbox folder into PowerBI and Excel (via PowerQuery) at once
Best Regards
Hi @NathanMoyle ,
Please review the content in the following links and hope they can help you resolve the problem.
Connecting to data source hosted on Dropbox (check message 23 from @masplin)
Import multiple files from Dropbox folder into PowerBI and Excel (via PowerQuery) at once
Best Regards