
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
shipwire-api
Advanced tools
Promise Based Shipwire API Bindings.
Forked from sanderpick/shipwire-node. README format was adapted from MONEI/Shopify-api-node (very clean and helpful).
$ npm install --save shipwire-node-promise
This module exports a constructor function which takes an options object.
Shipwire(options)
Creates a new Shipwire
instance.
options
- Required - A plain JavaScript object that contains the
configuration options.username
- Required - A string that specifies the login username.password
- Required - A string that specifies the login password.host
- Optional - A string that specifies the host to make requests to.
Defaults to "api.beta.shipwire.com"
A Shipwire
instance.
Throws an Error
exception if the required options are missing.
const Shipwire = require('shipwire-node-promise');
const shipwire = new Shipwire({
host: "api.shipwire.com",
username: "<USERNAME>",
password: "<PASSWORD>"
});
Every resource is accessed via your shipwire
instance:
const shipwire = new Shipwire({
host: "api.shipwire.com",
username: "<USERNAME>",
password: "<PASSWORD>"
});
// shipwire.<resouce_name>.<method_name>
Each method returns a Promise
that resolves with the result:
shipwire.orders.get()
.then(orders => console.log(orders))
.catch(err => console.error(err));
get()
create()
update()
cancel()
getHolds()
getItems()
getReturns()
getTrackings()
get()
get()
get()
create()
update()
cancel()
cancelLabels()
getHolds()
getInstructionsRecipients()
getItems()
getShipments()
getTrackings()
get()
create()
cancel()
getHolds()
getItems()
getTrackings()
getLabels()
get()
create()
update()
retire()
get()
create()
update()
delete()
get()
create()
delete()
where params
is a plain JavaScript object. See https://www.shipwire.com/w/developers/
for parameters details.
FAQs
Promise based NodeJS client library for the Shipwire API
The npm package shipwire-api receives a total of 0 weekly downloads. As such, shipwire-api popularity was classified as not popular.
We found that shipwire-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.