cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving Image with PHP Automation API

dlcervan_
Champ in-the-making
Champ in-the-making

I'm attempting to retrieve the image off of a Image document using the document url but have been unsuccessful. I've different variations of the example here but I continuously receive nothing. I know the host is correct, as I've been able to retrieve a document. A snippet of what I've been using is as follows:

        $client = new NuxeoPhpAutomationClient($host);
        $session = $client->getSession($login, $password);
        $response = $session->newRequest("Blob.Get")->set('input', 'doc:/asset-library/Collections/1901/00000-00099/01.1/01-1.jpg')->sendRequest();
1 REPLY 1

dlcervan_
Champ in-the-making
Champ in-the-making

After some trial and error I discovered the proper input should have been:

$response = $session->newRequest("Blob.Get")->set('input', 'doc:{uuid}')->sendRequest();
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.