Google Drive API支持直接提供链接到Dropbox API中可用的文件 [英] Does Google Drive API support providing link direct to a file which is available in Dropbox API

查看:189
本文介绍了Google Drive API支持直接提供链接到Dropbox API中可用的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我想让一些第三方用户直接从某个Dropbox帐户下载文件,我可以要求Dropbox提供直接链接, 4小时后过期,通过

在Google云端硬盘中存在 href =https://developers.google.com/drive/v2/reference/files#downloadUrl =nofollow> downloadUrl 属性,但它需要传递accessToken。有没有其他方法可以让Google Drive更像Dropbox?

c> webContentLink 字段,您可以传递给用户在浏览器中下载文件。


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?

解决方案

Yes, there is the webContentLink field in a file that you can pass to a user to download the file in their browser.

这篇关于Google Drive API支持直接提供链接到Dropbox API中可用的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆