Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
harika18
Contributor III
Contributor III

qlik sense with python

Hello,

I am trying to integrate qlik sense with python.I wanted to know does app id change during import and export or just only when we publish the app?

Any reference regarding app ids and how the  backend process works is highly appreciable

Labels (5)
2 Replies
pradosh_thakur
Master II
Master II

What are you trying to achieve?

 

Are you using python in script or SSE ?

Learning never stops.
mayuringale25
Partner - Creator
Partner - Creator

Hi,
refer this code


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