ffe-api-sdk
v1.0.5
Published
Flyfish Europe API SDK
Downloads
8
Readme
FFE API SDK - Node.js
Flyfish Europe REST API SDK for Node.js
Getting started
Install library:
$ npm install ffe-api-sdk --save
Example code usage:
const FFE = require('ffe-api-sdk');
const ffe = new FFE('<your ffe token>');
ffe.products({ limit: 20, brand: 'simms' })
.then((result) => {
console.log(result);
})
.catch((error) => {
console.error(error);
});
That's it!
Methods
- brand(<brandno>)
// Get a specific brand. ffe.brand('simms') .then((brand) => { console.log(brand); });
- brands()
// Get a list of brands. ffe.brands() .then((brands) => { console.log(brands); });
- category(<catgeoryno>)
// Get a specific brand. ffe.category(1004) .then((category) => { console.log(category); });
- categories()
// Get a list of brands. ffe.categories() .then((categories) => { console.log(categories); });
- product(<productno>)
// Get a specific brand. ffe.product('11446-031-07') .then((product) => { console.log(product); });
- products()
// Get a list of brands. ffe.products() .then((products) => { console.log(products); });