<?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: Trying to automate Telend API Tester in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282551#M56719</link>
    <description>&lt;P&gt;Sorry, I thought you were using a tWriteJSONFields component not the tExtractJSONFields component. You can either build your JSON using the tExtractJSONFields component, you can write it in Java using the tJavaFlex component or you can simply read it from a file using a tFileInputJSON. The tFileInputJSON method is the easiest. Just create a file with your JSON in it. Use the tFileInputJSON with "$" as the loop and a single column called "string" which has this JSONPath "$".&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 10:33:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-05T10:33:23Z</dc:date>
    <item>
      <title>Trying to automate Telend API Tester</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282542#M56710</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm having issues using TOS to get the same JSON response to a Post query on API Tester.&amp;nbsp; Below is a working example of a query that works.&amp;nbsp; However, I cannot seem to find a way to make it work using tRestClient in TOS, i.e., I can't seem to find where all the needed variables are hidden.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone here please point me in a relevant direction?&amp;nbsp; Thanks.&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="image.png" style="width: 999px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24769i60DBE4384001AC46/image-size/large?v=1.0&amp;amp;px=999" title="image.png" alt="image.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282542#M56710</guid>
      <dc:creator>LISpeedyG</dc:creator>
      <dc:date>2024-11-16T03:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to automate Telend API Tester</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282543#M56711</link>
      <description>&lt;P&gt;Below I am sharing images of where you can set each of the properties you need to set using the tRestClient.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-02-04 at 10.38.47.png" style="width: 999px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24775i27990F1BA2980B4A/image-size/large?v=1.0&amp;amp;px=999" title="Screenshot 2020-02-04 at 10.38.47.png" alt="Screenshot 2020-02-04 at 10.38.47.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The schema button highlighted above is how you pass your JSON body to the component. It needs to be built prior to reaching this component and then sent to this component's "string" column.&amp;nbsp;&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="Screenshot 2020-02-04 at 10.40.26.png" style="width: 999px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24776i86E0E0E55CA9F149/image-size/large?v=1.0&amp;amp;px=999" title="Screenshot 2020-02-04 at 10.40.26.png" alt="Screenshot 2020-02-04 at 10.40.26.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Headers can be set on the Advanced tab.&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="Screenshot 2020-02-04 at 10.41.20.png" style="width: 999px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24777iDA4913E4C9FD8DCA/image-size/large?v=1.0&amp;amp;px=999" title="Screenshot 2020-02-04 at 10.41.20.png" alt="Screenshot 2020-02-04 at 10.41.20.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;This simply shows the "string" Body column.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 10:45:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282543#M56711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-04T10:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to automate Telend API Tester</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282544#M56712</link>
      <description>&lt;P&gt;Thank You so much for the response.&lt;/P&gt; 
&lt;P&gt;I've been working on this while waiting and have found most of the areas.&amp;nbsp; However, I'm not getting any return from the query.&amp;nbsp; I think it's a problem in the body.&lt;/P&gt; 
&lt;P&gt;1.&amp;nbsp; I've created a JSON file in the Metadata repository&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 702px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24779i09FE10D9FF677483/image-size/large?v=1.0&amp;amp;px=999" title="image.png" alt="image.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2.&amp;nbsp; I then set this as an input to the tRESTClient&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24786i0D435E1D0D439D9A/image-size/large?v=1.0&amp;amp;px=999" title="image.png" alt="image.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24782i4FCEF7D83F50E5AD/image-size/large?v=1.0&amp;amp;px=999" title="image.png" alt="image.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;3.&amp;nbsp; I entered the Header Information on the Advanced Tab&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24787i8F9A4532CA810FA5/image-size/large?v=1.0&amp;amp;px=999" title="image.png" alt="image.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;4.&amp;nbsp; However, when I run the query I get no response&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 825px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24788iFB679C112B5E5528/image-size/large?v=1.0&amp;amp;px=999" title="image.png" alt="image.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Do you have any clues as to why I'm not seeing any response to the query?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 11:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282544#M56712</guid>
      <dc:creator>LISpeedyG</dc:creator>
      <dc:date>2020-02-04T11:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to automate Telend API Tester</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282545#M56713</link>
      <description>&lt;P&gt;You've broken the tRestClient's input schema. This is easily done unfortunately. It should just have two columns; string and body. You need a new tRestClient component and be careful not to force a change of its input schema. It can ONLY be string and body. Your JSON must be supplied to the string column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 12:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282545#M56713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-04T12:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to automate Telend API Tester</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282546#M56714</link>
      <description>&lt;P&gt;Originally, I was unable to see any columns to the input schema.&amp;nbsp; I've just added a new tRESTClient and now see the correct schema.&lt;/P&gt;&lt;P&gt;I can't seem to understand how I supply the JSON file to the string column. Can you please help?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 12:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282546#M56714</guid>
      <dc:creator>LISpeedyG</dc:creator>
      <dc:date>2020-02-04T12:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to automate Telend API Tester</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282547#M56715</link>
      <description>&lt;P&gt;Add a tMap between your tRestClient component and your JSON component. Then connect your JSON output column to the string column being fed to the tRestClient.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 14:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282547#M56715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-04T14:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to automate Telend API Tester</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282548#M56716</link>
      <description>&lt;P&gt;I have 3 columns (see above picture that shows JSON file columns).&amp;nbsp; Do I connect all 3 columns like below?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24797i0C320AAA58DBED41/image-size/large?v=1.0&amp;amp;px=999" title="image.png" alt="image.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks again for all your help!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 16:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282548#M56716</guid>
      <dc:creator>LISpeedyG</dc:creator>
      <dc:date>2020-02-04T16:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to automate Telend API Tester</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282549#M56717</link>
      <description>&lt;P&gt;You need to recreate the one JSON document that you used in your API Tester example at the beginning. Building 3 separate JSON docs will not work. They are 3 parameters within a JSON doc....unless I have misunderstood?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 19:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282549#M56717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-04T19:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to automate Telend API Tester</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282550#M56718</link>
      <description>&lt;P&gt;There is only 1 file:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 581px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24799i27A376028DB9414E/image-size/large?v=1.0&amp;amp;px=999" title="image.png" alt="image.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I place the JSON file (created within the Repository&amp;gt;Meta Data&amp;gt;File JSON) on the design surface it thinks I want to apply the tExtractJSONFields (See below).&amp;nbsp; Is there another way to add it to the design surface?&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;IMG src="https://yutwg22796.i.lithium.com/t5/image/serverpage/image-id/24800i9BCC53CA1A0A06AE/image-size/large?v=1.0&amp;amp;px=999" title="image.png" alt="image.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 20:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282550#M56718</guid>
      <dc:creator>LISpeedyG</dc:creator>
      <dc:date>2020-02-04T20:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to automate Telend API Tester</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282551#M56719</link>
      <description>&lt;P&gt;Sorry, I thought you were using a tWriteJSONFields component not the tExtractJSONFields component. You can either build your JSON using the tExtractJSONFields component, you can write it in Java using the tJavaFlex component or you can simply read it from a file using a tFileInputJSON. The tFileInputJSON method is the easiest. Just create a file with your JSON in it. Use the tFileInputJSON with "$" as the loop and a single column called "string" which has this JSONPath "$".&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 10:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282551#M56719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-05T10:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to automate Telend API Tester</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282552#M56720</link>
      <description>&lt;P&gt;Thank You so much.&amp;nbsp; It now works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have another question:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; What is the best way to recursively increment the dates in the JSON file, i.e., use variables vs dates and increment the variables?&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; Which component is best to use to parse the returning JSON and append the resulting data into a SQL table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again for the EXCELLENT help.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 17:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282552#M56720</guid>
      <dc:creator>LISpeedyG</dc:creator>
      <dc:date>2020-02-06T17:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to automate Telend API Tester</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282553#M56721</link>
      <description>&lt;P&gt;With regard to the date question, this code will give you an idea. Paste it into a tJava and run it to see how it works.....&lt;/P&gt;
&lt;PRE&gt;String strDate = "2014-08-07T04:18:21.000-07:00";

Date date = routines.TalendDate.parseDateInUTC("yyyy-MM-dd'T'HH:mm:ss.SSSX", strDate);


for(int i=0; i&amp;lt;100; i++){
	date = routines.TalendDate.addDate(date, 1, "dd");
	System.out.println(routines.TalendDate.formatDateInUTC("yyyy-MM-dd HH:mm:ssXXX", date));
}&lt;/PRE&gt;
&lt;P&gt;The best component for extracting data from a JSON String is the tExtractJSONFields.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 18:18:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Trying-to-automate-Telend-API-Tester/m-p/2282553#M56721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-06T18:18:35Z</dc:date>
    </item>
  </channel>
</rss>

