supremenewyork-api-v2
v2.0.2
Published
An api for Supreme that has many functions.
Downloads
1
Readme
supremenewyork-api
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
| Requirement | Version | | ---|---| | 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
- Style Fetcher
- Restock Detecter