Requests the results of a queued document from the API. Throws an error if the server's response contains one.
The document's ID in the queue.
a Promise
containing the parsed result.
Enqueues a prediction to the API. Throws an error if the server's response contains one.
parameters relating to prediction options.
a Promise
containing queue data.
Account owning the product.
Settings relating to the API.
URL of a product.
Entire root of the URL for API calls.
Product's version, as a string.
Protected
cutCuts a document's pages according to the given options.
input document.
page cutting options.
Send a feedback
Protected
readReads a response from the API and processes it.
options related to the request itself.
the resolved response
promise rejection reason.
Optional
reason: anythe processed request.
Send a feedback
ID of the document to send feedback to.
Feedback object to send.
Protected
sendSend a file to a prediction API.
Sends a document to the API and parses out the result. Throws an error if the server's response contains one.
parameters relating to prediction options.
a Promise
containing parsing results.
Endpoint for a product (OTS or Custom).