Class CustomerMethods
Methods that perform operations on a customer object. A complete list can be found here: https://app.cryptolens.io/docs/api/v3/Customer
Inherited Members
Namespace: SKMV3Methods
Assembly: Cryptolens.Licensing.CrossPlatform.dll
Syntax
public class CustomerMethods
Methods
| Improve this Doc View SourceAddCustomer(string, AddCustomerModel)
This method will add new customer. To remove an existing customer, please see RemoveCustomer(string, RemoveCustomerModel)
Declaration
public static AddCustomerResult AddCustomer(string token, AddCustomerModel parameters)
Parameters
Type | Name | Description |
---|---|---|
string | token | An access token with AddCustomer permission. More info: https://app.cryptolens.io/docs/api/v3/Auth |
AddCustomerModel | parameters | Parameters of the method. |
Returns
Type | Description |
---|---|
AddCustomerResult |
EditCustomer(string, EditCustomerModel)
This method will edit an existing customer. It will only change the properties that you specify.
Declaration
public static EditCustomerResult EditCustomer(string token, EditCustomerModel parameters)
Parameters
Type | Name | Description |
---|---|---|
string | token | An access token with EditCustomer permission. More info: https://app.cryptolens.io/docs/api/v3/Auth |
EditCustomerModel | parameters | Parameters of the method. |
Returns
Type | Description |
---|---|
EditCustomerResult | The EditCustomerResult is returned, which is equivalent to AddCustomerResult. |
GetCustomerLicenses(string, GetCustomerLicensesModel)
This method will return a list of license keys that belong to a certain customer.
Declaration
public static GetCustomerLicensesResult GetCustomerLicenses(string token, GetCustomerLicensesModel parameters)
Parameters
Type | Name | Description |
---|---|---|
string | token | An access token with GetCustomerLicenses permission. More info: https://app.cryptolens.io/docs/api/v3/Auth |
GetCustomerLicensesModel | parameters | Parameters of the method. |
Returns
Type | Description |
---|---|
GetCustomerLicensesResult |
GetCustomerLicensesBySecret(string, GetCustomerLicensesBySecretModel)
This method will return a list of license keys that belong to a certain customer. A customer is identified by the their secret value.
Declaration
public static GetCustomerLicensesResult GetCustomerLicensesBySecret(string token, GetCustomerLicensesBySecretModel parameters)
Parameters
Type | Name | Description |
---|---|---|
string | token | An access token with GetCustomerLicensesBySecret permission. More info: https://app.cryptolens.io/docs/api/v3/Auth |
GetCustomerLicensesBySecretModel | parameters | Parameters of the method. |
Returns
Type | Description |
---|---|
GetCustomerLicensesResult |
GetCustomers(string, GetCustomersModel)
This method will return the list of customers, with the newest customers shown first.
Declaration
public static GetCustomersResult GetCustomers(string token, GetCustomersModel parameters)
Parameters
Type | Name | Description |
---|---|---|
string | token | An access token with AddCustomer permission. More info: https://app.cryptolens.io/docs/api/v3/Auth |
GetCustomersModel | parameters | Parameters of the method. |
Returns
Type | Description |
---|---|
GetCustomersResult |
RemoveCustomer(string, RemoveCustomerModel)
This method will remove an existing customer given the customerId. To add a new customer, please see RemoveCustomer(string, RemoveCustomerModel)
Declaration
public static BasicResult RemoveCustomer(string token, RemoveCustomerModel parameters)
Parameters
Type | Name | Description |
---|---|---|
string | token | An access token with RemoveCustomer permission. More info: https://app.cryptolens.io/docs/api/v3/Auth |
RemoveCustomerModel | parameters | Parameters of the method. |
Returns
Type | Description |
---|---|
BasicResult |