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
Support Cases coming to Qlik Community Oct. 4! Start chats, open cases, explore resources: READ DETAILS
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
Partner

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