1.0.8 • Published 2 years ago

cimpress-fulfillment-location v1.0.8

Weekly downloads
1,472
License
Apache-2.0
Repository
github
Last release
2 years ago

Cimpress Fulfillment Location client

Usage

In order to use the client, install the package by running:

npm install cimpress-fulfillment-location --save

Once the package is available, you can retrieve a specific fulfillment location as such:

const fulfillmentLocationId = 'abcd1234';
let client = new FulfillmentLocationClient({
    log: defaultLogger,
    cacheConfig: { stdTTL: 4 * 60 * 60, checkperiod: 5 * 60 },
    timeout: 2000
});

client.getLocation(fulfillmentLocationId, {
    accessToken: "Your access token",
    skipCache: false, // Skips the cache so the results will be fresh, if not set is false by default
})
    .then(fulfillmentLocation => {
        // do stuff
    });

Otherwise, you can retrieve a list of all the fulfillment locations you have access to like this:

let client = new FulfillmentLocationClient({
    log: defaultLogger
});

client.getLocations({
    accessToken: "Your access token",
    fulfillerId: "Your fulfiller Id", // Optional
    showArchived: false, // By default is false, shows archived fulfillment locations
    skipCache: false // Skips the cache so the results will be fresh, if not set is false by default
})
    .then(fulfillmentLocations => {
        // do stuff
    });

Prerequisites

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

3 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.33

5 years ago

0.1.21

6 years ago

0.1.17

6 years ago

0.1.14

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.0.2

6 years ago

0.1.10

6 years ago