<?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 i want to display contents from Nuxeo  (xml , rtf ) using PHP in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/i-want-to-display-contents-from-nuxeo-xml-rtf-using-php/m-p/318489#M5490</link>
    <description>&lt;P&gt;Hello ,
We want to display contents from Nuxeo using the Uid of document, We can get the uid  but we have a problem to display his content
We used this function but no results any help please?
Greetings&lt;/P&gt;
&lt;P&gt;$client = new NuxeoPhpAutomationClient('http://localhost:8080/nuxeo/site/automation');&lt;/P&gt;
&lt;P&gt;$session = $client-&amp;gt;GetSession('Administrator','Administrator');&lt;/P&gt;
&lt;P&gt;$answer = $session-&amp;gt;NewRequest("Blob.Get")-&amp;gt;Set('input', 'doc: ' . $path)-&amp;gt;SendRequest();&lt;/P&gt;
&lt;P&gt;if (!isset($answer) OR $answer == false)
echo '$answer is not set';
else{
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.$filename.'.pdf');
readfile('tempstream');
}&lt;/P&gt;</description>
    <pubDate>Wed, 25 Mar 2015 14:12:11 GMT</pubDate>
    <dc:creator>najd_</dc:creator>
    <dc:date>2015-03-25T14:12:11Z</dc:date>
    <item>
      <title>i want to display contents from Nuxeo  (xml , rtf ) using PHP</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/i-want-to-display-contents-from-nuxeo-xml-rtf-using-php/m-p/318489#M5490</link>
      <description>&lt;P&gt;Hello ,
We want to display contents from Nuxeo using the Uid of document, We can get the uid  but we have a problem to display his content
We used this function but no results any help please?
Greetings&lt;/P&gt;
&lt;P&gt;$client = new NuxeoPhpAutomationClient('http://localhost:8080/nuxeo/site/automation');&lt;/P&gt;
&lt;P&gt;$session = $client-&amp;gt;GetSession('Administrator','Administrator');&lt;/P&gt;
&lt;P&gt;$answer = $session-&amp;gt;NewRequest("Blob.Get")-&amp;gt;Set('input', 'doc: ' . $path)-&amp;gt;SendRequest();&lt;/P&gt;
&lt;P&gt;if (!isset($answer) OR $answer == false)
echo '$answer is not set';
else{
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.$filename.'.pdf');
readfile('tempstream');
}&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 14:12:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/i-want-to-display-contents-from-nuxeo-xml-rtf-using-php/m-p/318489#M5490</guid>
      <dc:creator>najd_</dc:creator>
      <dc:date>2015-03-25T14:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: i want to display contents from Nuxeo  (xml , rtf ) using PHP</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/i-want-to-display-contents-from-nuxeo-xml-rtf-using-php/m-p/318490#M5491</link>
      <description>&lt;P&gt;I Solve the problem there is a blank space in the set method exactly in 'doc ' i told them to correct it in Nuxeo documentation&lt;/P&gt;
&lt;P&gt;$answer = $session-&amp;gt;NewRequest("Blob.Get")-&amp;gt;Set('input', 'doc: ' . $path)-&amp;gt;SendRequest();&lt;/P&gt;
&lt;P&gt;I told the community to correct it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 17:51:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/i-want-to-display-contents-from-nuxeo-xml-rtf-using-php/m-p/318490#M5491</guid>
      <dc:creator>najd_</dc:creator>
      <dc:date>2015-03-25T17:51:41Z</dc:date>
    </item>
  </channel>
</rss>

