/eforo-api

A fully tested module for interaction with eforo's api using 'request-promise'

Primary LanguageJavaScript

Node Eforo API

This Module is not yet deployed

to NPM and this readme should be considered a draft of features to guide future development.

Purpose

A fully tested single lightweight wrapper for interacting with the eforo API

Class

Eforo

import Eforo from 'eforo-api'

Setup Creds

An api key is required for interacting with the eforo platform

Eforo.setup(process.env.MY_API_KEY);

You can now interact with any endpoint

Eforo.getItems({ status: 'IN_QUEUE', page: 1 });

Public Methods

getItems(options)

Eforo.getItems(options)

Options

  1. external_id
  2. inventory_id
  3. status
  4. page
Eforo.getItems({ status: 'IN_QUEUE' })
  .then(results => /* send products to front end or save here */);
Eforo.getItems({ status: Eforo.constants.status.IN_QUEUE });
  .then(results => /* send products to front end or save here */);

getEbayListings(options)

Eforo.getEbayListings(())