Stay organized with collections
Save and categorize content based on your preferences.
Use the Samsung and Google factory classes to create ResellerService objects.
With ResellerService objects, a common set of methods
is available to claim and enroll Samsung and other Android devices.
SamsungResellerServiceFactory
Before you can use the SamsungResellerServiceFactory class to generate a
ResellerService object, you need to onboard with KDP.
Below is the method signature for creating a ResellerService object using the
SamsungResellerServiceFactory class:
Reseller's unique identifier, provided by the KDP system.
serviceAccountKeyFilePath
string
Yes
File path to the service account key.
clientIdentifier
string
Yes
Client identifier provided by the KDP system.
Error behavior
When an error occurs, the library throws a
CommonException
containing one of the following error codes:
Error code
INVALID_RESELLER_ID
AUTHORIZATION_FAIL
GoogleResellerServiceFactory
Before you can use the GoogleResellerServiceFactory class to generate a
ResellerService object, you must onboard to zero-touch enrollment
as a reseller.
Here's the method signature for creating a ResellerService object using the
GoogleResellerServiceFactory class:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-07 UTC."],[[["`ResellerService` objects, created using Samsung and Google factory classes, enable claiming and enrolling Samsung and other Android devices."],["The `SamsungResellerServiceFactory` requires onboarding with KDP and uses `resellerId`, `serviceAccountKeyFilePath`, and `clientIdentifier` to create a `ResellerService`."],["The `GoogleResellerServiceFactory` requires onboarding with zero-touch enrollment and uses `resellerId` and `serviceAccountKeyFilePath` to create a `ResellerService`."],["Both factories throw a `CommonException` when errors occur, with specific error codes like `INVALID_RESELLER_ID` and `AUTHORIZATION_FAIL` for Samsung and `INVALID_PARAM_DEFAULT` and `INTERNAL_SERVER_ERROR` for Google."]]],["`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"]]