1.0.3 • Published 12 months ago

@adaptive-recognition/transport-api-client v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

Adaptive Recognition Cloud - Transportation & Cargo API Client

A JavaScript/TypeScript client for the AR Cloud Transportation & Cargo API.

How to Install

npm install --save @adaptive-recognition/transport-api-client

Usage

import { TransportAPIClient } from "@adaptive-recognition/transport-api-client";

const client = new TransportAPIClient({
    apiKey: "<YOUR_API_KEY>",
    type: "iso",
    cloudServiceRegion: "EU"
});

async function recognize() {
    const response = await client.send("./container.jpg");
    console.log(response);
}

recognize()
    .then()
    .catch(err => console.error(err));

Development

See DEVELOPMENT.md.