A simple Shoppy.gg wrapper to access the Shoppy API.
This package has a lot more API endpoints than shoppy
and unlike shoppy
IS actually working.
const Shoppy = require('Shoppy.gg');
const API = new Shoppy.API(apiKey)
$ npm install shoppy.gg
To make Shoppy.gg API calls you need to initate the Shoppy.API class by passing it your Shoppy.gg 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.
const Shoppy = require('Shoppy.gg');
const API = new Shoppy.API(apiKey)
// This function returns information about a specific order based on it's ID.
API.getSpecificOrder(ID)
.then(data => {})
.catch(items => {
console.log(items);
});
// This funtion returns all feedback left on your profile.
API.getFeedback()
.then(data => {})
.catch(items => {
console.log(items);
});
Retrieves all orders.
Retrieves a specific order.
Retrieves all products.
Retrieves a specific product.
Updates a specific product.
Retrieves all coupons.
Retrieves a specific coupon
Retrieves all queries.
Retrieves a specific query.
Retrieves all webhooks.
Retrieves a specific webhook.
Retrieves all feedback.
Retrieves a specific feedback.
Retrieves all tickets.
Retrieves a specific ticket.
Retrieves all notifications.
Marks all notifications as read.
Marks a specific notification as read.
Retrieves your user info.
Retrieves your settings.
Updates your settings.