<?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: Load external data with API in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Load-external-data-with-API/m-p/1532429#M38352</link>
    <description>&lt;P&gt;Connecting to REDCap APIs with Qlik Sense REST Connector:&lt;/P&gt;
&lt;P&gt;The connection was simple but it did require one little feature that wasn’t super-obvious...&lt;/P&gt;
&lt;P&gt;Basically, you have to add the &lt;STRONG&gt;Query Header&lt;/STRONG&gt; circled in red below – not sure if it has to be the value below or not but I do know that ‘application/x-www-form-urlencoded’ works.&lt;/P&gt;
&lt;P&gt;As for the other data, the actual API parameters are in the &lt;STRONG&gt;Request Body&lt;/STRONG&gt; in the format you see below (no quotes or spaces, equal symbol between api parameter and its value, ampersands between the key-value pairs). The token does need to be added the string below for it to work.&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2019-01-19 19_18_15-FW_ Pulling REDCap data directly into Qliksense - Message (HTML).png" style="width: 448px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4110i6886FF2C2F5DFFAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-01-19 19_18_15-FW_ Pulling REDCap data directly into Qliksense - Message (HTML).png" alt="2019-01-19 19_18_15-FW_ Pulling REDCap data directly into Qliksense - Message (HTML).png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;SPAN&gt;REDCap is a secure web application for building and managing online surveys and databases. While REDCap can be used to collect virtually any type of data (including 21 CFR Part 11, FISMA, and HIPAA-compliant environments), it is specifically geared to support online or offline data capture for research studies and operations. The REDCap Consortium, a vast support network of collaborators, is composed of thousands of active institutional partners in over one hundred countries who utilize and support REDCap in various ways.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 20 Jan 2019 01:19:55 GMT</pubDate>
    <dc:creator>joe_warbington</dc:creator>
    <dc:date>2019-01-20T01:19:55Z</dc:date>
    <item>
      <title>Load external data with API</title>
      <link>https://community.qlik.com/t5/App-Development/Load-external-data-with-API/m-p/8121#M628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to load data into Sense from an external source which has an API? The source system is web-based and uses mySQL. The API sample PHP code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;lt;?php&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$data = array(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'token' =&amp;gt; 'asdf098ghqh',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'content' =&amp;gt; 'record',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'format' =&amp;gt; 'csv',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'type' =&amp;gt; 'flat',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'fields' =&amp;gt; array('abstractor_1','bmi_data_1'),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'rawOrLabel' =&amp;gt; 'raw',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'rawOrLabelHeaders' =&amp;gt; 'raw',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'exportCheckboxLabel' =&amp;gt; 'false',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'exportSurveyFields' =&amp;gt; 'false',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'exportDataAccessGroups' =&amp;gt; 'true',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'returnFormat' =&amp;gt; 'json'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$ch = curl_init();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN&gt;curl_setopt($ch, CURLOPT_URL, '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myurl.com/redcap/api/');" rel="nofollow" target="_blank"&gt;https://myurl.com/redcap/api/');&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;curl_setopt($ch, CURLOPT_VERBOSE, 0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;curl_setopt($ch, CURLOPT_AUTOREFERER, true);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;curl_setopt($ch, CURLOPT_MAXREDIRS, 10);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data, '', '&amp;amp;'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$output = curl_exec($ch);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;print $output;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;curl_close($ch);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I run or invoke this from Sense Enterprise? The API also allows for Java, cURL, Ruby, Perl, Python and R. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jan 2018 23:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-external-data-with-API/m-p/8121#M628</guid>
      <dc:creator>Lauri</dc:creator>
      <dc:date>2018-01-28T23:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Load external data with API</title>
      <link>https://community.qlik.com/t5/App-Development/Load-external-data-with-API/m-p/1532429#M38352</link>
      <description>&lt;P&gt;Connecting to REDCap APIs with Qlik Sense REST Connector:&lt;/P&gt;
&lt;P&gt;The connection was simple but it did require one little feature that wasn’t super-obvious...&lt;/P&gt;
&lt;P&gt;Basically, you have to add the &lt;STRONG&gt;Query Header&lt;/STRONG&gt; circled in red below – not sure if it has to be the value below or not but I do know that ‘application/x-www-form-urlencoded’ works.&lt;/P&gt;
&lt;P&gt;As for the other data, the actual API parameters are in the &lt;STRONG&gt;Request Body&lt;/STRONG&gt; in the format you see below (no quotes or spaces, equal symbol between api parameter and its value, ampersands between the key-value pairs). The token does need to be added the string below for it to work.&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2019-01-19 19_18_15-FW_ Pulling REDCap data directly into Qliksense - Message (HTML).png" style="width: 448px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4110i6886FF2C2F5DFFAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-01-19 19_18_15-FW_ Pulling REDCap data directly into Qliksense - Message (HTML).png" alt="2019-01-19 19_18_15-FW_ Pulling REDCap data directly into Qliksense - Message (HTML).png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;SPAN&gt;REDCap is a secure web application for building and managing online surveys and databases. While REDCap can be used to collect virtually any type of data (including 21 CFR Part 11, FISMA, and HIPAA-compliant environments), it is specifically geared to support online or offline data capture for research studies and operations. The REDCap Consortium, a vast support network of collaborators, is composed of thousands of active institutional partners in over one hundred countries who utilize and support REDCap in various ways.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jan 2019 01:19:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-external-data-with-API/m-p/1532429#M38352</guid>
      <dc:creator>joe_warbington</dc:creator>
      <dc:date>2019-01-20T01:19:55Z</dc:date>
    </item>
  </channel>
</rss>

