Class AI
Methods that related to data gathering. A complete list can be found here: https://app.cryptolens.io/docs/api/v3/AI
Inheritance
Inherited Members
Namespace: SKM.V3.Methods
Assembly: Cryptolens.Licensing.dll
Syntax
public class AI
Methods
GetWebAPILog(String, GetWebAPILogModel)
This method will retrieve a list of Web API Logs. All events that get logged are related to a change of a license key or data object, eg. when license key gets activated or when a property of data object changes. More details about the method that was called are specified in the State field. You can read more about it here. These logs contain minimal information but are guaranteed to be preserved. To get more information, especially about changes not tracked in this log, please check out the Object Log.
Declaration
public static GetWebAPILogResult GetWebAPILog(string token, GetWebAPILogModel parameters)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth |
GetWebAPILogModel | parameters | The parameters that the method needs |
Returns
Type | Description |
---|---|
GetWebAPILogResult | Returns KeyLockResult or null. |
Remarks
Note: for more details, please see
https://app.cryptolens.io/docs/api/v3/GetWebAPILog
RegisterEvent(String, RegisterEventModel)
This method will, given a license key, generate a new access token that is locked to that particular key and return the Id of that key. The scope of the access token is preserved (i.e. all methods that were enabled in the access token used to access this method will be copied to the new access token) except for the key lock, which is going to be changed to the id of the license key. Note, for this method to work, the access token used to access this method has to have key lock set to -1. All of these details are described in Remarks.
Declaration
public static BasicResult RegisterEvent(string token, RegisterEventModel parameters)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth |
RegisterEventModel | parameters | The parameters that the method needs |
Returns
Type | Description |
---|---|
BasicResult | Returns KeyLockResult or null. |
Remarks
Note: for more details, please see
https://app.cryptolens.io/docs/api/v3/RegisterEvent
RegisterEvents(String, RegisterEventsModel)
This method will register an event that has occured in either the client app (eg. start of a certain feature or interaction within a feature) or in a third party provider (eg. a payment has occured, etc). Note: You can either use this method standalone(eg.by only providing a machine code/device identifier) or together with Cryptolens Licensing module(which requires productId and optionally keyid to be set). The more information that is provided, the better insights can be provided.
Declaration
public static BasicResult RegisterEvents(string token, RegisterEventsModel parameters)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth |
RegisterEventsModel | parameters | The parameters that the method needs |
Returns
Type | Description |
---|---|
BasicResult | Returns KeyLockResult or null. |
Remarks
Note: for more details, please see
https://app.cryptolens.io/docs/api/v3/RegisterEvent