<?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: MAKE API CALL in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/MAKE-API-CALL/m-p/2339625#M107749</link>
    <description>&lt;P&gt;Hi rhall_2_0,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I didn't test your solution because i&amp;nbsp;produce&amp;nbsp;my json with tFileoutputJson component which create automatically a json file.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But to solve this issue, after creating a json with tFileoutputjson component, i read the the same file with a routine in a tjava component.&lt;/P&gt; 
&lt;P&gt;This routine read all file's data and put it in a string (globla variable) that i call in tRest component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank all for help,&lt;/P&gt;</description>
    <pubDate>Sun, 26 Nov 2017 14:04:13 GMT</pubDate>
    <dc:creator>idembel2</dc:creator>
    <dc:date>2017-11-26T14:04:13Z</dc:date>
    <item>
      <title>MAKE API CALL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MAKE-API-CALL/m-p/2339623#M107747</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt; 
&lt;P&gt;In my job i used tHttpRequest component to make request on API&lt;/P&gt; 
&lt;P&gt;For GET or POST method, i configure my component like bellow by reading parameters from a file.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="status.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lrzd.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131062i1340DEEB1C134119/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lrzd.png" alt="0683p000009Lrzd.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Now i need to make PUT method, and this method is not supported by tHttpRequest component.&lt;/P&gt; 
&lt;P&gt;Like solution, i try tRest component to solve issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My problem now is how to read my file and put it in a global variable then call it in the field "Corps HTTP" of component tRest to make my request&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for help&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 14:41:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MAKE-API-CALL/m-p/2339623#M107747</guid>
      <dc:creator>idembel2</dc:creator>
      <dc:date>2017-11-21T14:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: MAKE API CALL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MAKE-API-CALL/m-p/2339624#M107748</link>
      <description>&lt;P&gt;The tRest is actually simpler and doesn't require that you write to a file. Simply produce your JSON in the same way as before, but do not write it to a file. Connect your component that outputs your JSON to a String, to a tFlowToIterate component. This component will allow you to connect your tRest using an Iterate link. It will also add your value to the globalMap. If the "row" connecting to your tFlowToIterate is called "row1" and your JSON column is called "json", the globalMap will be referenced using this code....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;((String)globalMap.get("row1.json"))&lt;/PRE&gt;&lt;P&gt;Simply put that in your HTTP Body field WITHOUT surrounding quotes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may need to tweak some of your headers. Take a look here for that (&lt;A href="https://help.talend.com/reader/iYcvdknuprDzYycT3WRU8w/_N82Hv0ivAnxD69EWaC5rA" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/iYcvdknuprDzYycT3WRU8w/_N82Hv0ivAnxD69EWaC5rA&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 16:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MAKE-API-CALL/m-p/2339624#M107748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-21T16:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: MAKE API CALL</title>
      <link>https://community.qlik.com/t5/Talend-Studio/MAKE-API-CALL/m-p/2339625#M107749</link>
      <description>&lt;P&gt;Hi rhall_2_0,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I didn't test your solution because i&amp;nbsp;produce&amp;nbsp;my json with tFileoutputJson component which create automatically a json file.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But to solve this issue, after creating a json with tFileoutputjson component, i read the the same file with a routine in a tjava component.&lt;/P&gt; 
&lt;P&gt;This routine read all file's data and put it in a string (globla variable) that i call in tRest component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank all for help,&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2017 14:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/MAKE-API-CALL/m-p/2339625#M107749</guid>
      <dc:creator>idembel2</dc:creator>
      <dc:date>2017-11-26T14:04:13Z</dc:date>
    </item>
  </channel>
</rss>

