שיטת 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 (שעון 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."]]],[]]