获取谷歌驱动器文件下载网址 [英] Get google drive file download URL

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

问题描述

遵循 Hello World应用程序并使用文件选取器,我能够获得谷歌驱动器文件信息。

Following the Hello world application and using the File Picker, I am able to get a google drive file information.

我想在我的Web应用程序中获取此文件的下载网址(它是一个二进制文件)。

I would like to get the download url of this file (it is a binary file) in a my web application.

有没有什么办法可以用新的javascript sdk获得它?

Is there any way to get it with the new javascript sdk?

推荐答案

是。

Picker返回id字符串。使用它可以获取项目对象(https://developers.google.com/drive/v2/reference/files/get),其中包含各种下载URL,具体取决于您的具体要求。

The Picker returns the id string. Use this to get the item object (https://developers.google.com/drive/v2/reference/files/get) which will contain a variety of download URL's depending on your precise requirement.

这篇关于获取谷歌驱动器文件下载网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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