<?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: Connecting REST API and extracting JSON Fields to a table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Connecting-REST-API-and-extracting-JSON-Fields-to-a-table/m-p/2214601#M11365</link>
    <description>Thank you so much, your suggestion has been of a great help. I have resolved my issue</description>
    <pubDate>Tue, 22 Oct 2019 21:09:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-22T21:09:58Z</dc:date>
    <item>
      <title>Connecting REST API and extracting JSON Fields to a table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connecting-REST-API-and-extracting-JSON-Fields-to-a-table/m-p/2214598#M11362</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I am pretty new to talend and has been trying to connect an API key as below to retrieve lead from a website.&lt;/P&gt;
&lt;P&gt;However, i have been finding difficult to idetify the right information to input in my TrestClient (if tha'x the right component to use).&lt;/P&gt;
&lt;P&gt;Show&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="gp"&gt;&amp;gt; &lt;/SPAN&gt;Example Request:

curl https://api.wishpond.com/api/v1/leads/:lead_id &lt;SPAN class="se"&gt;\&lt;/SPAN&gt;
-H &lt;SPAN class="s2"&gt;"X-Api-Token:YOUR_API_KEY"&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;PRE&gt;&amp;gt; Sample Response:&lt;/PRE&gt;
&lt;PRE&gt;&lt;SPAN class="p"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="nt"&gt;"lead"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="p"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="nt"&gt;"id"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"xxxxxxx"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="nt"&gt;"email"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"someone@test.com"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="nt"&gt;"status"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"active"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="nt"&gt;"created_at"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"2015-07-xxxx"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="nt"&gt;"updated_at"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"2015-07-xxxxx"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="nt"&gt;"lead_score"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;0&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="nt"&gt;"subscribed"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="kc"&gt;true&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="nt"&gt;"cid"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"xxxxx"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="nt"&gt;"mid"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"263531"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="nt"&gt;"dynamic_attributes"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="p"&gt;{&lt;/SPAN&gt;
            &lt;SPAN class="nt"&gt;"first_name"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"xxxx"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;
            &lt;SPAN class="nt"&gt;"last_name"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;"xxxxx"&lt;/SPAN&gt;
        &lt;SPAN class="p"&gt;}&lt;/SPAN&gt;
    &lt;SPAN class="p"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="p"&gt;}&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;DIV&gt;
 I just want external ideas on how to go about resolving what seems difficult for me now.
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 16:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connecting-REST-API-and-extracting-JSON-Fields-to-a-table/m-p/2214598#M11362</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-22T16:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting REST API and extracting JSON Fields to a table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connecting-REST-API-and-extracting-JSON-Fields-to-a-table/m-p/2214599#M11363</link>
      <description>&lt;P&gt;So, if I understand you search to tgranslate from curl to tRestClient.&lt;/P&gt;
&lt;P&gt;Based on your example, here is how the component should be configured:&lt;/P&gt;
&lt;P&gt;- URL: &lt;A href="https://api.wishpond/api/v1/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.wishpond/api/v1/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;- HTTP Method: GET&lt;/P&gt;
&lt;P&gt;- Content Type: JSON&lt;/P&gt;
&lt;P&gt;- Accept Type: any&lt;/P&gt;
&lt;P&gt;- Query parameters:&amp;nbsp;leads (as name) - lead_id (as value - probably issued from a global variable)&lt;/P&gt;
&lt;P&gt;- HTTP Headers (Advanced settings): X-Api-Token (as name) - yourApiKey&amp;nbsp;(as value - probably issued from a global variable)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Probably not so far from what you need but you have to try by yourself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 16:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connecting-REST-API-and-extracting-JSON-Fields-to-a-table/m-p/2214599#M11363</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-22T16:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting REST API and extracting JSON Fields to a table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connecting-REST-API-and-extracting-JSON-Fields-to-a-table/m-p/2214600#M11364</link>
      <description>&lt;P&gt;Thank you TRF,&lt;/P&gt;&lt;P&gt;Can you please precise if i should leave the path box empty with quote?&lt;/P&gt;&lt;P&gt;Thank you so much for you help.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 20:23:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connecting-REST-API-and-extracting-JSON-Fields-to-a-table/m-p/2214600#M11364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-22T20:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting REST API and extracting JSON Fields to a table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connecting-REST-API-and-extracting-JSON-Fields-to-a-table/m-p/2214601#M11365</link>
      <description>Thank you so much, your suggestion has been of a great help. I have resolved my issue</description>
      <pubDate>Tue, 22 Oct 2019 21:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connecting-REST-API-and-extracting-JSON-Fields-to-a-table/m-p/2214601#M11365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-22T21:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting REST API and extracting JSON Fields to a table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connecting-REST-API-and-extracting-JSON-Fields-to-a-table/m-p/2214602#M11366</link>
      <description>Great! But you should have selected the answer which help you instead of yours...</description>
      <pubDate>Tue, 22 Oct 2019 23:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connecting-REST-API-and-extracting-JSON-Fields-to-a-table/m-p/2214602#M11366</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-22T23:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting REST API and extracting JSON Fields to a table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connecting-REST-API-and-extracting-JSON-Fields-to-a-table/m-p/2214603#M11367</link>
      <description>&lt;P&gt;Tha'x right !&lt;/P&gt;
&lt;P&gt;I made a mistake as i am new here.&lt;/P&gt;
&lt;P&gt;However it jut stop working with UnknownHostException invoking &lt;A href="https://api.wishpond/api/v1/?Leads=lead_id" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.wishpond/api/v1/?Leads=lead_id&lt;/A&gt;: api.wishpond&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 23:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connecting-REST-API-and-extracting-JSON-Fields-to-a-table/m-p/2214603#M11367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-22T23:52:09Z</dc:date>
    </item>
  </channel>
</rss>

