Forum Discussion
JohnSwid
9 years agoNew Member
Connecting to data source hosted on Dropbox
Hello PowerBI-Ites, Has anyone had any luck connecting to Dropbox as a data source. Couldn't find many articles on this topic. Here's one article that had a solution we couldn't get to work: h...
elliotdixon
9 years agoResponsive Resident
I agree with mike_honey - cant seem to get it working.
Any tips on connecting into the dropbox files would be great.
hugoberry
9 years agoResponsive Resident
The documentation on their developer site is quite comperhansive https://www.dropbox.com/developers/documentation/http/documentation
As for some boilerplate code to get you going have a look at the snippet below for an example of geting folder listing.
let
data = [ path= "/code",
recursive=false,
include_media_info=false,
include_deleted=false,
include_has_explicit_shared_members=false],
header = [ #"Authorization"="Bearer ZZZZZZZZZZZ",
#"Content-Type"= "application/json"],
response = Web.Contents("https://api.dropboxapi.com/2/files/list_folder",[Content=Json.FromValue(data),Headers=header]),
out = Json.Document(response,1252)
in
outThe only setup that I had to do on the Dropbox site was to create an App in the developer space and then generate an access key, which by the way is ZZZZZZZZZZ in my snippet.