Search Results for

    Show / Hide Table of Contents

    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

    Inheritance
    object
    CustomerMethods
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: SKM.V3.Methods
    Assembly: Cryptolens.Licensing.CrossPlatform.dll
    Syntax
    public class CustomerMethods

    Methods

    | Edit this page View Source

    AddCustomer(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
    | Edit this page View Source

    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.

    | Edit this page View Source

    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
    | Edit this page View Source

    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
    | Edit this page View Source

    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
    | Edit this page View Source

    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
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © Cryptolens AB