1.0.6 • Published 7 years ago
supreme-api v1.0.6
Supreme API
A NodeJS API for supremenewyork.com
How to install
npm install supreme-api --save
Check out the docs!
Usage
const supreme = require('supreme-api');
supreme.getItems('all', (items, err) => {
if (err) {
console.log(err);
return err;
}
console.log(items);
});
supreme.getItem('http://www.supremenewyork.com/shop/jackets/fman5r0xy/aw5dopam2', (item, err) => {
if (err) {
console.log(err);
return err;
}
console.log(item);
});
// check every 5 seconds
supreme.watchAllItems(5, 'shoes', (items, err) => {
if (err) {
console.log(err);
return err;
}
console.log(items);
});
// Cancel Item watch
supreme.stopWatchingAllItems((status, err) => {
if (err) {
console.log(err);
return err;
}
console.log(status);
});
// Look for a new item every 5 seconds
supreme.onNewItem(5, (product, err) => {
if (err) {
console.log(err);
return err;
}
console.log('New Release: ' + item.name);
});
// Find items based on specific keywords
const category = 'jackets';
const keywords = "UNDERCOVER";
const style = 'Burgundy';
supreme.seek(category, keywords, style, (product, err) => {
if (err) {
console.log(err);
return err;
}
console.log(product);
console.log(product.title); // example => Supreme®/UNDERCOVER Wool Overcoat
});
Future of this project
- Watch and seek for changes on individual items. (Coming Soon)
Contribution
Want to make a contribution? Fork the repo, add your changes, and submit a pull request. Any type of contributions (ideas, bug fixes, fixing typos, etc.) will be appreciated!
License
supreme-api is licensed under MIT License.
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago
0.0.16
8 years ago
0.0.15
8 years ago
0.0.13
8 years ago
0.0.14
8 years ago
0.0.12
8 years ago
0.0.11
8 years ago
0.0.10
8 years ago
0.0.9
8 years ago
0.0.8
8 years ago
0.0.7
8 years ago
0.0.6
8 years ago
0.0.5
8 years ago
0.0.4
8 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago