Shoppy.gg
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 = ; const API = apiKey
Installation
$ npm install shoppygg
API
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.
Example usage
const Shoppy = ; const API = apiKey // This function returns information about a specific order based on it's ID. API ; // This funtion returns all feedback left on your profile. API ;
Available Functions (API Endpoints)
getOrders()
Retrieves all orders.
getSpecificOrder(ID)
Retrieves a specific order.
getProducts()
Retrieves all products.
getSpecificProduct(ID)
Retrieves a specific product.
updateProduct(ID, {})
Updates a specific product.
getCoupons()
Retrieves all coupons.
getSpecificCoupon(ID)
Retrieves a specific coupon
getQueries()
Retrieves all queries.
getSpecificQuery(ID)
Retrieves a specific query.
getWebhooks()
Retrieves all webhooks.
getSpecificWebhook(ID)
Retrieves a specific webhook.
getFeedback()
Retrieves all feedback.
getSpecificFeedback(ID)
Retrieves a specific feedback.
getTickets()
Retrieves all tickets.
getSpecificTicket(ID)
Retrieves a specific ticket.
getNotifications()
Retrieves all notifications.
markAllNotificationsAsRead()
Marks all notifications as read.
markNotificationAsRead(ID)
Marks a specific notification as read.
getUser()
Retrieves your user info.
getSettings()
Retrieves your settings.
updateSettings({})
Updates your settings.