🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@flyfisheurope/ffe-api-sdk

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flyfisheurope/ffe-api-sdk

Flyfish Europe API SDK

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
3
Created
Source

FFE API SDK - Node.js

Flyfish Europe REST API SDK for Node.js

Getting started

Install library from our NPM package:

$ 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 category.
    ffe.category(1004)
        .then((category) => {
            console.log(category);
        });
    
  • categories()
    // Get a list of categories.
    ffe.categories()
        .then((categories) => {
            console.log(categories);
        });
    
  • product(<productno>)
    // Get a specific product.
    ffe.product('11446-031-07')
        .then((product) => {
            console.log(product);
        });
    
  • products()
    // Get a list of products.
    ffe.products()
        .then((products) => {
            console.log(products);
        });
    
  • products({ isNew: 1 })
    // Get a list of new products.
    ffe.products()
        .then((products) => {
            console.log(products);
        });
    

FAQs

Package last updated on 03 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts