# shipwire-node-api

> Node.js API Client Wrapper

Latest version **0.0.14** (published 2016-03-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install shipwire-node-api
pnpm add shipwire-node-api
yarn add shipwire-node-api
bun add shipwire-node-api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.14 |
| Published | 2016-03-31 |
| First published | 2015-08-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Scott B Wyatt |
| Maintainers | scottbwyatt |
| Keywords | Shipwire, API, Client, Wrapper |

## Links

- npm: https://www.npmjs.com/package/shipwire-node-api
- Repository: https://github.com/scott-wyatt/shipwire-node-api
- Issues: https://github.com/scott-wyatt/shipwire-node-api/issues
- npm.io page: https://npm.io/package/shipwire-node-api

## Dependencies (1)

- [request](https://npm.io/package/request.md) ^2.42.0

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 0.0.14 (latest) — 2016-03-31
- 0.0.13 — 2016-03-10
- 0.0.12 — 2015-09-02
- 0.0.11 — 2015-08-31
- 0.0.10 — 2015-08-31
- 0.0.9 — 2015-08-31
- 0.0.8 — 2015-08-31
- 0.0.7 — 2015-08-31
- 0.0.6 — 2015-08-31
- 0.0.5 — 2015-08-21
- 0.0.4 — 2015-08-20
- 0.0.3 — 2015-08-20
- 0.0.1 — 2015-08-20

## README

#Shipwire Node.js API Library

## Status

> ##### Stability: [1](http://nodejs.org/api/documentation.html#documentation_stability_index) - Experimental

shipwire-node-api is a node.js module for asynchronously communicating with the
[Shipwire APIs](https://www.shipwire.com/w/developers/client-libraries/). 

## Getting Started
Use NPM to download and install the API
```sh
npm install shipwire-node-api
```

Then include the Shipwire API in your script
```js
// Load Shipwire API
var Shipwire = require('shipwire-node-api').Shipwire;
// Configure Shipwire api
module.exports = new Shipwire(<username>, <password>, <sandbox>);
```

##Orders
###orders.create

Creates a new Order

```js
	Shipwire.orders.create({
		
		orderNo:'foobar1',
		externalId: 'rFoobar1',
		items: [<array_of_items>]

	}, function(err, order){
		//asynchronously called
		if(err){
			//handle err
		}
		//handle order
	});
```

###orders.findOne

Finds an Order

###orders.find
Finds multiple Orders

###orders.cancel
Cancels an Order

###orders.holds
Get the list of holds, if any, on an Order

###orders.holdsClear
Clear holds on an Order

###orders.items
Get the contents of an Order

###orders.returns
Get any returns associated with an Order

###orders.splitOrders
Get splitOrders information about an Order

###orders.trackings
Get Tracking Information of an Order

###orders.update
Modifies Information about an Order

##Change Log

###v0.0.12
POST/PUT as JSON. Order API complete.

###v0.0.3
Standarize output

###v0.0.2
Add Support for Order API

###v0.0.1
Initial Upload of API

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