Skip to content

datejer/shoppy.gg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shoppy.gg

author version downloads

NPM

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)

Installation

$ npm install shoppy.gg

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 = 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);
  });

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.

About

📦 A simple shoppy.gg wrapper to access the Shoppy API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published