@404-software/lets-deliver
v1.0.13
Published
This package provides helper functions to handle integration with Let's Deliver's API.
Downloads
35
Readme
About
This package provides helper functions to handle integration with Let's Deliver's API.
How to use
You can set the following environment variables:
LETS_DELIVER_API_KEY="API Key"
LETS_DELIVER_API_SECRET="API Secret"
LETS_DELIVER_BASE_URL="Base Url"
or alternatively, you can pass these details to the config of the function directly.
Example
import { letsDeliverGetDeliveries letsDeliverGetDelivery } from '@404-software/lets-deliver'
const deliveries = await letsDeliverGetDeliveries({
config: {
apiKey: 'API Key',
apiSecret: 'API Secret',
},
})
const delivery = await letsDeliverGetDelivery({
request: {
id: 'efsdg2342-423fdsf2-4frwf34-greg343'
}
})