方法 PickerBuilder.setAppId

設定需要透過 Drive API 存取使用者檔案的應用程式 ID。

這是 https://www.googleapis.com/auth/drive.file 範圍的必要條件。

@params appId Cloud 專案編號。

範例

基本用法

const builder = new google.pickerPickerBuilder()
  .setAppId('1234567890');

簽名

setAppId(appId: string): PickerBuilder;

詳細資料

選用
決賽
受保護
靜態

參數

名稱 類型 選用 說明
appId string

傳回

PickerBuilder