【发布时间】:2014-01-27 06:27:29
【问题描述】:
reference guide 建议我可以使用addView() 函数来指定包含哪些 Google Drive 项目。这很好,但尽管这是仅适用于 Google 文档的推荐视图 - google.picker.ViewId.DOCUMENTS 似乎还包括任何上传到驱动器并且是文档的文件,例如MS Word 格式、Open Office 格式、纯文本和富文本格式。
有什么方法可以限制 Picker 只为用户提供 Google 文档?
为了清楚起见,这是我实例化 Picker 的代码。
this.picker = new google.picker.PickerBuilder().
addView(google.picker.ViewId.DOCUMENTS).
setAppId(this.clientId).
setOAuthToken(accessToken).
setCallback(this._pickerCallback.bind(this)).
build().
setVisible(true);
【问题讨论】:
标签: google-drive-api google-picker