<?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: Get the data by making an API call in JSON format in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278855#M54217</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I want to use the same id to call another api to extract some data how to proceed in such a scenario. Like say&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;After textractJsonFields I want to have another api call with the id which is the current iteration value&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.xyz.com/details/1111/comments.json" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.xyz.com/details/1111/comments.json&lt;/A&gt; where 1111 is the id, which is the current iterated value using tflowToIterate component.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2020 13:05:41 GMT</pubDate>
    <dc:creator>sbhadra</dc:creator>
    <dc:date>2020-02-04T13:05:41Z</dc:date>
    <item>
      <title>Get the data by making an API call in JSON format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278847#M54209</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need get some list of data from an api which is given to me. The api url is something like mentioned below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://api.xyz.com/1/statuses/home_timeline.json?since_id=12345&amp;amp;max_id=54321&amp;amp;created=" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;http://api.xyz.com/1/statuses/home_timeline.json?since_id=12345&amp;amp;max_id=54321&amp;amp;created=&lt;/A&gt;2020-01-09T00:00:00Z&amp;amp;created=2020-01-10T00:00:00Z)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Over here we have two dates 9th Jan and 10th Jan. Hence, I need all the the data of 9th Jan for entire 24 hrs in json format. What should be the talend job design. I had checked couple of talend community posts which suggests I need to use tRestClient however, I am not sure how to proceed further. Please suggest on the same&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278847#M54209</guid>
      <dc:creator>sbhadra</dc:creator>
      <dc:date>2024-11-16T03:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get the data by making an API call in JSON format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278848#M54210</link>
      <description>You are on the right track. Can you share what you have coded so far and what is the error you are receiving? Thanks</description>
      <pubDate>Fri, 31 Jan 2020 13:27:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278848#M54210</guid>
      <dc:creator>root</dc:creator>
      <dc:date>2020-01-31T13:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get the data by making an API call in JSON format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278849#M54211</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your job design will look like :&lt;/P&gt;&lt;P&gt;trestClient --ResponseOK--&amp;gt; tExtractJSONField --main--&amp;gt; tLogRow&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 13:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278849#M54211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-31T13:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get the data by making an API call in JSON format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278850#M54212</link>
      <description>&lt;P&gt;Can you please provide an example. A job flow screenshot would be appreciating. Also the created date will be based on the current date&amp;nbsp;&lt;SPAN&gt;created&amp;gt;=2019-01-09T00:00:00Z and&amp;nbsp;created&amp;lt;2019-06-10T00:00:00Z where in date with &amp;lt; will be the current date and time, and &amp;gt;= will be the subtracted date based on data provided in context property file like 6 hrs , 12 hrs, 24 hrs etc.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 06:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278850#M54212</guid>
      <dc:creator>sbhadra</dc:creator>
      <dc:date>2020-02-03T06:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get the data by making an API call in JSON format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278851#M54213</link>
      <description>For testing, print the response to console to see if you are able to call the API has the response.
&lt;BR /&gt;tRest--main--tLogRow
&lt;BR /&gt;
&lt;BR /&gt;Next, you need to use a tExtractJsonField to extract data from the response.
&lt;BR /&gt;tRest--main--tExtractJsonField--tLogRow
&lt;BR /&gt;
&lt;BR /&gt;Let me know which step are you on now or any error do you have?
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 03 Feb 2020 06:28:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278851#M54213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-03T06:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get the data by making an API call in JSON format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278852#M54214</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per the instruction I am able to get the desired result however, I am facing another issue in the same. After I extract the json with the help of textractjsonfields component I am getting some ids (let say 1111, 2222 etc). I want to iterate through this ids and create a separate url which will be used to hit another api using tRestClient. The current flow is mentioned below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tRestCliet-&amp;gt;tExtractJsonFields-&amp;gt; Getting the Ids over here and need those ids to build a url like mentioned below&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.xyz.com/1111/details.json" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.xyz.com/1111/details.json&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.xyz.com/2222/details.json" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.xyz.com/2222/details.json&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only the id value will change, hence I need to iterate through this ids to create individual urls which is&amp;nbsp; to be called individually to capture the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest any resolution for the same.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 13:29:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278852#M54214</guid>
      <dc:creator>sbhadra</dc:creator>
      <dc:date>2020-02-03T13:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get the data by making an API call in JSON format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278853#M54215</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you only need the id sent from your first service, an example could be :&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="Talend schema" style="width: 997px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24754iCC7B8370A49BC810/image-size/large?v=1.0&amp;amp;px=999" title="doubleAPIcall.PNG" alt="Talend schema" /&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Talend schema&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsetglobalvar parameters" style="width: 999px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24755iE19493E54CC52F64/image-size/large?v=1.0&amp;amp;px=999" title="doubleAPICalltsetglobalVar.PNG" alt="tsetglobalvar parameters" /&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tsetglobalvar parameters&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="second api call" style="width: 757px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24756iAFFB9F4C79A61768/image-size/large?v=1.0&amp;amp;px=999" title="doubleAPICalltrestclient2.PNG" alt="second api call" /&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;second api call&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;filter your ids with tFilterColumns and delete the possibly duplicates with tUniqRow, then tFlowtoIterate permits to make a treatment id by id.&lt;/P&gt; 
&lt;P&gt;Write your id in a globalVar with tsetglobalVar and use it 'OnComponentOK' in your tRESTClient_2 as explained in the pictures.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Pierre&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 13:55:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278853#M54215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-03T13:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get the data by making an API call in JSON format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278854#M54216</link>
      <description>&lt;P&gt;Thanks it worked for me.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 06:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278854#M54216</guid>
      <dc:creator>sbhadra</dc:creator>
      <dc:date>2020-02-04T06:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get the data by making an API call in JSON format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278855#M54217</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I want to use the same id to call another api to extract some data how to proceed in such a scenario. Like say&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;After textractJsonFields I want to have another api call with the id which is the current iteration value&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.xyz.com/details/1111/comments.json" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.xyz.com/details/1111/comments.json&lt;/A&gt; where 1111 is the id, which is the current iterated value using tflowToIterate component.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 13:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-the-data-by-making-an-API-call-in-JSON-format/m-p/2278855#M54217</guid>
      <dc:creator>sbhadra</dc:creator>
      <dc:date>2020-02-04T13:05:41Z</dc:date>
    </item>
  </channel>
</rss>

