<?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: tRest output for tHttpRequest input in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRest-output-for-tHttpRequest-input/m-p/2243331#M29873</link>
    <description>&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2019 15:29:51 GMT</pubDate>
    <dc:creator>zalibra</dc:creator>
    <dc:date>2019-09-16T15:29:51Z</dc:date>
    <item>
      <title>tRest output for tHttpRequest input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-output-for-tHttpRequest-input/m-p/2243329#M29871</link>
      <description>&lt;P&gt;Wondering if it's possible to use the output of tRest as an input for tHttpRequest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using tRest to generate a dynamic Bearer token (this token expires every 10 minutes, so I need to generate a new one whenever I run the job). I then need to use that Bearer token in tHttpRequest to hit an exchange API to download trade data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to figure out how to configure tHttpRequest to take the output of tRest and then make the http call. Screenshots attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 17:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-output-for-tHttpRequest-input/m-p/2243329#M29871</guid>
      <dc:creator>zalibra</dc:creator>
      <dc:date>2019-09-13T17:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: tRest output for tHttpRequest input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-output-for-tHttpRequest-input/m-p/2243330#M29872</link>
      <description>&lt;P&gt;Store your access token in a global using tSetGlobalVar after you tmap.&lt;/P&gt;&lt;P&gt;(Alternatively you can use a tJavaRow and just write the code yourself)&lt;/P&gt;&lt;PRE&gt;globalMap.put("whateverYouNamedIt", test.tokenName)&lt;/PRE&gt;&lt;P&gt;Whatever you use as the key, you can then pass to the value in the tHttpRequest component, you can access it using this convention&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"Bearer " + (String)globalMap.get("whateverYouNamedIt")&lt;/PRE&gt;&lt;P&gt;Make sure to connect tRest to tHttpRequest via a onSubjobOK to ensure correct execution order&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 18:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-output-for-tHttpRequest-input/m-p/2243330#M29872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-13T18:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: tRest output for tHttpRequest input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-output-for-tHttpRequest-input/m-p/2243331#M29873</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 15:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-output-for-tHttpRequest-input/m-p/2243331#M29873</guid>
      <dc:creator>zalibra</dc:creator>
      <dc:date>2019-09-16T15:29:51Z</dc:date>
    </item>
  </channel>
</rss>

