メソッド PickerBuilder.setAppId
Drive API を介してユーザーのファイルにアクセスする必要があるアプリケーションの ID を設定します。
これは https://www.googleapis.com/auth/drive.file
スコープに必要です。
例
基本的な使用方法
const builder = new google.pickerPickerBuilder()
.setAppId('1234567890');
署名
setAppId(appId: string): PickerBuilder;
詳細
省略可 |
いいえ |
決勝 |
いいえ |
保護 |
いいえ |
静的 |
いいえ |
パラメータ
名前 |
Type |
省略可能 |
説明 |
appId |
string |
いいえ |
Cloud プロジェクト番号。 |
戻り値
PickerBuilder
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-11-07 UTC。
[null,null,["最終更新日 2024-11-07 UTC。"],[[["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."]]],[]]