0.1.0 • Published 1 year ago
@tiny-mile/delivery-sdk v0.1.0
Node Delivery SDK
We provide an HTTP API to make it easier for new partners to quickly integrate with us and start sending delivery requests our way. While you can use our API directly by making raw HTTP requests to it, we also provide client libraries in some languages to speed up development.
For the full documentation of the API, please see https://external-api.prod.gcp.tinymile.ai/doc.
For the development version, see https://external-api.dev.gcp.tinymile.ai/doc . This is the version this repository is synchronized with.
Install
Install the package @tiny-mile/delivery-sdk
using yarn
, npm
or any node package manager of your choice.
Basic usage
import { Client } from "@tiny-mile/delivery-sdk"
const client = new Client({
BASE: "https://external-api.dev.gcp.tinymile.ai",
TOKEN: "your-api-key",
});
client.default.getJobsForOrder(...);
API Compatibility
The API is versioned, so this SDK is guaranteed to have forward compatibility with the API.