<?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 Similar API call with different result (Full/get count) in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Similar-API-call-with-different-result-Full-get-count/m-p/1697820#M12697</link>
    <description>&lt;P&gt;I'm going to use &lt;A href="https://help.qlik.com/en-US/sense-developer/February2020/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Get-Count.htm" target="_self"&gt;Get count&lt;/A&gt;&amp;nbsp;but I got 404 (No matching endpoint found).&lt;/P&gt;&lt;P&gt;I can use "&lt;U&gt;Full&lt;/U&gt;" and I use the same parameters for "&lt;U&gt;Get count&lt;/U&gt;". I assume the parameters (like &lt;EM&gt;header, method, certification, the way using session)&lt;/EM&gt; should be the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are my URL for &lt;U&gt;Full&lt;/U&gt; and &lt;U&gt;Get count&lt;/U&gt;&lt;/P&gt;&lt;P&gt;FULL:&lt;BR /&gt;'https://xxx:4242/qrs/task/full?filter=((operational.lastExecutionResult.status+eq+FinishedFail))&amp;amp;xrfkey=1234567890123456'&lt;BR /&gt;Get count:&lt;BR /&gt;'https://xxx:4242/qrs/task/count?filter=((operational.lastExecutionResult.status+eq+FinishedFail))&amp;amp;xrfkey=1234567890123456'&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and these are the way I call them in python:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;import requests as req&lt;/P&gt;&lt;P&gt;session=req.Session()&lt;BR /&gt;cafile=(r'C:\Qlik files\client.pem',&lt;BR /&gt;r'C:\Qlik files\client_key.pem')&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;hd= { 'Pragma': 'no-cache',&lt;BR /&gt;'X-Qlik-User': 'UserDirectory=internal; UserId=sa_repository',&lt;BR /&gt;'x-Qlik-Xrfkey': '1234567890123456',&lt;BR /&gt;'Accept': 'application/json',&lt;BR /&gt;'Content-Type': 'application/json'}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;method='GET'&lt;BR /&gt;#url='https://xxx:4242/qrs/task/full?filter=((operational.lastExecutionResult.status+eq+FinishedFail))&amp;amp;xrfkey=1234567890123456'&lt;BR /&gt;&lt;BR /&gt;url='https://xxx:4242/qrs/task/count?filter=((operational.lastExecutionResult.status+eq+FinishedFail))&amp;amp;xrfkey=1234567890123456'&lt;BR /&gt;body=None&lt;/P&gt;&lt;P&gt;request=req.Request(method, url, headers=hd,json=body, auth=session.auth)&lt;BR /&gt;pr=session.prepare_request(request)&lt;BR /&gt;response = session.send(pr, cert=cafile, verify=False, allow_redirects=False)&lt;/P&gt;&lt;P&gt;print(response)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2020 16:00:57 GMT</pubDate>
    <dc:creator>parviz_asoodehfard</dc:creator>
    <dc:date>2020-04-29T16:00:57Z</dc:date>
    <item>
      <title>Similar API call with different result (Full/get count)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Similar-API-call-with-different-result-Full-get-count/m-p/1697820#M12697</link>
      <description>&lt;P&gt;I'm going to use &lt;A href="https://help.qlik.com/en-US/sense-developer/February2020/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Get-Count.htm" target="_self"&gt;Get count&lt;/A&gt;&amp;nbsp;but I got 404 (No matching endpoint found).&lt;/P&gt;&lt;P&gt;I can use "&lt;U&gt;Full&lt;/U&gt;" and I use the same parameters for "&lt;U&gt;Get count&lt;/U&gt;". I assume the parameters (like &lt;EM&gt;header, method, certification, the way using session)&lt;/EM&gt; should be the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are my URL for &lt;U&gt;Full&lt;/U&gt; and &lt;U&gt;Get count&lt;/U&gt;&lt;/P&gt;&lt;P&gt;FULL:&lt;BR /&gt;'https://xxx:4242/qrs/task/full?filter=((operational.lastExecutionResult.status+eq+FinishedFail))&amp;amp;xrfkey=1234567890123456'&lt;BR /&gt;Get count:&lt;BR /&gt;'https://xxx:4242/qrs/task/count?filter=((operational.lastExecutionResult.status+eq+FinishedFail))&amp;amp;xrfkey=1234567890123456'&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and these are the way I call them in python:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;import requests as req&lt;/P&gt;&lt;P&gt;session=req.Session()&lt;BR /&gt;cafile=(r'C:\Qlik files\client.pem',&lt;BR /&gt;r'C:\Qlik files\client_key.pem')&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;hd= { 'Pragma': 'no-cache',&lt;BR /&gt;'X-Qlik-User': 'UserDirectory=internal; UserId=sa_repository',&lt;BR /&gt;'x-Qlik-Xrfkey': '1234567890123456',&lt;BR /&gt;'Accept': 'application/json',&lt;BR /&gt;'Content-Type': 'application/json'}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;method='GET'&lt;BR /&gt;#url='https://xxx:4242/qrs/task/full?filter=((operational.lastExecutionResult.status+eq+FinishedFail))&amp;amp;xrfkey=1234567890123456'&lt;BR /&gt;&lt;BR /&gt;url='https://xxx:4242/qrs/task/count?filter=((operational.lastExecutionResult.status+eq+FinishedFail))&amp;amp;xrfkey=1234567890123456'&lt;BR /&gt;body=None&lt;/P&gt;&lt;P&gt;request=req.Request(method, url, headers=hd,json=body, auth=session.auth)&lt;BR /&gt;pr=session.prepare_request(request)&lt;BR /&gt;response = session.send(pr, cert=cafile, verify=False, allow_redirects=False)&lt;/P&gt;&lt;P&gt;print(response)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 16:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Similar-API-call-with-different-result-Full-get-count/m-p/1697820#M12697</guid>
      <dc:creator>parviz_asoodehfard</dc:creator>
      <dc:date>2020-04-29T16:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Similar API call with different result (Full/get count)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Similar-API-call-with-different-result-Full-get-count/m-p/1697919#M12700</link>
      <description>&lt;P&gt;/qrs/task/count does not exist but&amp;nbsp;/qrs/reloadtask/count &amp;amp;&amp;nbsp;/qrs/externalprogramtask/count &amp;amp;&amp;nbsp;/qrs/usersynctask/count all exist.&lt;/P&gt;&lt;P&gt;/qrs/task is a synthetic list of all of the different types of tasks. In scrolling through the &lt;A href="https://help.qlik.com/en-US/sense-developer/February2020/APIs/RepositoryServiceAPI/index.html?page=627" target="_self"&gt;list of endpoints available for task&lt;/A&gt;, I am not seeing count as an option.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 22:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Similar-API-call-with-different-result-Full-get-count/m-p/1697919#M12700</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2020-04-29T22:13:36Z</dc:date>
    </item>
  </channel>
</rss>

