メソッド 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 および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],[],null,["# Method PickerBuilder.setAppId\n\nSets the Id of the application needing to access the user's files via the\n[Drive API](/workspace/drive/api).\n\nThis is required for the `https://www.googleapis.com/auth/drive.file` scope.\n\nExamples\n--------\n\nBasic usage \n\n const builder = new google.pickerPickerBuilder()\n .setAppId('1234567890');\n\nSignature\n---------\n\n setAppId(appId: string): PickerBuilder;\n\nDetails\n-------\n\n| Optional | No |\n| Final | No |\n| Protected | No |\n| Static | No |\n|-----------|----|\n\nParameters\n----------\n\n| Name | Type | Optional | Description |\n|---------|----------|----------|---------------------------|\n| `appId` | `string` | No | The Cloud project number. |\n\nReturns\n-------\n\n[PickerBuilder](./picker.pickerbuilder)"]]