问题描述
我想在不打开网页的情况下生成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.
以下是无需打开Google驱动器页面即可生成直接下载链接的网站.
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 API控制台,然后在其中创建或使用现有项目( https: //console.developers.google.com/apis/credentials )
添加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共享链接生成直接下载链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!