Search found 4 matches

by crafter
Wed Sep 21, 2022 7:29 am
Forum: API
Topic: Getting document preview using the API
Replies: 1
Views: 44

[SOLVED]: Getting document preview using the API

I solved this by providing user credentials to my request. In my initial post I said this I can enter this into a browser and will happily retrieve the file However, using code <snip> ... </snip> I get the dreaded response. I was actually logged in the time hence the browser request passed. Using a ...
by crafter
Wed Sep 21, 2022 6:45 am
Forum: API
Topic: Getting document preview using the API
Replies: 1
Views: 44

Getting document preview using the API

I am trying to get a preview/thumbnail into an interface I am building to the repository. My general flow is this. - I get the document information 'http://myrepo.com/api/v4/documents/' . $document_id . '/'; - Extract the image $image = $response['version_active']['pages_first']['image_url'] ?? ''; ...
by crafter
Mon Sep 05, 2022 9:17 am
Forum: API
Topic: REST API Upload document to a cabinet
Replies: 9
Views: 5396

Re: REST API Upload document to a cabinet

You have to pass a single document ID per request. This line is what is blocking your code from working: 'document' => [$document_id], // values must be a list [] Thank you Micheal I should have mentioned in my post that I tried various combinations of requests, including a single document. and eve...
by crafter
Thu Sep 01, 2022 10:49 am
Forum: API
Topic: REST API Upload document to a cabinet
Replies: 9
Views: 5396

Re: REST API Upload document to a cabinet

The solution is not working for me. I am using PHP to send create and upload a document, which works well. Thereafter, trying to add the document to the cabinet results in the following error {"detail":"Not found."} I am at a loss on how to proceed as the API documentation is not...