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

node-shop.com

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-shop.com

Node.js Module for Shop.com API

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-90.91%
Maintainers
1
Weekly downloads
 
Created
Source

node-shop.com

npm version

Node.js Module for Shop.com API

#Install

npm install --save node-shop.com

#Usage

//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

#License MIT

Keywords

FAQs

Package last updated on 15 May 2016

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