Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cimpress-fulfillment-location

Package Overview
Dependencies
Maintainers
7
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cimpress-fulfillment-location

A simple client for the Cimpress Fulfillment Location service

  • 0.1.21
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
361
decreased by-13.84%
Maintainers
7
Weekly downloads
 
Created
Source

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, 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
    });

// To include also archived fulfillment locations
client.getLocations(req.headers.authorization, true)
    .then(fulfillmentLocations => {
        // do stuff
    });

Prerequisites

  • Node.js

FAQs

Package last updated on 03 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc