sellix.io
v0.0.4
Published
A wrapper for Sellix.io API.
Downloads
14
Maintainers
Readme
sellix.io
An API wrapper for the e-commerce site known as sellix.io.
const Sellix = require('sellix.io');
const api = new Sellix.Client(api_key_here)
Installation
$ npm install sellix.io
API
To make Sellix.io API calls you need to initate the Sellix.Client class by passing it your Sellix.io API Key.
All calls return a promise with the data from the response. If there is an error making the request or the status of the request from Shoppy is not "success" the promise will be rejected.
Example usage
const Sellix = require('sellix.io');
const api = new Sellix.Client(api_key_here)
// This function returns information about a specific order based on it's ID.
api.getOrder().then(data => console.log(data)))
// This funtion returns all feedback left on your profile.
api.getAllFeedback().then(data => console.log(data)))
Available API Endpoints
getOrder(ID)
Retrieves a specific order.
getAllOrders()
Retrieves all orders.
getProduct(ID)
Retrieves a specific product.
getAllProducts()
Retrieves all products.
getCoupon(ID)
Retrieves a specific coupon.
getAllCoupons()
Retrivies all coupons.
getFeedback(ID)
Retrieves a specific feedback.
getAllFeedback()
Retrieves all feedback.
getBlacklist(ID)
Retrieves a specific feedback.
getAllBlaclist()
Retrieves all feedback.
getCategory(ID)
Retrieves a specific category.
getAllCategories()
Retrieves all categories.
API key validator has also been implemented.
More endpoints will be added soon.
The option to create, edit, delete products, blacklists, orders etc via the package is being considered.