Skip to content

Commit b760521

Browse files
committed
Update methods.py
1 parent 4ac9e41 commit b760521

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

licensing/methods.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def get_key(token, rsa_pub_key, product_id, key, fields_to_return = 0,\
126126
return (None, "The signature check failed.")
127127

128128
@staticmethod
129-
def create_trial_key(token, product_id, machine_code):
129+
def create_trial_key(token, product_id, machine_code, friendly_name= ""):
130130
"""
131131
Calls the CreateTrialKey method in Web API 3 and returns a tuple containing
132132
(LicenseKeyString, Message). If an error occurs, LicenseKeyString will be None. If
@@ -140,7 +140,8 @@ def create_trial_key(token, product_id, machine_code):
140140
try:
141141
response = HelperMethods.send_request("key/createtrialkey", {"token":token,\
142142
"ProductId":product_id,\
143-
"MachineCode":machine_code})
143+
"MachineCode":machine_code,\
144+
"FriendlyName":friendly_name})
144145
except HTTPError as e:
145146
response = e.read()
146147
except URLError as e:

0 commit comments

Comments
 (0)