<?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 get tREST HTTP header value from property file. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-tREST-HTTP-header-value-from-property-file/m-p/2247734#M32823</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You could access to your response header with tRESTClient.&lt;/P&gt;
&lt;PRE&gt;((java.util.Map&amp;lt;String,java.util.List&amp;lt;String&amp;gt;&amp;gt;)globalMap.get("tRESTClient_1_HEADERS"))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 08:28:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-09-17T08:28:02Z</dc:date>
    <item>
      <title>How to get tREST HTTP header value from property file.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-tREST-HTTP-header-value-from-property-file/m-p/2247733#M32822</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt; 
&lt;P&gt;I'm calling a web service API using a tREST component.&lt;/P&gt; 
&lt;P&gt;HTTP request header contains an authentication token.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to set this dynamically by reading it from a file instead of the built-in.&lt;/P&gt; 
&lt;P&gt;What should i do?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="コメント 2019-09-17 154330.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7HB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153313i83610B96BE47836B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7HB.png" alt="0683p000009M7HB.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 07:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-tREST-HTTP-header-value-from-property-file/m-p/2247733#M32822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-17T07:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get tREST HTTP header value from property file.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-tREST-HTTP-header-value-from-property-file/m-p/2247734#M32823</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You could access to your response header with tRESTClient.&lt;/P&gt;
&lt;PRE&gt;((java.util.Map&amp;lt;String,java.util.List&amp;lt;String&amp;gt;&amp;gt;)globalMap.get("tRESTClient_1_HEADERS"))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 08:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-tREST-HTTP-header-value-from-property-file/m-p/2247734#M32823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-17T08:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get tREST HTTP header value from property file.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-tREST-HTTP-header-value-from-property-file/m-p/2247735#M32824</link>
      <description>&lt;P&gt;Get the token from the file with the following subjob to populate a global variable (for example a global variable called "token"):&lt;/P&gt;
&lt;P&gt;tFileInputDelimited --&amp;gt; tFlowToIterate (do not use "default" to decide by yourself for the variable name).&lt;/P&gt;
&lt;P&gt;Then in the tRest's value for the Value field, get the global variable value with the followinb expression:&lt;/P&gt;
&lt;PRE&gt;(String)globalMap.get("token")&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Sep 2019 09:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-tREST-HTTP-header-value-from-property-file/m-p/2247735#M32824</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-09-17T09:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get tREST HTTP header value from property file.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-tREST-HTTP-header-value-from-property-file/m-p/2247736#M32825</link>
      <description>I don't have enough skills to see this and create a job...&lt;BR /&gt;Does the key read from the file?</description>
      <pubDate>Wed, 18 Sep 2019 08:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-tREST-HTTP-header-value-from-property-file/m-p/2247736#M32825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-18T08:54:57Z</dc:date>
    </item>
  </channel>
</rss>

