Skip to content

Commit

Permalink
Update methods.py
Browse files Browse the repository at this point in the history
  • Loading branch information
artemlos committed Dec 17, 2024
1 parent 4ac9e41 commit b760521
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions licensing/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def get_key(token, rsa_pub_key, product_id, key, fields_to_return = 0,\
return (None, "The signature check failed.")

@staticmethod
def create_trial_key(token, product_id, machine_code):
def create_trial_key(token, product_id, machine_code, friendly_name= ""):
"""
Calls the CreateTrialKey method in Web API 3 and returns a tuple containing
(LicenseKeyString, Message). If an error occurs, LicenseKeyString will be None. If
Expand All @@ -140,7 +140,8 @@ def create_trial_key(token, product_id, machine_code):
try:
response = HelperMethods.send_request("key/createtrialkey", {"token":token,\
"ProductId":product_id,\
"MachineCode":machine_code})
"MachineCode":machine_code,\
"FriendlyName":friendly_name})
except HTTPError as e:
response = e.read()
except URLError as e:
Expand Down

0 comments on commit b760521

Please sign in to comment.