<?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: Why is R HTTR content statement not producing the expected request body? in cybersource APIs</title>
    <link>https://community.developer.cybersource.com/t5/cybersource-APIs/Why-is-R-HTTR-content-statement-not-producing-the-expected/m-p/84828#M564</link>
    <description>&lt;P data-unlink="true"&gt;Hey,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Honestly, I'm not exactly sure what's going on here, but I do think I was able to get something to work.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 17:14:26 GMT</pubDate>
    <dc:creator>sulinelanie</dc:creator>
    <dc:date>2022-11-09T17:14:26Z</dc:date>
    <item>
      <title>Why is R HTTR content statement not producing the expected request body?</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/Why-is-R-HTTR-content-statement-not-producing-the-expected/m-p/84244#M411</link>
      <description>&lt;P&gt;I am using R to call on Cybersource API. When I use the GET request I obtain a successful response of 200. When I read the body of the the response rather than get the csv data back I get a path to a csv file path. I wonder what I am doing wrong.&lt;/P&gt;&lt;P&gt;content(request)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;gives&lt;/P&gt;&lt;PRE&gt; &lt;SPAN class=""&gt;"/space/download_reports/output/dailyreports/reports/2018/10/27/testrest/TRRReport-7931d82d-cf4a-71fa-e053-a2588e0ab27a.csv"&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;The result of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;content(request)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;should be the data not&amp;nbsp;omegle.2yu.co a file path.&lt;/P&gt;&lt;P&gt;Here is a the code&lt;/P&gt;&lt;PRE&gt;library&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;'httr'&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;
merchant&lt;SPAN class=""&gt;&amp;lt;-&lt;/SPAN&gt;&lt;SPAN class=""&gt;'testrest'&lt;/SPAN&gt;
vcdate&lt;SPAN class=""&gt;&amp;lt;-&lt;/SPAN&gt;&lt;SPAN class=""&gt;'Wed, 29 May 2019 10:09:48 GMT'&lt;/SPAN&gt;
ho&lt;SPAN class=""&gt;&amp;lt;-&lt;/SPAN&gt;&lt;SPAN class=""&gt;'apitest.cybersource.com'&lt;/SPAN&gt;
URL&lt;SPAN class=""&gt;&amp;lt;-&lt;/SPAN&gt;&lt;SPAN class=""&gt;'https://apitest.cybersource.com/reporting/v3/report-downloads?organizationId=testrest&amp;amp;reportDate=2018-10-27&amp;amp;reportName=TRRReport'&lt;/SPAN&gt;
&lt;SPAN class=""&gt;sign&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;lt;-&lt;/SPAN&gt;&lt;SPAN class=""&gt;'keyid="08c94330-f618-42a3-b09d-e1e43be5efda", algorithm="HmacSHA256", headers="host (request-target) v-c-merchant-id", signature="7cr6mZMa1oENhJ5NclGsprmQxwGlo1j3VjqAR6xngxk="'&lt;/SPAN&gt;
req&lt;SPAN class=""&gt;&amp;lt;-&lt;/SPAN&gt;GET&lt;SPAN class=""&gt;(&lt;/SPAN&gt;URL&lt;SPAN class=""&gt;,&lt;/SPAN&gt; add_headers&lt;SPAN class=""&gt;(&lt;/SPAN&gt;.headers&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;c&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;'v-c-merchant-id'&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;merchant&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;'v-c-date'&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;vcdate&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;'Host'&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;ho&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;'Signature'&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;sign&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;
content&lt;SPAN class=""&gt;(&lt;/SPAN&gt;req&lt;SPAN class=""&gt;)&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;Here is Cybersource test api where you can verify the data produced.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cybersource.com/api/reference/api-reference.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cybersource.com/api/reference/api-reference.html&amp;nbsp;&lt;/A&gt;&lt;A href="https://omegle.love" target="_blank" rel="noopener"&gt;/ome&lt;/A&gt;&lt;A href="https://omglz.com" target="_blank" rel="noopener"&gt;glz&lt;/A&gt; &lt;A href="https://www.echat.date/omegle" target="_blank" rel="noopener"&gt;/echat&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am trying to download a report under the reporting tab&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 07:31:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/Why-is-R-HTTR-content-statement-not-producing-the-expected/m-p/84244#M411</guid>
      <dc:creator>WateUhlerredal</dc:creator>
      <dc:date>2022-09-22T07:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why is R HTTR content statement not producing the expected request body?</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/Why-is-R-HTTR-content-statement-not-producing-the-expected/m-p/84828#M564</link>
      <description>&lt;P data-unlink="true"&gt;Hey,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Honestly, I'm not exactly sure what's going on here, but I do think I was able to get something to work.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 17:14:26 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/Why-is-R-HTTR-content-statement-not-producing-the-expected/m-p/84828#M564</guid>
      <dc:creator>sulinelanie</dc:creator>
      <dc:date>2022-11-09T17:14:26Z</dc:date>
    </item>
  </channel>
</rss>

