<?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 Connect to a data source through an API in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Connect-to-a-data-source-through-an-API/m-p/2040070#M85705</link>
    <description>&lt;P&gt;Hi Qlikers,&lt;/P&gt;
&lt;P&gt;Hope you can help me with this.&lt;/P&gt;
&lt;P&gt;I am trying to connect from Qlik Sense to an app to extract data through an API. Basically I use 2 methods, the first to authenticate and the second to perform the query.&lt;/P&gt;
&lt;P&gt;When I make the calls through the &lt;STRONG&gt;Postman&lt;/STRONG&gt; program, all methods work fine&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the authentication process, the API documentation describes that the only thing we must specify is:&lt;BR /&gt;&lt;STRONG&gt;Headers&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Content-Type:application/x-www-form-urlencoded&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Body&lt;/STRONG&gt;&lt;BR /&gt;client_id:Interface4PMS_LDS&lt;BR /&gt;grant_type:password&lt;BR /&gt;username:xxxxxxx&lt;BR /&gt;password:yyyyyy&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RafaelBarrios_1-1676931963471.png" style="width: 526px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100939iBF07CD623376E668/image-dimensions/526x329?v=v2" width="526" height="329" role="button" title="RafaelBarrios_1-1676931963471.png" alt="RafaelBarrios_1-1676931963471.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And for the Query, we must use the retrieved token and the following parameters.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RafaelBarrios_2-1676932001044.png" style="width: 539px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100940iBC4BAB7A52EE307E/image-dimensions/539x311?v=v2" width="539" height="311" role="button" title="RafaelBarrios_2-1676932001044.png" alt="RafaelBarrios_2-1676932001044.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem im having is that im not able to create the connection for the authentiation from Qlik Sense REST connector&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RafaelBarrios_4-1676932296861.png" style="width: 548px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100942iCA077764A6666DDD/image-dimensions/548x352?v=v2" width="548" height="352" role="button" title="RafaelBarrios_4-1676932296861.png" alt="RafaelBarrios_4-1676932296861.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;i guess im missing some header or body configuration as Postman retrive some configuration automatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep in mind that even when the authentication process does not work for me, the extraction does succeed if I use the token generated using postman&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RafaelBarrios_6-1676932985585.png" style="width: 616px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100944i74368E3F33F7420A/image-dimensions/616x342?v=v2" width="616" height="342" role="button" title="RafaelBarrios_6-1676932985585.png" alt="RafaelBarrios_6-1676932985585.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RafaelBarrios_7-1676933263139.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100946i80C1FDDDF3A8FA2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RafaelBarrios_7-1676933263139.png" alt="RafaelBarrios_7-1676933263139.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please considere that the token expires and a new one needs to be generated after a few minutes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2023 22:49:52 GMT</pubDate>
    <dc:creator>RafaelBarrios</dc:creator>
    <dc:date>2023-02-20T22:49:52Z</dc:date>
    <item>
      <title>Connect to a data source through an API</title>
      <link>https://community.qlik.com/t5/App-Development/Connect-to-a-data-source-through-an-API/m-p/2040070#M85705</link>
      <description>&lt;P&gt;Hi Qlikers,&lt;/P&gt;
&lt;P&gt;Hope you can help me with this.&lt;/P&gt;
&lt;P&gt;I am trying to connect from Qlik Sense to an app to extract data through an API. Basically I use 2 methods, the first to authenticate and the second to perform the query.&lt;/P&gt;
&lt;P&gt;When I make the calls through the &lt;STRONG&gt;Postman&lt;/STRONG&gt; program, all methods work fine&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the authentication process, the API documentation describes that the only thing we must specify is:&lt;BR /&gt;&lt;STRONG&gt;Headers&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Content-Type:application/x-www-form-urlencoded&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Body&lt;/STRONG&gt;&lt;BR /&gt;client_id:Interface4PMS_LDS&lt;BR /&gt;grant_type:password&lt;BR /&gt;username:xxxxxxx&lt;BR /&gt;password:yyyyyy&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RafaelBarrios_1-1676931963471.png" style="width: 526px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100939iBF07CD623376E668/image-dimensions/526x329?v=v2" width="526" height="329" role="button" title="RafaelBarrios_1-1676931963471.png" alt="RafaelBarrios_1-1676931963471.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And for the Query, we must use the retrieved token and the following parameters.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RafaelBarrios_2-1676932001044.png" style="width: 539px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100940iBC4BAB7A52EE307E/image-dimensions/539x311?v=v2" width="539" height="311" role="button" title="RafaelBarrios_2-1676932001044.png" alt="RafaelBarrios_2-1676932001044.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem im having is that im not able to create the connection for the authentiation from Qlik Sense REST connector&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RafaelBarrios_4-1676932296861.png" style="width: 548px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100942iCA077764A6666DDD/image-dimensions/548x352?v=v2" width="548" height="352" role="button" title="RafaelBarrios_4-1676932296861.png" alt="RafaelBarrios_4-1676932296861.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;i guess im missing some header or body configuration as Postman retrive some configuration automatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep in mind that even when the authentication process does not work for me, the extraction does succeed if I use the token generated using postman&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RafaelBarrios_6-1676932985585.png" style="width: 616px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100944i74368E3F33F7420A/image-dimensions/616x342?v=v2" width="616" height="342" role="button" title="RafaelBarrios_6-1676932985585.png" alt="RafaelBarrios_6-1676932985585.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RafaelBarrios_7-1676933263139.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100946i80C1FDDDF3A8FA2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RafaelBarrios_7-1676933263139.png" alt="RafaelBarrios_7-1676933263139.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please considere that the token expires and a new one needs to be generated after a few minutes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 22:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Connect-to-a-data-source-through-an-API/m-p/2040070#M85705</guid>
      <dc:creator>RafaelBarrios</dc:creator>
      <dc:date>2023-02-20T22:49:52Z</dc:date>
    </item>
  </channel>
</rss>

