7 years ago
API/Script
Hi
I want to create device group named as "Fileserver" in /device/servers This is the first time I am running the script, so could you please check if my script is ok.
Also please le...
Issue has been resolved for the error, I had to change the script for version 3.5. Original script is for Python 2.7
#Construct signature
hmac = hmac.new(AccessKey.encode(),msg=requestVars.encode(),digestmod=hashlib.sha256).hexdigest()
signature = base64.b64encode(hmac.encode())
#Construct headers
auth = 'LMv1 ' + AccessId + ':' + signature.decode() + ':' + epoch
headers = {'Content-Type':'application/json','Authorization':auth}