Versions in this module Expand all Collapse all v1 v1.0.1 Sep 17, 2025 Changes in this version + type ActivateKeyParams struct + DeviceTag *string + HostID *string + LicenseKey string + ProductID string + type ActivateKeyResponse struct + Code int + LicenseeEmail *string + LicenseeName *string + Message string + type ApiError struct + Code int + Message string + Status *int + func (e *ApiError) Error() string + type BlockKeyParams struct + LicenseKey string + ProductID string + type BlockKeyResponse struct + Code int + Message string + type Client struct + func New(accessToken string, baseURL string) (*Client, error) + func (c *Client) ActivateKey(params ActivateKeyParams) (*ActivateKeyResponse, error) + func (c *Client) BlockKey(params BlockKeyParams) (*BlockKeyResponse, error) + func (c *Client) CreateCustomer(params CreateCustomerParams) (*CreateCustomerResponse, error) + func (c *Client) CreateKey(params CreateKeyParams) (*CreateKeyResponse, error) + func (c *Client) DeactivateKey(params DeactivateKeyParams) (*DeactivateKeyResponse, error) + func (c *Client) DeleteCustomer(params DeleteCustomerParams) (*DeleteCustomerResponse, error) + func (c *Client) GetAllCustomers() (*GetAllCustomersResponse, error) + func (c *Client) GetCustomerById(params GetCustomerByIdParams) (*GetCustomerByIdResponse, error) + func (c *Client) GetCustomerWithKeys(params GetCustomerWithKeysParams) (*GetCustomerWithKeysResponse, error) + func (c *Client) GetKey(params GetKeyParams) (*GetKeyResponse, error) + func (c *Client) ToggleCustomerStatus(params ToggleCustomerStatusParams) (*ToggleCustomerStatusResponse, error) + func (c *Client) UnblockKey(params UnblockKeyParams) (*UnblockKeyResponse, error) + func (c *Client) UpdateCustomer(params UpdateCustomerParams) (*UpdateCustomerResponse, error) + type CreateCustomerParams struct + Email string + Name string + type CreateCustomerResponse struct + Action string + Code int + Data struct{ ... } + ID string + Message string + Status bool + type CreateKeyParams struct + CustomerID *string + ExpiryDate *string + MaxActivations *string + NewCustomer *NewCustomer + ProductID string + type CreateKeyResponse struct + Code int + Key string + type Customer struct + Active bool + CreatedAt string + CreatedBy string + Email string + ID string + Name string + UpdatedAt string + type CustomerDetails struct + Active bool + Email *string + ID string + Name *string + type CustomerLicenseKey struct + Activated bool + Activations int + ExpirationDate *string + ID string + Key string + MaxActivations int + ProductID string + type DeactivateKeyParams struct + HostID *string + LicenseKey string + ProductID string + type DeactivateKeyResponse struct + Code int + Message string + type DeleteCustomerParams struct + CustomerID string + type DeleteCustomerResponse struct + Action string + Code int + Message string + Status bool + type DeviceDetails struct + ActivationTime string + DeviceTag *string + HostID string + IPAddress *string + type GetAllCustomersResponse struct + Action string + Code int + Data []Customer + Status bool + type GetCustomerByIdParams struct + CustomerID string + type GetCustomerByIdResponse struct + Action string + Code int + Data []Customer + Status bool + type GetCustomerWithKeysParams struct + CustomerID string + type GetCustomerWithKeysResponse struct + Action string + Code int + Data struct{ ... } + Status bool + type GetKeyParams struct + LicenseKey string + ProductID string + type GetKeyResponse struct + Code int + Data struct{ ... } + type LicenseDetails struct + Activated bool + Activations int + Devices []DeviceDetails + ExpirationDate *string + ID string + Key string + MaxActivations int + ProductID string + type NewCustomer struct + Email *string + Name string + type ToggleCustomerStatusParams struct + CustomerID string + type ToggleCustomerStatusResponse struct + Action string + Code int + Message string + Status bool + type UnblockKeyParams struct + LicenseKey string + ProductID string + type UnblockKeyResponse struct + Code int + Message string + type UpdateCustomerParams struct + Active *bool + CustomerID string + Email *string + Name *string + type UpdateCustomerResponse struct + Action string + Code int + Data Customer + Message string + Status bool