Skip to content

Instantly share code, notes, and snippets.

View clintcarr's full-sized avatar

Clint Carr clintcarr

  • Qlik
  • Melbourne, Australia
View GitHub Profile
@clintcarr
clintcarr / report.py
Last active December 22, 2022 19:14
Simple Python script to generate Qlik Sense report and download it.
import requests
import time
from requests.structures import CaseInsensitiveDict
url = "https://<tenant>.<region>.qlikcloud.com/api/v1/reports"
headers = CaseInsensitiveDict()
headers["Authorization"] = "Bearer <id>"
headers["Content-type"] = "application/json"
@clintcarr
clintcarr / qespy.py
Last active September 7, 2023 19:28
Python QES API
import websocket
import ssl
import json
import threading
from time import sleep
ws = None
response = None
header = {'X-Qlik-User: UserDirectory=QLIKLOCAL; UserId=administrator'}