# fulfillment-location-client

> A simple client for TRDLNK's Fulfillment Location service

Latest version **0.0.1** (published 2017-12-07) · Apache-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install fulfillment-location-client
pnpm add fulfillment-location-client
yarn add fulfillment-location-client
bun add fulfillment-location-client
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-12-07 |
| First published | 2017-12-07 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 6.11.1 |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| Author | LogisticsQuotingandPlanning@cimpress.com |
| Maintainers | indirap |

## Links

- npm: https://www.npmjs.com/package/fulfillment-location-client
- Repository: https://cimpress.githost.io/qp/fulfillment-location-client
- npm.io page: https://npm.io/package/fulfillment-location-client

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.16.2
- [node-cache](https://npm.io/package/node-cache.md) ^4.1.1

## Recent versions

- 0.0.1 (latest) — 2017-12-07

## README

# Cimpress Fulfillment Location client

This repository is maintained by the [Logistics Quoting & Planning Squad](mailto:LogisticsQuotingandPlanning@cimpress.com).
It contains a simple client to help getting information from the Fulfillment Location service owned by the [TRDLNK squad](mailto:TrdelnikSquad@cimpress.com).

### Usage
In order to use the client, install the package by running:
```
npm install cimpress-fulfillment-location --save
```

Once the package is avialable, 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 }
});

client.getLocation(fulfillmentLocationId, req.headers.authorization)
    .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(req.headers.authorization)
    .then(fulfillmentLocations => {
        // do stuff
    });
```

### Prerequisites
* [Node.js](https://nodejs.org/en/)

### Other QP Resources
* [qp-node-components](https://mcpstash.cimpress.net/projects/QP/repos/qp-node-components/browse)
* [qp-validators](https://mcpstash.cimpress.net/projects/QP/repos/qp-validators/browse)
* [simple-coam-auth](https://mcpstash.cimpress.net/projects/QP/repos/simple-coam-auth/browse)
* [qp-quoter-client](https://mcpstash.cimpress.net/projects/QP/repos/qp-quoter-client/browse)

---
_Source: https://npm.io/package/fulfillment-location-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
