<?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 [resolved] HTTP / Rest Request &amp; POST parameters with Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-HTTP-Rest-Request-POST-parameters-with-Talend/m-p/2313963#M84770</link>
    <description>Dear Talend Community, 
&lt;BR /&gt;i'm trying to access a web API with tHTTPRequest which needs to parameters: 
&lt;BR /&gt; 
&lt;BR /&gt;Parameter 1: requestJobDescription --&amp;gt; JSON formatted description 
&lt;BR /&gt;Parameter 2: template --&amp;gt; a freemarker template 
&lt;BR /&gt;The API documentation with an example can be found here: 
&lt;A href="https://integrations.expensify.com/Integration-Server/index.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://integrations.expensify.com/Integration-Server/index.html&lt;/A&gt; 
&lt;BR /&gt;However, i tried several variations of the example with Talend and it seems that i can get the first parameter running, but for the freemarker template i receive the message "No template submitted" or the file contains only "error". 
&lt;BR /&gt;I'm using a tHTTPRequest to send a request to the Endpoint with the Post Parameters from an file: 
&lt;BR /&gt; 
&lt;U&gt;Content of Parameter File:&lt;/U&gt; 
&lt;BR /&gt; 
&lt;B&gt;requestJobDescription&lt;/B&gt;={ "test":"true", "type":"file", "credentials":{ "partnerUserID":"xyz", "partnerUserSecret":"abc" }, "onReceive":{ "immediateResponse": }, "inputSettings":{ "type":"combinedReportData", "reportState":"APPROVED", "filters":{ "startDate":"2014-07-01", "markedAsExported":"Partner name" } }, "outputSettings":{ "fileExtension":"csv" }, "onFinish": } 
&lt;B&gt;&amp;amp;template&lt;/B&gt;="&amp;lt;#-- Header --&amp;gt; Report ID,Merchant,Amount,Category,Expense Date &amp;lt;#list reports as report&amp;gt; &amp;lt;#list report.transactionList as expense&amp;gt; ${report.reportID},&amp;lt;#t&amp;gt; ${expense.merchant},&amp;lt;#t&amp;gt; ${expense.amount},&amp;lt;#t&amp;gt; ${expense.category},&amp;lt;#t&amp;gt; ${expense.created}&amp;lt;#lt&amp;gt;" 
&lt;BR /&gt;Perhaps someone of you might have a good idea/hint on how to solve the problem. 
&lt;BR /&gt;Thanks in advance! 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MERB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142926iB55074261AD8C09F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MERB.png" alt="0683p000009MERB.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Mon, 18 Aug 2014 12:47:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-08-18T12:47:31Z</dc:date>
    <item>
      <title>[resolved] HTTP / Rest Request &amp; POST parameters with Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-HTTP-Rest-Request-POST-parameters-with-Talend/m-p/2313963#M84770</link>
      <description>Dear Talend Community, 
&lt;BR /&gt;i'm trying to access a web API with tHTTPRequest which needs to parameters: 
&lt;BR /&gt; 
&lt;BR /&gt;Parameter 1: requestJobDescription --&amp;gt; JSON formatted description 
&lt;BR /&gt;Parameter 2: template --&amp;gt; a freemarker template 
&lt;BR /&gt;The API documentation with an example can be found here: 
&lt;A href="https://integrations.expensify.com/Integration-Server/index.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://integrations.expensify.com/Integration-Server/index.html&lt;/A&gt; 
&lt;BR /&gt;However, i tried several variations of the example with Talend and it seems that i can get the first parameter running, but for the freemarker template i receive the message "No template submitted" or the file contains only "error". 
&lt;BR /&gt;I'm using a tHTTPRequest to send a request to the Endpoint with the Post Parameters from an file: 
&lt;BR /&gt; 
&lt;U&gt;Content of Parameter File:&lt;/U&gt; 
&lt;BR /&gt; 
&lt;B&gt;requestJobDescription&lt;/B&gt;={ "test":"true", "type":"file", "credentials":{ "partnerUserID":"xyz", "partnerUserSecret":"abc" }, "onReceive":{ "immediateResponse": }, "inputSettings":{ "type":"combinedReportData", "reportState":"APPROVED", "filters":{ "startDate":"2014-07-01", "markedAsExported":"Partner name" } }, "outputSettings":{ "fileExtension":"csv" }, "onFinish": } 
&lt;B&gt;&amp;amp;template&lt;/B&gt;="&amp;lt;#-- Header --&amp;gt; Report ID,Merchant,Amount,Category,Expense Date &amp;lt;#list reports as report&amp;gt; &amp;lt;#list report.transactionList as expense&amp;gt; ${report.reportID},&amp;lt;#t&amp;gt; ${expense.merchant},&amp;lt;#t&amp;gt; ${expense.amount},&amp;lt;#t&amp;gt; ${expense.category},&amp;lt;#t&amp;gt; ${expense.created}&amp;lt;#lt&amp;gt;" 
&lt;BR /&gt;Perhaps someone of you might have a good idea/hint on how to solve the problem. 
&lt;BR /&gt;Thanks in advance! 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MERB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142926iB55074261AD8C09F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MERB.png" alt="0683p000009MERB.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 18 Aug 2014 12:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-HTTP-Rest-Request-POST-parameters-with-Talend/m-p/2313963#M84770</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-18T12:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] HTTP / Rest Request &amp; POST parameters with Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-HTTP-Rest-Request-POST-parameters-with-Talend/m-p/2313964#M84771</link>
      <description>Hi 
&lt;BR /&gt;Have a try to remove the double quotes for the value of template parameter or remove the parameter names from the file to see if it works. 
&lt;BR /&gt;Bet regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 27 Aug 2014 14:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-HTTP-Rest-Request-POST-parameters-with-Talend/m-p/2313964#M84771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-27T14:07:36Z</dc:date>
    </item>
  </channel>
</rss>

