<?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: Executing Curl Command in Qlik Sense in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Executing-Curl-Command-in-Qlik-Sense/m-p/1513106#M3441</link>
    <description>&lt;P&gt;Struggling to find a cURL example myself.&lt;BR /&gt;&lt;BR /&gt;I can easily modify a connector in QS using one or all of the following:&lt;BR /&gt;WITH CONNECTION, QUERY, HEADER and pagation, but so far&amp;nbsp;there are only a few examples to be found (except for the youtube vid where they connect to the easiest datalake to be found - starwars themed).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1) So i would suggest you to get the Api KEY with a POST method where you define your username and password to get the API key and move forward from there (IF your API supports POST method or is a SPoT API).&lt;BR /&gt;Example:&lt;BR /&gt;curl -X POST -H 'Content-Type: application/json' -d '{"email": "abc@def.com", "password": "12345678"}' &lt;A href="https://xxx.xxx.xxx.xxx:9440/api/v1/api_keys.json" target="_blank"&gt;https://xxx.xxx.xxx.xxx:9440/api/v1/api_keys.json&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Picture of the connector:&lt;BR /&gt;&lt;IMG src="https://imgur.com/a/UEE4opr" border="0" alt="Rest Post LIB example." /&gt;Since the forum seems to be still a bit buggy (picture not appearing), i will leave a imgur picture here: &lt;A href="https://imgur.com/a/UEE4opr" target="_self"&gt;https://imgur.com/a/UEE4opr&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2) THAT means that if it is supported, then you will get your username and password to a RestConnectorMasterTable where you can read the data later;&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;LET vPassword = peek('RestConnectorMasterTable', 0, 'apy-key')&lt;BR /&gt;LET vUsername = peek('RestConnectorMasterTable', 0, 'username')&lt;BR /&gt;LET vBodyPart = 'tuser_' &amp;amp; $(vUsername) &amp;amp; '_password_' &amp;amp; $(vPassword)&amp;nbsp; // or how ever the par of the WITH url body later should contain.&lt;BR /&gt;This is a mere example how i understood what the issue was in this case.&lt;BR /&gt;Hope it helps, i'm stuck with GETTING anything with cURL default method GET. It just wont let me validate my username and password while i'm creating the LIB since i'm supposed to skip the validation &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; (meaning i cannot TEST or CREATE the connection in the first place to use the parameters after, since QS won't allow you to save a&amp;nbsp;not working LIB Connection).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Nov 2018 11:45:49 GMT</pubDate>
    <dc:creator>Kalmer</dc:creator>
    <dc:date>2018-11-28T11:45:49Z</dc:date>
    <item>
      <title>Executing Curl Command in Qlik Sense</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Executing-Curl-Command-in-Qlik-Sense/m-p/138422#M753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Rest Connector to connect to API URL to pull data from Splunk System in Qlik Sense&lt;/P&gt;&lt;P&gt;Now its 3 step Process&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Invoke Saved Search report using curl command&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;SPAN lang="EN-GB" style="color: red;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt;curl -k -u username:password &lt;/SPAN&gt;&lt;A href="https://ServerAdress./"&gt;https://Server Address&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Times New Roman;"&gt;&lt;SPAN lang="EN-GB" style="color: red;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red; font-size: 12pt; font-family: Calibri;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-size: 12pt; font-family: Calibri;"&gt;2) After execution the output is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&amp;lt;response&amp;gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;lt;sid&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;tuser__aaaa__dcreports_abc11111111c44440_at_123232324_63563636&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;lt;/sid&amp;gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&amp;lt;/response&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;everyday new SID is generated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Calibri;"&gt;3) then the final URL needs to be created&lt;SPAN style="color: red; font-size: 12pt; font-family: Calibri;"&gt; using above &amp;lt;Sid&amp;gt; to refresh latest data.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red; font-size: 12pt; font-family: Calibri;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red; font-size: 12pt; font-family: Calibri;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red; font-size: 12pt; font-family: Calibri;"&gt;Now in rest URL I have used&amp;nbsp; to get new URL daily from variable by using &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WITH CONNECTION (&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; URL "$(vURL)"&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;and &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;let vURL = '&lt;A class="jive-link-external-small" href="https://api.surveymonkey.com/v3/surveys/$(vID)/responses/bulk';" rel="nofollow" target="_blank"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;https://abc.in.com/v3/surveys/&lt;SPAN style="color: #ff0000; text-decoration: underline;"&gt;$(vSID)&lt;/SPAN&gt;/results &lt;SPAN style="color: #333399; text-decoration: underline;"&gt;&lt;SPAN style="color: #33cccc; text-decoration: underline;"&gt;&lt;SPAN lang="EN-GB" style="color: red; font-family: 'Calibri',sans-serif; font-size: 11pt; text-decoration: underline; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-GB; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;SPAN style="color: #0000ff; text-decoration: underline;"&gt;--get&lt;/SPAN&gt; &lt;SPAN style="color: #000080;"&gt;&lt;SPAN style="color: #00ccff; text-decoration: underline;"&gt;-d output_mode&lt;/SPAN&gt;=csv&lt;/SPAN&gt;&lt;/SPAN&gt;'&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;I want to know how to execute first two steps in Qliksense to execute curl command and get New SID every day so that I can update VURL daily&amp;nbsp; using variable(vSID) as shown above in sample URL .&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;Manoj Deshmane&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 08:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Executing-Curl-Command-in-Qlik-Sense/m-p/138422#M753</guid>
      <dc:creator>manoj2102</dc:creator>
      <dc:date>2018-07-13T08:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Curl Command in Qlik Sense</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Executing-Curl-Command-in-Qlik-Sense/m-p/1513106#M3441</link>
      <description>&lt;P&gt;Struggling to find a cURL example myself.&lt;BR /&gt;&lt;BR /&gt;I can easily modify a connector in QS using one or all of the following:&lt;BR /&gt;WITH CONNECTION, QUERY, HEADER and pagation, but so far&amp;nbsp;there are only a few examples to be found (except for the youtube vid where they connect to the easiest datalake to be found - starwars themed).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1) So i would suggest you to get the Api KEY with a POST method where you define your username and password to get the API key and move forward from there (IF your API supports POST method or is a SPoT API).&lt;BR /&gt;Example:&lt;BR /&gt;curl -X POST -H 'Content-Type: application/json' -d '{"email": "abc@def.com", "password": "12345678"}' &lt;A href="https://xxx.xxx.xxx.xxx:9440/api/v1/api_keys.json" target="_blank"&gt;https://xxx.xxx.xxx.xxx:9440/api/v1/api_keys.json&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Picture of the connector:&lt;BR /&gt;&lt;IMG src="https://imgur.com/a/UEE4opr" border="0" alt="Rest Post LIB example." /&gt;Since the forum seems to be still a bit buggy (picture not appearing), i will leave a imgur picture here: &lt;A href="https://imgur.com/a/UEE4opr" target="_self"&gt;https://imgur.com/a/UEE4opr&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2) THAT means that if it is supported, then you will get your username and password to a RestConnectorMasterTable where you can read the data later;&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;LET vPassword = peek('RestConnectorMasterTable', 0, 'apy-key')&lt;BR /&gt;LET vUsername = peek('RestConnectorMasterTable', 0, 'username')&lt;BR /&gt;LET vBodyPart = 'tuser_' &amp;amp; $(vUsername) &amp;amp; '_password_' &amp;amp; $(vPassword)&amp;nbsp; // or how ever the par of the WITH url body later should contain.&lt;BR /&gt;This is a mere example how i understood what the issue was in this case.&lt;BR /&gt;Hope it helps, i'm stuck with GETTING anything with cURL default method GET. It just wont let me validate my username and password while i'm creating the LIB since i'm supposed to skip the validation &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; (meaning i cannot TEST or CREATE the connection in the first place to use the parameters after, since QS won't allow you to save a&amp;nbsp;not working LIB Connection).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 11:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Executing-Curl-Command-in-Qlik-Sense/m-p/1513106#M3441</guid>
      <dc:creator>Kalmer</dc:creator>
      <dc:date>2018-11-28T11:45:49Z</dc:date>
    </item>
  </channel>
</rss>

