方法 PickerBuilder.setAppId
设置需要通过 Drive API 访问用户文件的应用 ID。
https://www.googleapis.com/auth/drive.file
作用域需要此属性。
示例
基本用法
const builder = new google.pickerPickerBuilder()
.setAppId('1234567890');
签名
setAppId(appId: string): PickerBuilder;
详细信息
参数
名称 |
类型 |
可选 |
说明 |
appId |
string |
否 |
Cloud 项目编号。 |
返回
PickerBuilder
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-07。
[null,null,["最后更新时间 (UTC):2024-11-07。"],[[["Sets the application ID, which is needed for the `https://www.googleapis.com/auth/drive.file` scope, allowing access to user files via the Drive API."],["This method is used within the `google.pickerPickerBuilder` and takes the Cloud project number as a string parameter."],["The `setAppId` method is not optional, final, protected, or static."],["Upon execution, it returns a `PickerBuilder` object for further configuration."]]],[]]