ParserServer

ParserServer

Facilitates interaction with the parser server.

Constructor

new ParserServer(sdk, serverUrl, opts)

Create a new parser server instance.

Source:
Parameters:
Name Type Description
sdk ShelfNetwork

Parent SDK instance.

serverUrl string

parser URL.

opts Object
Name Type Attributes Default Description
allowHttp boolean <optional>

Allow connecting to http servers, default: false. This must be set to false in production deployments!

proxy Object <optional>

Proxy configuration. Look axios docs for more info

httpBasicAuth Object <optional>

HTTP basic auth credentials. Look axios docs for more info.

customHeaders Object <optional>

Custom headers for request.

withCredentials boolean <optional>

Indicates whether or not cross-site Access-Control requests should be made using credentials.

responseType string <optional>
'json'

Indicates the type of data that the server will respond with options are 'arraybuffer', 'blob', 'document', 'json', 'text', 'stream'.

Methods

(async) getLotDetails(id) → {Promise.<JsonApiResponse>}

Get copart lot details.

Source:
Parameters:
Name Type Description
id Number

Copart lot ID.

Returns:
Type:
Promise.<JsonApiResponse>

Parser response.