<?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: Calling a Rest URL that contains Hash value in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Calling-a-Rest-URL-that-contains-Hash-value/m-p/2237695#M26041</link>
    <description>Before invoking the tRestClient, you can use a tJava/ tMap or similar to generate this value, save it in a context/ globalMap and use that value in your query parameters.</description>
    <pubDate>Tue, 30 Jun 2020 14:36:55 GMT</pubDate>
    <dc:creator>root</dc:creator>
    <dc:date>2020-06-30T14:36:55Z</dc:date>
    <item>
      <title>Calling a Rest URL that contains Hash value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Calling-a-Rest-URL-that-contains-Hash-value/m-p/2237693#M26039</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I'm trying to execute a REST call using tRESTClient.&lt;/P&gt; 
&lt;P&gt;I used this before, and it works fine, but for this specific service, where the authentication contains a hashed value that expires every 5 minutes.&lt;/P&gt; 
&lt;P&gt;So I need to have this value created at runtime.&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="Rest1.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaWZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131747i69465ECF4F2EB16F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaWZ.png" alt="0683p000009MaWZ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I found the following code that needs to be used to create te hash :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;var auth = accountId + ':' + apiKeyId + ':' + (new Date()).getTime();&lt;BR /&gt;var authHash = auth + ':' + CryptoJS.SHA512(auth + apiKey).toString(CryptoJS.enc.Hex);&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have the values for&amp;nbsp;accountId,apiKeyId &amp;amp;&amp;nbsp;apiKey&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How (and where) do I create 'authHash' value in my job ?&lt;/P&gt; 
&lt;P&gt;BTW. I'm &lt;STRONG&gt;not&lt;/STRONG&gt; a seasoned developer,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;thanks for any help.&lt;/P&gt; 
&lt;P&gt;G.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 16:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Calling-a-Rest-URL-that-contains-Hash-value/m-p/2237693#M26039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-26T16:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Rest URL that contains Hash value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Calling-a-Rest-URL-that-contains-Hash-value/m-p/2237694#M26040</link>
      <description>Before invoking the tRestClient, you can use a tJava/ tMap or similar to generate this value, save it in a context/ globalMap and use that value in your query parameters.</description>
      <pubDate>Tue, 30 Jun 2020 14:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Calling-a-Rest-URL-that-contains-Hash-value/m-p/2237694#M26040</guid>
      <dc:creator>root</dc:creator>
      <dc:date>2020-06-30T14:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a Rest URL that contains Hash value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Calling-a-Rest-URL-that-contains-Hash-value/m-p/2237695#M26041</link>
      <description>Before invoking the tRestClient, you can use a tJava/ tMap or similar to generate this value, save it in a context/ globalMap and use that value in your query parameters.</description>
      <pubDate>Tue, 30 Jun 2020 14:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Calling-a-Rest-URL-that-contains-Hash-value/m-p/2237695#M26041</guid>
      <dc:creator>root</dc:creator>
      <dc:date>2020-06-30T14:36:55Z</dc:date>
    </item>
  </channel>
</rss>

