Google, GitHub पर ये सैंपल होस्ट करता है. इन रिपॉज़िटरी को फ़ोर्क किया जा सकता है. साथ ही, कोड का इस्तेमाल अपने प्रोजेक्ट के लिए रेफ़रंस के तौर पर किया जा सकता है.
Google Picker
Google Picker के कोड सैंपल में बताया गया है कि इमेज चुनने वाले टूल या अपलोड पेज का इस्तेमाल कैसे किया जाता है. उपयोगकर्ता, वेब ऐप्लिकेशन में मौजूद बटन से इसे खोल सकते हैं.
सोर्स देखने या डाउनलोड करने के लिए, GitHub रिपॉज़िटरी पर Google Picker पर जाएं.
Quickeditors की मदद से फ़ाइलें खोलना और सेव करना
इस Quickeditors कोड सैंपल में, Drive API की मदद से फ़ाइलें खोलने और सेव करने का तरीका बताया गया है.
Drive के प्लैटफ़ॉर्म के हिसाब से दिए गए हर उदाहरण में, एक ही सैंपल ऐप्लिकेशन दिखता है: एक टेक्स्ट एडिटर, जिसे Quickeditor कहा जाता है. यह text/* MIME टाइप वाली Drive फ़ाइलों में बदलाव कर सकता है. वेब वर्शन में, Drive के इस्तेमाल के दो बुनियादी उदाहरण शामिल हैं:
दोनों इस्तेमाल के उदाहरणों के लिए फ़्लो एक जैसा होता है. जब कोई उपयोगकर्ता, 'बनाएं' मेन्यू या रजिस्टर किए गए MIME टाइप वाली फ़ाइल के कॉन्टेक्स्ट मेन्यू से किसी ऐप्लिकेशन को चुनता है, तो Drive उसे उस ऐप्लिकेशन पर रीडायरेक्ट कर देता है.
सोर्स देखने या डाउनलोड करने के लिए, GitHub रिपॉज़िटरी पर Drive
Quickeditors पर जाएं.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया."],[],[],null,["# Google Drive API samples\n\nThis section provides samples for Google Drive API.\n\nFor introductory videos about Drive API, see the [Drive API\nvideo library](/workspace/drive/api/guides/videos).\n\nGoogle hosts the following samples on GitHub. You can fork these repositories\nand use the code as a reference for your own projects.\n\nGoogle Picker\n-------------\n\nThe [Google Picker code sample](/workspace/drive/picker/guides/sample) shows how to use\nan image selector or upload page that users can open from a button in a web app.\n\nTo view or download the source, visit\n[Google Picker](https://github.com/googleworkspace/browser-samples/tree/main/drive/picker)\non the GitHub repository.\n\nOpen and save files with Quickeditors\n-------------------------------------\n\nThis Quickeditors code sample shows how to open and save files with the\nDrive API.\n\nEach of the Drive platform-specific examples reflects a single\nsample app: a text editor, called a Quickeditor, capable of editing\nDrive files with the MIME type `text/*`. The [web\nversion](https://github.com/googleworkspace/drive-quickeditors/tree/main/web)\nimplements two fundamental Drive use cases:\n\n- [Integrate with Drive UI's \"New\" button](/workspace/drive/api/guides/integrate-create)\n- [Integrate with Drive UI's \"Open with\" context menu](/workspace/drive/api/guides/integrate-open)\n\nThe flow for both use cases is similar. Drive redirects a user to\nthe app after the user selects it from the create menu or the context menu of a\nfile with a registered [MIME type](/workspace/drive/api/guides/mime-types).\n\nTo view or download the source, visit [Drive\nQuickeditors](https://github.com/googledrive/web-quickeditor) on the GitHub\nrepository.\n\nRelated topics\n--------------\n\n- [The Google Picker API](/workspace/drive/picker/guides/overview)\n- [Drive UI integration overview](/workspace/drive/api/guides/about-apps)"]]