Does Google Drive API support providing link direct to a file which is available in Dropbox API

╄→尐↘猪︶ㄣ 提交于 2019-12-24 13:41:59

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!