एडमिन SDK टूल Google Workspace रीसेलर सेवा
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Google Workspace Reseller सेवा के लिए उपलब्ध Admin SDK की मदद से, Apps Script में Admin SDK Reseller API का इस्तेमाल किया जा सकता है.
इस एपीआई की मदद से, अनुमति पा चुके रीसेलर एडमिन, ग्राहक के ऑर्डर दे सकते हैं. साथ ही, Google Workspace की हर महीने के हिसाब से बिलिंग वाली सदस्यताएं मैनेज कर सकते हैं.
रेफ़रंस
इस सेवा के बारे में ज़्यादा जानकारी के लिए, Admin SDK Google Workspace Reseller API का रेफ़रंस दस्तावेज़ देखें. Apps Script की सभी ऐडवांस सेवाओं की तरह, Admin SDK की Google Workspace Reseller सेवा भी सार्वजनिक एपीआई के ऑब्जेक्ट, तरीकों, और पैरामीटर का इस्तेमाल करती है. ज़्यादा जानकारी के लिए, तरीके के सिग्नेचर कैसे तय किए जाते हैं लेख पढ़ें.
समस्याओं की शिकायत करने और अन्य सहायता पाने के लिए, Admin SDK के रीसेलर के लिए सहायता गाइड देखें.
नमूना कोड
नीचे दिए गए सैंपल कोड में, एपीआई के वर्शन 1 का इस्तेमाल किया गया है.
सदस्यताओं की सूची पाना
इस सैंपल में, सदस्यताओं की सूची लॉग की जाती है. इसमें ग्राहक आईडी, सदस्यता बनाने की तारीख, प्लान का नाम, और एसकेयू आईडी शामिल होता है.
नतीजों की पूरी सूची ऐक्सेस करने के लिए, पेज टोकन का इस्तेमाल करें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe Admin SDK Google Workspace Reseller service enables authorized reseller admins to manage Google Workspace subscriptions and place customer orders via Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eThis advanced service requires prior enabling before use and mirrors the functionality of the Admin SDK Reseller API.\u003c/p\u003e\n"],["\u003cp\u003eComprehensive reference documentation, support resources, and sample code are readily available for developers.\u003c/p\u003e\n"],["\u003cp\u003eSample code showcases how to retrieve and log a list of subscriptions, demonstrating pagination for accessing the complete result set.\u003c/p\u003e\n"]]],[],null,["# Admin SDK Google Workspace Reseller Service\n\nThe Admin SDK Google Workspace Reseller service allows\nyou to use the [Admin SDK Reseller API](/admin-sdk/reseller) in Apps Script.\nThis API allows authorized reseller admins to place customer orders\nand manage Google Workspace monthly post-pay\nsubscriptions.\n| **Note:** This is an advanced service that must be [enabled before use](/apps-script/guides/services/advanced).\n\nReference\n---------\n\nFor detailed information on this service, see the\n[reference documentation](/admin-sdk/reseller/v1/reference) for the\nAdmin SDK Google Workspace Reseller API. Like all\nadvanced services in Apps Script, the Admin SDK\nGoogle Workspace Reseller service uses the same\nobjects, methods, and parameters as the public API. For more information, see [How method signatures are determined](/apps-script/guides/services/advanced#how_method_signatures_are_determined).\n\nTo report issues and find other support, see the\n[Admin SDK Reseller support guide](/admin-sdk/reseller/support).\n\nSample code\n-----------\n\nThe sample code below uses [version 1](/admin-sdk/groups-migration/v1/reference)\nof the API.\n\n### Get a list of subscriptions\n\nThis sample logs the list of subscriptions, including the customer ID,\ndate created, plan name, and the SKU ID.\nNotice the use of page tokens to access the full list of results. \nadvanced/adminSDK.gs \n[View on GitHub](https://github.com/googleworkspace/apps-script-samples/blob/main/advanced/adminSDK.gs) \n\n```javascript\n/**\n * Logs the list of subscriptions, including the customer ID, date created, plan\n * name, and the sku ID. Notice the use of page tokens to access the full list\n * of results.\n * @see https://developers.google.com/admin-sdk/reseller/reference/rest/v1/subscriptions/list\n */\nfunction getSubscriptions() {\n let result;\n let pageToken;\n do {\n result = AdminReseller.Subscriptions.list({\n pageToken: pageToken\n });\n for (const sub of result.subscriptions) {\n const creationDate = new Date();\n creationDate.setUTCSeconds(sub.creationTime);\n console.log('customer ID: %s, date created: %s, plan name: %s, sku id: %s',\n sub.customerId, creationDate.toDateString(), sub.plan.planName,\n sub.skuId);\n }\n pageToken = result.nextPageToken;\n } while (pageToken);\n}\n```"]]