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
- external_id
- inventory_id
- status
- 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(())