v_17: Add FriendlyName support
We have updated both Python 2 and 3 libraries so that a friendly_name can be registered during activation. To get the same value as Environment.MachineName?, you can set the friendly name to socket.gethostname(). Below is an example of how to set it when calling Key.activate:
from licensing.models import *
from licensing.methods import Key, Helpers
import socket
res = Key.activate(token="WyIyNzMyIiwiYmx6NlJ6ZzdaWjFScmxFVFNCc283YTJyUG5kQURMZ0hucW1YdUZxKyJd",\
rsa_pub_key=pubKey,\
product_id=3349, key="ICVLD-VVSZR-ZTICT-YKGXL", machine_code=Helpers.GetMachineCode(),\
friendly_name=socket.gethostname())
Note: if the device was already activated once, the friendly name will not get updated. However, Web API Log will still contain a record of the friendly name.