# node-shop.com

> Node.js Module for Shop.com API

Latest version **1.0.7** (published 2016-05-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-shop.com
pnpm add node-shop.com
yarn add node-shop.com
bun add node-shop.com
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2016-05-15 |
| First published | 2016-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 11 |
| Author | macctown |
| Maintainers | macctown |
| Keywords | shop.com, API, affliate program |

## Links

- npm: https://www.npmjs.com/package/node-shop.com
- Repository: https://github.com/macctown/node-shop.com
- Homepage: https://github.com/macctown/node-shop.com#readme
- Issues: https://github.com/macctown/node-shop.com/issues
- npm.io page: https://npm.io/package/node-shop.com

## Dependencies (3)

- [mocha](https://npm.io/package/mocha.md) ^2.4.5
- [request](https://npm.io/package/request.md) ~2.72.0
- [query-string](https://npm.io/package/query-string.md) ^4.1.0

## Recent versions

- 1.0.7 (latest) — 2016-05-15
- 1.0.6 — 2016-05-13
- 1.0.5 — 2016-05-13
- 1.0.4 — 2016-05-09
- 1.0.3 — 2016-05-09
- 1.0.2 — 2016-05-09
- 1.0.1 — 2016-05-06
- 1.0.0 — 2016-05-06

## README

# node-shop.com
[![npm version](https://badge.fury.io/js/node-shop.com.svg)](https://badge.fury.io/js/node-shop.com)

Node.js Module for Shop.com API

#Install
```
npm install --save node-shop.com
```

#Usage
```javascript
//init your Shop instace
var Shop = require('node-shop.com').initShop({
	apikey: 'YOUR_API_KEY'
});

//search product by ID
Shop.products('874694776', {allperms: false})
	.then(function (data) {
	  console.log(data);
	})
	.catch(function (err) {
	  console.error(err);
	});

//search product by keywords
Shop.search("socks", {page: 1, count:1})
    .then(function (data) {
      console.log(data);
    })
    .catch(function (err) {
      console.error(err);
    });

//get afflicate program information on products categories
Shop.apnCategory({publisherID: 'TEST', locale: 'en_US'})
	.then(function (data) {
	  console.log(data);
	})
	.catch(function (err) {
	  console.error(err);
	});

//get afflicate program information on products
Shop.apnProduct({publisherID: 'TEST', locale: 'en_US', perPage: '15'})
	.then(function (data) {
	  console.log(data);
	})
	.catch(function (err) {
	  console.error(err);
	});

//get afflicate program information on products categories by product ID
Shop.apnProductById('874694776', {publisherID: 'TEST', locale: 'en_US'})
	.then(function (data) {
	  console.log(data);
	})
	.catch(function (err) {
	  console.error(err);
	});

//get afflicate program information on tax and shipping 
Shop.apnTaxShipping({prodIds: '834207132', quantity: '1', state: 'MA', zip:'02148', city:'Malden', country:'United States', street:'999 Maple St'})
	.then(function (data) {
  		console.log(data);
	})
	.catch(function (err) { 			
		console.error(err);		
	});  
```

#Reference
- [Product Service](https://developer.shop.com/documentation/ProductService)
- [Search Service](https://developer.shop.com/documentation/SearchService)
- [Affiliate Publisher Network](https://developer.shop.com/documentation/apnResources)

#License
[MIT](http://spdx.org/licenses/MIT)

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