<?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 Using tRestclient component to do HTTP Post request in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-tRestclient-component-to-do-HTTP-Post-request/m-p/2257868#M39840</link>
    <description>Hi, 
&lt;BR /&gt;I have a PHP script which does HTTP post request to get data from external API service . I am trying to migrate that script to Talend using tRestClient to do a http post request with content type as JSON. Script has following callobject 
&lt;BR /&gt;$callobj = array( 
&lt;BR /&gt; 'method' =&amp;gt; $method_name, 
&lt;BR /&gt; 'params' =&amp;gt; array( 'partner_id' =&amp;gt; $partner_id, 
&lt;BR /&gt; 'tms' =&amp;gt; $tms, 
&lt;BR /&gt; 'sig' =&amp;gt; $sig, 
&lt;BR /&gt; 'date' =&amp;gt; 'yyyy-mm-dd', // Only one date allowed per api call 
&lt;BR /&gt; 'attribution' =&amp;gt; 'conversion', // 'conversion' or 'click', determines whether to filter date by view/click or by conversion 
&lt;BR /&gt; 'timezone' =&amp;gt; 'UTC', 
&lt;BR /&gt; 'fields' =&amp;gt; array( 'site_id', 'type', 'name', 'conversion_datetime', 'action_type','client_user_id'), 
&lt;BR /&gt; ) 
&lt;BR /&gt;); 
&lt;BR /&gt;In tRestClient component I have set up following based on above code snippet 
&lt;BR /&gt;I have given the url, HTTP Method - POST, Content Type -&amp;gt; JSON, Accept_type -&amp;gt; JSON 
&lt;BR /&gt;In query parameters 
&lt;BR /&gt;"method" - "method_name" 
&lt;BR /&gt;"params" -"partner_id=X$partner_id,tms=$tms,sig=$sig,date=yyyy-mm-dd,attribution=click,timezone=PST,fields=site_id,metrics=fbspend" 
&lt;BR /&gt;But it is not working. Is this kind of POST request supported in Talend? Is there way to pass this parameters? Can you please help me? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Gowri</description>
    <pubDate>Wed, 12 Mar 2014 06:09:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-03-12T06:09:09Z</dc:date>
    <item>
      <title>Using tRestclient component to do HTTP Post request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tRestclient-component-to-do-HTTP-Post-request/m-p/2257868#M39840</link>
      <description>Hi, 
&lt;BR /&gt;I have a PHP script which does HTTP post request to get data from external API service . I am trying to migrate that script to Talend using tRestClient to do a http post request with content type as JSON. Script has following callobject 
&lt;BR /&gt;$callobj = array( 
&lt;BR /&gt; 'method' =&amp;gt; $method_name, 
&lt;BR /&gt; 'params' =&amp;gt; array( 'partner_id' =&amp;gt; $partner_id, 
&lt;BR /&gt; 'tms' =&amp;gt; $tms, 
&lt;BR /&gt; 'sig' =&amp;gt; $sig, 
&lt;BR /&gt; 'date' =&amp;gt; 'yyyy-mm-dd', // Only one date allowed per api call 
&lt;BR /&gt; 'attribution' =&amp;gt; 'conversion', // 'conversion' or 'click', determines whether to filter date by view/click or by conversion 
&lt;BR /&gt; 'timezone' =&amp;gt; 'UTC', 
&lt;BR /&gt; 'fields' =&amp;gt; array( 'site_id', 'type', 'name', 'conversion_datetime', 'action_type','client_user_id'), 
&lt;BR /&gt; ) 
&lt;BR /&gt;); 
&lt;BR /&gt;In tRestClient component I have set up following based on above code snippet 
&lt;BR /&gt;I have given the url, HTTP Method - POST, Content Type -&amp;gt; JSON, Accept_type -&amp;gt; JSON 
&lt;BR /&gt;In query parameters 
&lt;BR /&gt;"method" - "method_name" 
&lt;BR /&gt;"params" -"partner_id=X$partner_id,tms=$tms,sig=$sig,date=yyyy-mm-dd,attribution=click,timezone=PST,fields=site_id,metrics=fbspend" 
&lt;BR /&gt;But it is not working. Is this kind of POST request supported in Talend? Is there way to pass this parameters? Can you please help me? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Gowri</description>
      <pubDate>Wed, 12 Mar 2014 06:09:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tRestclient-component-to-do-HTTP-Post-request/m-p/2257868#M39840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-12T06:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using tRestclient component to do HTTP Post request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tRestclient-component-to-do-HTTP-Post-request/m-p/2257869#M39841</link>
      <description>Hi Gauri,
&lt;BR /&gt;Try using tFileFetch component.... I used this to fetch data from web services...
&lt;BR /&gt;Use Post method and provide all the parameter values
&lt;BR /&gt;provide your api URL at URI, provide destination directory for received response... also provide file name...
&lt;BR /&gt;This may help
&lt;BR /&gt;Thanks
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Wed, 12 Mar 2014 09:52:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tRestclient-component-to-do-HTTP-Post-request/m-p/2257869#M39841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-12T09:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using tRestclient component to do HTTP Post request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-tRestclient-component-to-do-HTTP-Post-request/m-p/2257870#M39842</link>
      <description>Hi.&lt;BR /&gt;Thanks Vaibhav. I have to sent a request to a service which will give a JSON response. If it is a file, TfileFetch component will be useful. In my case, it will be response for  a request.</description>
      <pubDate>Wed, 12 Mar 2014 20:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-tRestclient-component-to-do-HTTP-Post-request/m-p/2257870#M39842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-12T20:58:14Z</dc:date>
    </item>
  </channel>
</rss>

