Drive API v3 पर माइग्रेट करें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
अगर फ़िलहाल Drive API v2 का इस्तेमाल किया जा रहा है, तो v3 पर माइग्रेट किया जा सकता है.
आपको वर्शन के बीच सभी संसाधनों के अंतर का पूरा मैप देखने के लिए, V2 से v3 का रेफ़रंस देखना चाहिए.
{drive_api_short} का वर्शन, हर भाषा के लिए अलग-अलग सेट किया जाता है:
var DISCOVERY_DOCS = ["https://www.googleapis.com/discovery/v1/apis/drive/v3/rest"];
- Python के लिए, सेवा ऑब्जेक्ट बनाते समय वर्शन तय किया जाता है. उदाहरण के लिए, Python क्विकस्टार्ट देखें.
service = build('drive', 'v3', credentials=creds)
- Node.js के लिए, google.drive कंस्ट्रक्टर सेट करते समय वर्शन तय किया जाता है. उदाहरण के लिए, Node.js क्विकस्टार्ट देखें.
const drive = google.drive({version: 'v3', auth});
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया."],[],[],null,["# Migrate to Drive API v3\n\nIf you are currently using Drive API v2, you can migrate to v3.\n\nYou should review the [V2 to v3 reference](/workspace/drive/api/guides/v2-to-v3-reference) for a complete map of all resource differences between versions.\n\nThe {drive_api_short} version is set differently for each language:\n\n- For Java, you download the v3 library. See [Drive API client library for Java](https://github.com/googleapis/google-api-java-client-services/tree/main/clients/google-api-services-drive/v3).\n For an example, see [Java Quickstart](/workspace/drive/api/quickstart/java).\n\n- For JavaScript, you define the version with the Discovery docs URL. For an example,\n see [Browser Quickstart](/workspace/drive/api/quickstart/js).\n\n var DISCOVERY_DOCS = [\"https://www.googleapis.com/discovery/v1/apis/drive/v3/rest\"];\n\n- For Python, you specify the version when you build the service object. For an example, see [Python Quickstart](/workspace/drive/api/quickstart/python).\n\n service = build('drive', 'v3', credentials=creds)\n\n- For Node.js, you define the version when you set the google.drive constructor. For an example, see [Node.js Quickstart](/workspace/drive/api/quickstart/nodejs).\n\n const drive = google.drive({version: 'v3', auth});"]]