الطريقة PickerBuilder.setAppId
تحدِّد هذه السياسة رقم تعريف التطبيق الذي يحتاج إلى الوصول إلى ملفات المستخدم من خلال Drive API.
هذا الإجراء مطلوب لنطاق https://www.googleapis.com/auth/drive.file
.
أمثلة
الاستخدام الأساسي
const builder = new google.pickerPickerBuilder()
.setAppId('1234567890');
التوقيع
setAppId(appId: string): PickerBuilder;
التفاصيل
اختياري |
لا |
النهائي |
لا |
الحماية |
لا |
ثابت |
لا |
المعلمات
الاسم |
النوع |
اختياري |
الوصف |
appId |
string |
لا |
رقم مشروع Cloud |
المرتجعات
PickerBuilder
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-11-07 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-07 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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."]]],[]]