1.0.5 • Published 6 years ago

ffe-api-sdk v1.0.5

Weekly downloads
19
License
-
Repository
github
Last release
6 years ago

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);
        });
1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago