Qlik Community

Ask a Question

Integration, Extension & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
Our next Qlik Insider session will cover new key capabilities. Join us August 11th REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
neha_sri
Creator III
Creator III

Qliksense and python

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

 

3 Replies
tush
Creator II
Creator II

Hi,

     Please go to below link:-

https://www.youtube.com/watch?v=4HiUXb2Jraw

 

Thanks

Tushar

Shubham_Deshmukh
Specialist
Specialist

Can you share exact requirements?

mayuringale25
Partner
Partner

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

Thanks and Regards
Mayur Ingale