Yöntem PickerBuilder.setAppId
Kullanıcının dosyalarına Drive API aracılığıyla erişmesi gereken uygulamanın kimliğini ayarlar.
Bu, https://www.googleapis.com/auth/drive.file
kapsamı için gereklidir.
Örnekler
Temel kullanım
const builder = new google.pickerPickerBuilder()
.setAppId('1234567890');
İmza
setAppId(appId: string): PickerBuilder;
Ayrıntılar
İsteğe bağlı |
Hayır |
Final |
Hayır |
Korumalı |
Hayır |
Statik |
Hayır |
Parametreler
Ad |
Tür |
İsteğe bağlı |
Açıklama |
appId |
string |
Hayır |
Cloud proje numarası. |
İadeler
PickerBuilder
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-11-07 UTC.
[null,null,["Son güncelleme tarihi: 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."]]],[]]