Class

Dispatch

Dispatch(token, envopt)

This is the main class that will be the entry point into dispatch. You can initialize this class with your API Key.

Constructor

# new Dispatch(token, envopt)

Creates a new Dispatch class. Once this class is initialized, you can use any of the namespaces with a method to use tge API.

Parameters:
Name Type Attributes Default Description
token string

Initialize the class with your API key.

env string <optional>
"production"

Unless you have development keys, leave this blank.

View Source dispatch.js, line 15

Example
const dispatch = new Dispatch("key_EHKD5tbatzX59DArnTBjhr46G5n1f4aJkvwPByft")

Namespaces

deliveries
locations
profile