Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
There are photos in shared folder that I have access to. I would like to get the URL of the photos (the JPEG/PNG) in that folder using the V2 NodeJS API.
I am able to enumerate the files in the folder using filesListFolder(). How do I use the "id" or "name" to get the URL. I would like to have a permanent URL instead of a temporary since I will be storing that value in my DB.
Oh darn, I was thinking that might be the case. Is there a way to automate that ?
You can iterate through the file list (e.g., as returned by filesListFolder and filesListFolderContinue) and call sharingCreateSharedLinkWithSettings for each desired item.
Thanks Greg. Can I do that even though I am not the owner of the shared folder?
Can you explain what is the use of the id (of files or folders) returned by filesListFolder(). I believe when the argument is specified as path, we are talking about this: <folder name>/<folder name>/<filename>
Then what is the path if we are within a shared folder? is that shared folder considered to be the root?
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!