问题
If I want to let some thirdparty user to download file directly from some Dropbox account I can ask Dropbox to provide direct link, which expires after 4 hours via this /media method.
In Google Drive there is downloadUrl property but it requires passing accessToken. Is there any other way to make Google Drive behave a little more like Dropbox?
回答1:
Yes, there is the webContentLink
field in a file that you can pass to a user to download the file in their browser.
来源:https://stackoverflow.com/questions/12568909/does-google-drive-api-support-providing-link-direct-to-a-file-which-is-available