cancel
Showing results for 
Search instead for 
Did you mean: 

i want to display contents from Nuxeo (xml , rtf ) using PHP

najd_
Champ on-the-rise
Champ on-the-rise

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

$client = new NuxeoPhpAutomationClient('http://localhost:8080/nuxeo/site/automation');

$session = $client->GetSession('Administrator','Administrator');

$answer = $session->NewRequest("Blob.Get")->Set('input', 'doc: ' . $path)->SendRequest();

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'); }

1 ACCEPTED ANSWER

najd_
Champ on-the-rise
Champ on-the-rise

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

$answer = $session->NewRequest("Blob.Get")->Set('input', 'doc: ' . $path)->SendRequest();

I told the community to correct it 😉

View answer in original post

1 REPLY 1

najd_
Champ on-the-rise
Champ on-the-rise

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

$answer = $session->NewRequest("Blob.Get")->Set('input', 'doc: ' . $path)->SendRequest();

I told the community to correct it 😉

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.