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 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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."]]],[]]