方法 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