Class TCilTsegClientLib

Unit

Declaration

type TCilTsegClientLib = class(TObject)

Description

Use an instance of this class to access to CilTseg API.

Hierarchy

Overview

Methods

Protected procedure CheckSettings;
Public constructor Create(const AServerURL: string; const ASoftwareID: integer; const ASoftwareToken: string);
Public function GetLicenseInfo(const ALicenseNumber: string): TCilTsegLicenseInfo;
Public function GetSoftwareLastRelease: TCilTsegLastRelease;
Public function LicenseActivation(const ALicenseNumber, AUserEmail, ADeviceName: string): TCilTsegLicenseActivation;
Public function CheckLicenseActivation(const ALicenseNumber, AUserEmail, ADeviceName, AActivationNumber: string): TCilTsegLicenseActivation;

Properties

Public property ServerURL: string read FServerURL write SetServerURL;
Public property SoftwareID: integer read FSoftwareID write SetSoftwareID;
Public property SoftwareToken: string read FSoftwareToken write SetSoftwareToken;

Description

Methods

Protected procedure CheckSettings;
 
Public constructor Create(const AServerURL: string; const ASoftwareID: integer; const ASoftwareToken: string);

Constructor method to get an instance for this class.

Public function GetLicenseInfo(const ALicenseNumber: string): TCilTsegLicenseInfo;

Call the API to get the properties of the given license key.

For security reasons it'll answer only for available license key or a key linked to your software ID. The call is done in current thread. It can block the process if a timeout occured.

Public function GetSoftwareLastRelease: TCilTsegLastRelease;

Call the API to get the properties of the last declared version for this software in the CilTseg backoffice.

Last release can be current release, a previous or future one depending on what you have declared and enabled in your CilTseg backoffice. The call is done in current thread. It can block the process if a timeout occured.

Public function LicenseActivation(const ALicenseNumber, AUserEmail, ADeviceName: string): TCilTsegLicenseActivation;

Call the API to activate the license key on this device.

See the DeviceName as a computer (real or virtual machine) unique identifier. You can use the operating system name, a device or harddrive identifier depending on the security level you need. CilTseg won't do anithing with it. It's your job to get and check it to verify a license activation with CheckLicenseActivation() method. The call is done in current thread. It can block the process if a timeout occured.

Public function CheckLicenseActivation(const ALicenseNumber, AUserEmail, ADeviceName, AActivationNumber: string): TCilTsegLicenseActivation;

Call the API to check the validity of a license activation.

Send the values used during the license activation and the activation number the activation call gave you. The call is done in current thread. It can block the process if a timeout occured.

Properties

Public property ServerURL: string read FServerURL write SetServerURL;

URL of the CilTseg instance you want to work with.

Public property SoftwareID: integer read FSoftwareID write SetSoftwareID;

Unique ID of the software in the CilTseg backoffice.

Public property SoftwareToken: string read FSoftwareToken write SetSoftwareToken;

Unique PRIVATE token of the software in the CilTseg backoffice.

CilTseg for Delphi (c) 2024-2025 Patrick PREMARTIN - Powered by PasDoc
Generated by PasDoc 0.16.0.