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

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

}

0 votes

1 answers

1034 views

ANSWER



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

0 votes