<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Connecting to Qlik SaaS API via Python in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Connecting-to-Qlik-SaaS-API-via-Python/m-p/2464471#M20791</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/300125"&gt;@Kengwhye&lt;/a&gt;&amp;nbsp;please have a look to our &lt;A href="https://qlik.dev/toolkits/platform-sdk/" target="_self"&gt;Platform SDK&lt;/A&gt; for connecting to Qlik SaaS with Python&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2024 06:56:57 GMT</pubDate>
    <dc:creator>alex_colombo</dc:creator>
    <dc:date>2024-06-21T06:56:57Z</dc:date>
    <item>
      <title>Connecting to Qlik SaaS API via Python</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Connecting-to-Qlik-SaaS-API-via-Python/m-p/2464092#M20785</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I was just wondering if anyone has a template code in Python to connect to Qlik SaaS's API. I'm a tenant admin for my organization and was hoping to explore usage of the API to automate some of the Admin workflows in Python.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've searched for some boilerplates online using the requests library in Python but was unable to make the connection. The error that was shown is as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="ansi-red-intense-fg ansi-bold"&gt;SSLError&lt;/SPAN&gt;: HTTPSConnectionPool(host='organization.sg.qlikcloud.com', port=443): Max retries exceeded with url: /api/v1/users/me (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')))&lt;/PRE&gt;
&lt;P&gt;Seems to me that there is a need for an additional certificate for authentication.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've gone through the admin panel to create a personal API key and that was the API key that I've used to authenticate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the code that I've used to test the connection:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;import requests
import json

apiurl ="https://organization.sg.qlikcloud.com/api/v1/users/me"
headers = {"Token": "api token here"}

result = requests.get(apiurl, headers=headers).json()
print(json.dumps(result, indent=4, separators=(". ", " = ")))
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;import requests&lt;BR /&gt;import json&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 07:16:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Connecting-to-Qlik-SaaS-API-via-Python/m-p/2464092#M20785</guid>
      <dc:creator>Kengwhye</dc:creator>
      <dc:date>2024-06-20T07:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting to Qlik SaaS API via Python</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Connecting-to-Qlik-SaaS-API-via-Python/m-p/2464471#M20791</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/300125"&gt;@Kengwhye&lt;/a&gt;&amp;nbsp;please have a look to our &lt;A href="https://qlik.dev/toolkits/platform-sdk/" target="_self"&gt;Platform SDK&lt;/A&gt; for connecting to Qlik SaaS with Python&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 06:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Connecting-to-Qlik-SaaS-API-via-Python/m-p/2464471#M20791</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2024-06-21T06:56:57Z</dc:date>
    </item>
  </channel>
</rss>

