From b7605213a8cae3406e2e8f0ae99fc1c13be7b97e Mon Sep 17 00:00:00 2001 From: Artem Los Date: Tue, 17 Dec 2024 18:59:14 +0100 Subject: [PATCH] Update methods.py --- licensing/methods.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/licensing/methods.py b/licensing/methods.py index e68fb91..a454ff1 100644 --- a/licensing/methods.py +++ b/licensing/methods.py @@ -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 @@ -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: