Problem with API PHP script

I try to download with script B5bis.php. The answers is always : $answer is not set

I have no problem with others scripst. For example, I can list document with B1 script.

I want to download a pdf file. Is this instruction is good ?

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

Merci

0 votes

1 answers

761 views

ANSWER

Sorry, Which script are you referencing here ?
07/02/2014



we found the solution : It's OK with the uid of the document :

    $answer = $nuxeoSession->newRequest("Document.Query")->set('params', 'query', 'SELECT * FROM Document WHERE ecm:uuid=\''.$uid.'\' AND ('.$filter.')')->sendRequest();
0 votes