获取下载链接为公共谷歌文档文件 [英] Getting the download link for a public Google Docs file

查看:368
本文介绍了获取下载链接为公共谷歌文档文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

读<一个href=\"http://$c$c.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#DownloadingFiles\">Google文档API 我觉得这样的:


  

下载


  
  

的文件不能在比其他的格式来下载
  在其最初上传之一。下载网址为
  文件看起来是这样的:

<$p$p><$c$c>https://doc-04-20-docs.googleusercontent.com/docs/secure/m7an0emtau/WJm12345/YzI2Y2ExYWVm?h=16655626&e=download&gd=true


对于一个公开的谷歌文档文件的URL,比如,

<$p$p><$c$c>https://docs.google.com/open?id=0B1-vl-dPgKm_NTNhZjZkMWMtZjQxOS00MGE1LTg2MjItNGVjYzdmZjYxNmQ5

我怎样才能把它变成一个下载链接?


解决方案

喜nightcracker试试这个:

  https://docs.google.com/uc?export=download&id=DOCIDGOESHERE

我只用一个PDF尝试它和它的工作好了,所以有可能与戏将帮助....

所有最优秀的,

戴夫

Reading the Google Docs API I find this:

Downloading

Files cannot be downloaded in a format other than the one in which they were originally uploaded. The download URL for files looks something like this:

https://doc-04-20-docs.googleusercontent.com/docs/secure/m7an0emtau/WJm12345/YzI2Y2ExYWVm?h=16655626&e=download&gd=true

Given a public Google Documents file URL, say,

https://docs.google.com/open?id=0B1-vl-dPgKm_NTNhZjZkMWMtZjQxOS00MGE1LTg2MjItNGVjYzdmZjYxNmQ5

How can I turn it into a download link?

解决方案

Hi nightcracker try this:

https://docs.google.com/uc?export=download&id=DOCIDGOESHERE

I've only tried it with one pdf and it worked ok so maybe having a play with that will help....

All the best,

Dave

这篇关于获取下载链接为公共谷歌文档文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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