Get Web API Log

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. Note, it's possible to restrict access to this method so that it can be used inside a client application, more about this in remarks.

Parameters

This method is accessed by https://app.cryptolens.io/api/ai/GetWebAPILog

Parameter Description Remarks
ProductId The product id that we should filter on. optional
Key The key string that we should filter on. optional, but requires ProductId to be specified.
MachineCode The machine code to filter on. Requires the entire machine code to be specified. Case sensitive. optional
FriendlyName The friendly name to filter on. "Contains" operation is used, i.e. you do not need to specify the entire friendly name. Case insensitive. optional
Limit Specifies how many events should be returned. default is 10 and at most 1000
StartingAfter Works as a cursor (for pagination). If the last element had the id=125, then setting this to 125 will return all events coming after 125. optional
v Method version. optional. by default, it's 1.

Results

Parameter Description Remarks
Events A list of Web API Log Objects. returned if no errors are thrown
Result This is either 0(=success) or 1(=error). always returned
Message The message that provides additional information about the result. If it's a successful result, null will be returned. Otherwise, in case of an error, a short message will be returned describing the error. always returned.

Example results

{"result":0,"message":""}

Remarks

  • If you set KeyLock=-1 when creating the access token, this method will require the product id together with the license key string. This can be used to retreive logs inside a client application without exposing logs of other license keys.

Errors

Error
Access denied.
The input parameters were incorrect.
;