Skip to content

Commit ed79aeb

Browse files
committed
increment_int_value_to_key with name param
1 parent 34dfe79 commit ed79aeb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

licensing/methods.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,14 +1015,16 @@ class Data:
10151015
"""
10161016

10171017
@staticmethod
1018-
def increment_int_value_to_key(token, product_id, key, object_id,\
1018+
def increment_int_value_to_key(token, product_id, key, object_id=0, name = "",\
10191019
int_value=0, enable_bound=False, bound=0):
10201020

10211021
"""
10221022
This method will increment the int value of a data object associated with a license key.
10231023
10241024
When creating an access token to this method, remember to include "IncrementIntValue" permission and
10251025
set the "Lock to key" value to -1.
1026+
1027+
Please note that you can identify a data object either by its Name or the Id (object_id).
10261028
10271029
More docs: https://app.cryptolens.io/docs/api/v3/IncrementIntValue (see parameters under Method 2)
10281030
"""
@@ -1033,6 +1035,7 @@ def increment_int_value_to_key(token, product_id, key, object_id,\
10331035
"ProductId" : product_id,\
10341036
"Key" : key,\
10351037
"Id" : object_id,\
1038+
"Name" : name,\
10361039
"IntValue": int_value ,\
10371040
"EnableBound": str(enable_bound),\
10381041
"Bound" : bound

0 commit comments

Comments
 (0)