2.0.2 • Published 5 years ago

supremenewyork-api-v2 v2.0.2

Weekly downloads
6
License
MIT
Repository
-
Last release
5 years ago

supremenewyork-api

npm version License: MIT

An api for SupremeNewYork based in NodeJS.

This package has many features. You can read about all of the features on the documentation. Below you will find information on how to install the package + some basic features.

Requirements

RequirementVersion
Node^8.8.0
NPM^5.5.1

Installation

npm i supremenewyork-api

Usage

For all features of this package, please visit the documentation.

Find Function

Finds item based on keyword and category and returns a json string with information.

Sample JSON Response

{  
  "title": "Sled",
  "price": "58.00",
  "id": "171145",
  "imageurl": "http://images.supremenewyork.com/142396/ma/Bennk6ztM1w.jpg",
  "new": "true",
  "category": "Accessories"
}

Example Code for Find

const api = require('supremenewyork-api');

api.find('sled', 'all', (item, error) => {
  if (error) {
    console.log(error);
  } else {
    console.log(item);
  }
});

TODO

  1. Style Fetcher
  2. Restock Detecter
2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago