cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with API PHP script

Patrick_Delage
Confirmed Champ
Confirmed Champ

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

2 REPLIES 2

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

Sorry, Which script are you referencing here ?

Patrick_Delage
Confirmed Champ
Confirmed Champ

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