<?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: Calling a REST API in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Calling-a-REST-API/m-p/2092173#M18810</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/237652"&gt;@tanini&lt;/a&gt;&amp;nbsp;- &lt;A href="https://community.qlik.com/t5/QlikView-Connectivity/How-to-retrieve-Access-Token-using-REST/m-p/1622226/highlight/true#M3687" target="_self"&gt;This previous post has a decent explanation&lt;/A&gt; of how to retrieve the token, then utilize it to dynamically connect to the second API endpoint.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/connectors/Subsystems/REST_connector_help/Content/Connectors_REST/Load-REST-data/Load-data.htm#:~:text=record%20is%20selected.-,WITH%20CONNECTION%20keyword,-The%20REST%20Connector" target="_self"&gt;The WITHCONNECTION keyword&lt;/A&gt; is the key, as it allows you to manipulate an existing connection with a different URL, headers, etc.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jul 2023 15:01:07 GMT</pubDate>
    <dc:creator>jprdonnelly</dc:creator>
    <dc:date>2023-07-10T15:01:07Z</dc:date>
    <item>
      <title>Calling a REST API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Calling-a-REST-API/m-p/2091939#M18801</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Very very new on Qlik, but experienced with development and APIs.&lt;/P&gt;
&lt;P&gt;I'm trying to query data from a REST API.&lt;/P&gt;
&lt;P&gt;The process is twofold, first authenticate, grab a token in the response, then query the other APIs.&lt;/P&gt;
&lt;P&gt;On postman I can authenticate fine, and grab a success json object with the session token I can use to query other APIs.&lt;/P&gt;
&lt;P&gt;On click, I get a success=false and an empty token.&lt;/P&gt;
&lt;P&gt;The query is super simple, POST to the api url with a json {"Login":"yadayada","Password":"password"} payload.&lt;/P&gt;
&lt;P&gt;CUSTOM CONNECT TO "Provider=QvRestConnector.exe;url=&lt;A href="http://url/api/login;timeout=30;method=POST;requestBody={%3Login%3:%3yadda%3,%3Password%3:%3password%3};autoDetectResponseType=true;keyGenerationStrategy=0;authSchema=basic;skipServerCertificateValidation=1;useCertificate=No;certificateStoreLocation=CurrentUser;certificateStoreName=My;PaginationType=None;allowResponseHeaders=false;allowHttpsOnly=false;XUserId=;XPassword=" target="_blank"&gt;http://url/api/login;timeout=30;method=POST;requestBody={%3Login%3:%3yadda%3,%3Password%3:%3password%3};autoDetectResponseType=true;keyGenerationStrategy=0;authSchema=basic;skipServerCertificateValidation=1;useCertificate=No;certificateStoreLocation=CurrentUser;certificateStoreName=My;PaginationType=None;allowResponseHeaders=false;allowHttpsOnly=false;XUserId=;XPassword=&lt;/A&gt;;";&lt;BR /&gt;I've tried authSchema=anonymous as well without success.&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 07:30:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Calling-a-REST-API/m-p/2091939#M18801</guid>
      <dc:creator>tanini</dc:creator>
      <dc:date>2023-07-10T07:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a REST API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Calling-a-REST-API/m-p/2092173#M18810</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/237652"&gt;@tanini&lt;/a&gt;&amp;nbsp;- &lt;A href="https://community.qlik.com/t5/QlikView-Connectivity/How-to-retrieve-Access-Token-using-REST/m-p/1622226/highlight/true#M3687" target="_self"&gt;This previous post has a decent explanation&lt;/A&gt; of how to retrieve the token, then utilize it to dynamically connect to the second API endpoint.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/connectors/Subsystems/REST_connector_help/Content/Connectors_REST/Load-REST-data/Load-data.htm#:~:text=record%20is%20selected.-,WITH%20CONNECTION%20keyword,-The%20REST%20Connector" target="_self"&gt;The WITHCONNECTION keyword&lt;/A&gt; is the key, as it allows you to manipulate an existing connection with a different URL, headers, etc.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 15:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Calling-a-REST-API/m-p/2092173#M18810</guid>
      <dc:creator>jprdonnelly</dc:creator>
      <dc:date>2023-07-10T15:01:07Z</dc:date>
    </item>
  </channel>
</rss>

