Hi.
Is there an API endpoint to get the content hash of a file received as a shared link?
Where the shared link is to a folder, it's possible with:
sharing/get_shared_link_metadata { "url": "https://www.dropbox.com/s/..." }
then
files/list_folder { shared_link: { "url": "https://www.dropbox.com/s/..." }, path: '/path/to/folder' }
The result from files/list_folder contains the content_hash field for each file.
However, if the shared link is to a file, not a folder, I can't find any way to obtain the content_hash for that file from the API.
Therefore, to ensure files are downloaded without corruption, I have to download everything twice and compare the hashes of the two copies - which is a waste of bandwidth for both me and Dropbox.
It would be great if this was available through the API. Perhaps it is and I can't find the right endpoint.