shoppy

1.0.7 • Public • Published

Shoppy.gg

Wrapper for the Shoppy.gg API

const Shoppy = require('Shoppy');
 
const API = new Shoppy.API(apiKey)

Installation

$ npm install shoppy

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.

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.

Readme

Keywords

none

Package Sidebar

Install

npm i shoppy

Weekly Downloads

3

Version

1.0.7

License

MIT

Unpacked Size

8.48 kB

Total Files

5

Last publish

Collaborators

  • dotheyhey