Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have qliksense and python , I want to know how I can add value to my user using these 2 tools?
Regards,
neha
Can you share exact requirements?
Hi,
Connect QlikSense with Python
from websocket import create_connection
import ssl
senseHost = "HOST1"
privateKeyPath = "/Users/ABC"
## userDirectory and userId can be found at QMC -> Users
userDirectory, userId = "DIR", "user1"
url = "wss://" + senseHost + ":443/app" # valid
certs = ({"ca_certs": privateKeyPath + "root.pem",
"certfile": privateKeyPath + "client.pem",
"keyfile": privateKeyPath + "client_key.pem",
"cert_reqs": ssl.CERT_NONE,
"server_side": False
})
ssl.match_hostname = lambda cert, hostname: True
ws = create_connection(url, sslopt=certs,
header={'X-Qlik-User: UserDirectory=%s; UserId=%s' % (userDirectory, userId)})
print ("connetced")
session = ws.recv()
print (session)
Thanks and Regards
Mayur Ingale