Hello Dropbox team,
I have a usecase, where in my webApp (Node js - Angular), user will come and select "dropbox" icon, which will open Dropbox Authentication window, for the user to authenticate.
Once he is authenticated successfully, then the file selected by user from dropbox, should get downloaded to my server (webapp).
I saw documentation on dropbox at this page: https://www.dropbox.com/developers/documentation
But there are 2 ways to achieve the download, -
- HTTP reference
- API Explorer
I found there is an api to download the file: https://content.dropboxapi.com/2/files/download
But I have couple of questions:
- Could you please send me some example on how to achieve this use case. (Especially, how my webapp can access (read-only) to user file there in dropbox, and then subsequently downloading it)
- HTTP is better or API is better. (HTTP Reference is more like REST Api to download the file, but if I use API explorer as SDK, then I need to keep on updating the SDK version every other time)
- In this download API, there is a header argument called "path", which is the path of file location. (How would my webapp will come to know the path of file ? I mean, before downloading the file, how to get the path of the file, in order to download.
Please provide some example to handle this usecase.