Method: projects.versions.get
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
स्क्रिप्ट प्रोजेक्ट का वर्शन मिलता है.
एचटीटीपी अनुरोध
GET https://script.googleapis.com/v1/projects/{scriptId}/versions/{versionNumber}
यूआरएल, gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ के पैरामीटर
पैरामीटर |
scriptId |
string
स्क्रिप्ट प्रोजेक्ट का Drive आईडी.
|
versionNumber |
integer
वर्शन नंबर.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य हिस्सा
कामयाब रहने पर, जवाब के मुख्य हिस्से में Version
का एक इंस्टेंस शामिल किया जाता है.
अनुमति पाने के लिंक
इनमें से कोई एक OAuth स्कोप ज़रूरी है:
https://www.googleapis.com/auth/script.projects
https://www.googleapis.com/auth/script.projects.readonly
ज़्यादा जानकारी के लिए, OAuth 2.0 की खास जानकारी देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eRetrieves a specific version of a Google Apps Script project using its Drive ID and version number.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with specific scopes for project access (read or read/write).\u003c/p\u003e\n"],["\u003cp\u003eThe request body should be empty, and a successful response returns a 'Version' object containing project version details.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes gRPC Transcoding syntax in its URL structure for efficient communication.\u003c/p\u003e\n"]]],[],null,["# Method: projects.versions.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n- [Try it!](#try-it)\n\nGets a version of a script project.\n\n### HTTP request\n\n`GET https://script.googleapis.com/v1/projects/{scriptId}/versions/{versionNumber}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------------|-----------------------------------------|\n| `scriptId` | `string` The script project's Drive ID. |\n| `versionNumber` | `integer` The version number. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Version](/apps-script/api/reference/rest/v1/projects.versions#Version).\n\n### Authorization Scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/script.projects`\n- `https://www.googleapis.com/auth/script.projects.readonly`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]