संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ResellerService ऑब्जेक्ट बनाने के लिए, Samsung और Google फ़ैक्ट्री क्लास का इस्तेमाल करें.
ResellerService ऑब्जेक्ट की मदद से, Samsung और अन्य Android डिवाइसों पर दावा करने और उन्हें रजिस्टर करने के लिए, तरीकों का एक सामान्य सेट उपलब्ध है.
SamsungResellerServiceFactory
ResellerService ऑब्जेक्ट जनरेट करने के लिए, SamsungResellerServiceFactory क्लास का इस्तेमाल करने से पहले, आपको केडीपी के साथ ऑनबोर्ड होना होगा.
SamsungResellerServiceFactory क्लास का इस्तेमाल करके ResellerService ऑब्जेक्ट बनाने के लिए, यहां दिया गया तरीका अपनाएं:
KDP सिस्टम से मिला, खुदरा दुकानदार का यूनीक आइडेंटिफ़ायर.
serviceAccountKeyFilePath
string
हां
सेवा खाते की कुंजी की फ़ाइल का पाथ.
clientIdentifier
string
हां
KDP सिस्टम से मिला क्लाइंट आइडेंटिफ़ायर.
गड़बड़ी का व्यवहार
गड़बड़ी होने पर, लाइब्रेरी CommonException के साथ इनमें से कोई एक गड़बड़ी कोड दिखाती है:
गड़बड़ी का कोड
INVALID_RESELLER_ID
AUTHORIZATION_FAIL
GoogleResellerServiceFactory
ResellerService ऑब्जेक्ट जनरेट करने के लिए, GoogleResellerServiceFactory क्लास का इस्तेमाल करने से पहले, आपको रीसेलर के तौर पर 'पहले से तैयार डिवाइस' सुविधा को चालू करना होगा.
GoogleResellerServiceFactory क्लास का इस्तेमाल करके ResellerService ऑब्जेक्ट बनाने के लिए, यहां दिया गया तरीका अपनाएं:
[[["समझने में आसान है","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) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003eResellerService\u003c/code\u003e objects, created using Samsung and Google factory classes, enable claiming and enrolling Samsung and other Android devices.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSamsungResellerServiceFactory\u003c/code\u003e requires onboarding with KDP and uses \u003ccode\u003eresellerId\u003c/code\u003e, \u003ccode\u003eserviceAccountKeyFilePath\u003c/code\u003e, and \u003ccode\u003eclientIdentifier\u003c/code\u003e to create a \u003ccode\u003eResellerService\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGoogleResellerServiceFactory\u003c/code\u003e requires onboarding with zero-touch enrollment and uses \u003ccode\u003eresellerId\u003c/code\u003e and \u003ccode\u003eserviceAccountKeyFilePath\u003c/code\u003e to create a \u003ccode\u003eResellerService\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eBoth factories throw a \u003ccode\u003eCommonException\u003c/code\u003e when errors occur, with specific error codes like \u003ccode\u003eINVALID_RESELLER_ID\u003c/code\u003e and \u003ccode\u003eAUTHORIZATION_FAIL\u003c/code\u003e for Samsung and \u003ccode\u003eINVALID_PARAM_DEFAULT\u003c/code\u003e and \u003ccode\u003eINTERNAL_SERVER_ERROR\u003c/code\u003e for Google.\u003c/p\u003e\n"]]],["`ResellerService` objects are created using `SamsungResellerServiceFactory` or `GoogleResellerServiceFactory` classes. Each factory requires onboarding as a reseller and uses a unique `resellerId` and `serviceAccountKeyFilePath`. Samsung's factory also needs a `clientIdentifier`. `ResellerService` objects offer methods for device management. Errors trigger a `CommonException` with specific codes, like `INVALID_RESELLER_ID` or `AUTHORIZATION_FAIL` for Samsung and `INVALID_PARAM_DEFAULT` or `INTERNAL_SERVER_ERROR` for Google.\n"],null,[]]