<?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: How to connect to API through the script in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-connect-to-API-through-the-script/m-p/1646526#M7810</link>
    <description>Sorry,&lt;BR /&gt;It's Qlik Sense&lt;BR /&gt;and yes i have it stored.&lt;BR /&gt;&lt;BR /&gt;and i created the connector,&lt;BR /&gt;so as i said, another option is i can change the header of the connector dynamically,&lt;BR /&gt;is it possible? can you write a short example maybe?</description>
    <pubDate>Wed, 13 Nov 2019 15:57:35 GMT</pubDate>
    <dc:creator>gal_polak</dc:creator>
    <dc:date>2019-11-13T15:57:35Z</dc:date>
    <item>
      <title>How to connect to API through the script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-connect-to-API-through-the-script/m-p/1646505#M7806</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an API that i need to connect to, and i know i can use the REST connector.&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i need more flexibility for example:&lt;/P&gt;&lt;P&gt;i need to connect to the following api: &lt;EM&gt;&lt;A href="https://api.game.com/usergroups?apikey='asdasdjlkascass2" target="_blank"&gt;https://api.game.com/usergroups?apikey='asdasdjlkascass2&lt;/A&gt;'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;but need to change the apikey that is being sent dynamically&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;change the header that is being sent,&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can i do that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i thought that maybe i will have some kind of an option from the script editor to write something like this:&lt;/P&gt;&lt;P&gt;CUSTOM CONNECT "&lt;A href="http://api.game.com/usergroup?apikey=$(KEY" target="_blank"&gt;http://api.game.com/usergroup?apikey=$(KEY&lt;/A&gt;)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 13:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-connect-to-API-through-the-script/m-p/1646505#M7806</guid>
      <dc:creator>gal_polak</dc:creator>
      <dc:date>2021-12-23T13:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to API through the script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-connect-to-API-through-the-script/m-p/1646512#M7807</link>
      <description>&lt;P&gt;Hi Gal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically the question is if you need to authenticate or not. If not - you can connect to as if you are loading internet file.&lt;/P&gt;&lt;P&gt;That's straight-forward with QV and quite tricky but still naively possible in QS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can drop the URL in the browser and that fetches the information you need (basically scraping it),&amp;nbsp; you can write the code with a bit of help.&lt;/P&gt;&lt;P&gt;But if you need to parse headers with token for authentication you need to check the Qlik REST connector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;S.T.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 15:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-connect-to-API-through-the-script/m-p/1646512#M7807</guid>
      <dc:creator>Stoyan_Terziev</dc:creator>
      <dc:date>2019-11-13T15:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to API through the script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-connect-to-API-through-the-script/m-p/1646517#M7808</link>
      <description>&lt;P&gt;My problem is that i need to authenticate,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have multipal URL (apis) each one of theme have different api key,&amp;nbsp;&lt;/P&gt;&lt;P&gt;so i need some kind of a way to change the path when i use the "CONNECT"&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 15:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-connect-to-API-through-the-script/m-p/1646517#M7808</guid>
      <dc:creator>gal_polak</dc:creator>
      <dc:date>2019-11-13T15:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to API through the script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-connect-to-API-through-the-script/m-p/1646521#M7809</link>
      <description>&lt;P&gt;Hi Gal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We didn't clarify if this is Qlik View or Qlik Sense?&lt;/P&gt;&lt;P&gt;I think once you generate your "CONNECT" or LIB: statement, you can use variables to modify certain paths in it.&lt;/P&gt;&lt;P&gt;Still if you need to authenticate, I don't think you can bypass using REST connector. Do you have it installed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;BR /&gt;S.T.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 15:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-connect-to-API-through-the-script/m-p/1646521#M7809</guid>
      <dc:creator>Stoyan_Terziev</dc:creator>
      <dc:date>2019-11-13T15:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to API through the script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-connect-to-API-through-the-script/m-p/1646526#M7810</link>
      <description>Sorry,&lt;BR /&gt;It's Qlik Sense&lt;BR /&gt;and yes i have it stored.&lt;BR /&gt;&lt;BR /&gt;and i created the connector,&lt;BR /&gt;so as i said, another option is i can change the header of the connector dynamically,&lt;BR /&gt;is it possible? can you write a short example maybe?</description>
      <pubDate>Wed, 13 Nov 2019 15:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-connect-to-API-through-the-script/m-p/1646526#M7810</guid>
      <dc:creator>gal_polak</dc:creator>
      <dc:date>2019-11-13T15:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to API through the script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-connect-to-API-through-the-script/m-p/1646551#M7811</link>
      <description>&lt;P&gt;Hi Gal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the same connection and dynamically changing the header is not possible with native QS functionality to my knowledge.&lt;/P&gt;&lt;P&gt;I don't have a reliable test connection to play with so I can't be sure this success is legitimate (actually I'm quite sure it is not):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 975px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23572iAB42B6E3CE505FFF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But for the sake of science, you can give it a shot and let's check what is happening.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The request field says:&lt;BR /&gt;$(=vTest)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;S.T.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 16:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-connect-to-API-through-the-script/m-p/1646551#M7811</guid>
      <dc:creator>Stoyan_Terziev</dc:creator>
      <dc:date>2019-11-13T16:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to API through the script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-connect-to-API-through-the-script/m-p/1647078#M7812</link>
      <description>&lt;P&gt;This is very creative and i like it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;unfortunately it is not working.&lt;/P&gt;&lt;P&gt;but i found a way to change the headers:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2019-11-14 171752.png" style="width: 317px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23664iAB75D29BF935BDB7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation 2019-11-14 171752.png" alt="Annotation 2019-11-14 171752.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it will be good enough for now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx for all your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 15:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-connect-to-API-through-the-script/m-p/1647078#M7812</guid>
      <dc:creator>gal_polak</dc:creator>
      <dc:date>2019-11-14T15:19:22Z</dc:date>
    </item>
  </channel>
</rss>

