cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dropbox file path for direct acces

Dropbox file path for direct acces

Deac P.
New member | Level 1

Hi everyone,

I'm trying to develop a web application which would allow me to play audio files from my dropbox account. I'm using the Dropbox API to navigate through the files and folders in my account and get only the audio files i want. Is it possible to get the full path to a file from my account that would be accesible by everyone who has a valid acces token ?

From what i could find out until now the Metadata's of the files retrieved by the ListFolderAsync method is not retriving any absolute urls to a specific file.

All i could find is that i can download a file in memory using the DownloadAsync method, but i think there must be a way of directly accesing a file, using the acces token offcourse, so that i don't have to download the file in memory and save it as mp3.

What i basically want is to be able to construct an absolute url to a file that i could pass to a html5 audio player src.

Does anyone have any idea ?

6 Replies 6

Deac P.
New member | Level 1

Thanks Richard.

It's a bit more clearer now. I was using the Dropbox.Net library to acces dropbox (https://www.dropbox.com/developers/documentation/dotnet) which seems that doesn't have all the functions from the Core API implemented.

I'll search for an alternative library or build a wrapper on top of it adding the other functions i need.

Greg-DB
Dropbox Staff

Dropbox API v2, which the .NET SDK uses, doesn't currently offer an equivalent of the v1 /media endpoint, but I'll be sure to pass this along as a feature request.

alexandra a.10
New member | Level 1

Hello, I'm having the same problem. It would be great if you can share a solution in case you've found one.

DaveCloud
New member | Level 1

I am looking at the same issue for Python API v2, is there a solution to this one yet?

Greg-DB
Dropbox Staff

Yes, there's a new files_get_temporary_link method in the Python SDK you can use:

https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.files_get...

And for reference, in the .NET SDK, that's GetTemporaryLinkAsync:

https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesRoutes_GetTemporar...

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    DaveCloud New member | Level 1
  • User avatar
    alexandra a.10 New member | Level 1
  • User avatar
    Deac P. New member | Level 1
What do Dropbox user levels mean?