Metode PickerBuilder.setAppId
Menetapkan ID aplikasi yang perlu mengakses file pengguna melalui
Drive API.
Hal ini diperlukan untuk cakupan https://www.googleapis.com/auth/drive.file
.
Contoh
Penggunaan dasar
const builder = new google.pickerPickerBuilder()
.setAppId('1234567890');
Tanda Tangan
setAppId(appId: string): PickerBuilder;
Detail
Opsional |
Tidak |
Final |
Tidak |
Dengan kontrasepsi |
Tidak |
Statis |
Tidak |
Parameter
Nama |
Jenis |
Opsional |
Deskripsi |
appId |
string |
Tidak |
Nomor project Cloud. |
Hasil
PickerBuilder
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-11-07 UTC.
[null,null,["Terakhir diperbarui pada 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."]]],[]]