Skip to main content
This method will assign a new integer value to a Data Object. Note, you can also increment or decrement the integer value. Please read more about access tokens in Remarks. This method is accessed in several ways. Each way works in the same way and requires the same permission. The only difference is the type of parameters. Both cases are listed below:

Parameters

Method 1 (general): https://api.cryptolens.io/api/data/SetIntValue Method 2 (key specific): https://api.cryptolens.io/api/data/SetIntValueToKey There are two ways to call this method: Method 3 (machine code specific): https://api.cryptolens.io/api/data/SetIntValueToMachineCode There are two ways to call this method:

Results

Example results

Remarks

  • Integer overflows are not allowed. If you attempt to assign an int value that is beyond the limits of an int32, zero will be assigned to the data object’s IntValue.
  • When accessing the key specific methods (using productId and the key string), you need to either disable key lock (set it to zero) or set it to a negative number, in the same way you would have done if you would have used KeyLock. We recommend to set the KeyLock to -1 when creating the access token.

Errors