如何通过文件ID为Google Drive共享链接生成直接下载链接 [英] How to generate direct download link for google drive shared link by file id

查看:1012
本文介绍了如何通过文件ID为Google Drive共享链接生成直接下载链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在不打开网页的情况下生成Google Drive直接下载链接.

I want to generate google drive direct download link without opening web page.

我发现有1个站点做同样的事情,但我没有发现他的情况.

I have found 1 site which do same thing but I did not find how he is doing.

以下是无需打开Goog​​le驱动器页面即可生成直接下载链接的网站.

below is the site which generates direct download link without opening google drive page.

https://links-safety.com/download.php?id=0B475ByfcR9n4a1JMVEZxQno2Tmc

0B475ByfcR9n4a1JMVEZxQno2Tmc是google文件,并替换为任何文件.

0B475ByfcR9n4a1JMVEZxQno2Tmc is google file and replace with any file.

谁能告诉我该怎么做?我想像上面的网站一样制作页面.

can anyone tell me how can I do that?I want to make same page like above site.

我尝试了此网址,但无法正常工作.而不是开始下载,它会打开页面.

I tried this url but its not working. instead of starting download it opens page.

https://drive.google.com/uc?id=0BwSYfbOPSw89Rno4LTZpSGF6RUE

推荐答案

您已经按照以下方式进行了操作..

you have do something along this lines ..

添加Google Drive API

add Google Drive API

它记录在Google API页面上,这里: https://developers.google.com/drive/v3/web/manage-downloads#downloading_a_file

it is documented on Google API page, here: https://developers.google.com/drive/v3/web/manage-downloads#downloading_a_file

这篇关于如何通过文件ID为Google Drive共享链接生成直接下载链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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