1.0.7 • Published 4 years ago

selly.gg v1.0.7

Weekly downloads
11
License
ISC
Repository
-
Last release
4 years ago

Selly.gg

Wrapper for the Selly.gg API

const Selly = require('Selly.gg');

const API = new Selly.API(apiEmail, apiKey)

Installation

$ npm install selly.gg

API

To make Selly.gg API calls you need to initate the Selly.API class by passing it your Selly.gg API Key and Selly.gg Email.

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 Selly is not "success" the promise will be rejected.

getPage(page)

Selly offers the ability to paginate any list or index resource. The page header returns the total number of pages for the resources at the specific endpoint you're using.

getAllOrders()

Retrieves all orders.

getSpecificOrder(ID)

Retrieves a specific order.

getAllProducts()

Retrieves all products.

getSpecificProduct(ID)

Retrieves a specific product.

getAllProductGroups()

Retrieves all product groups.

getSpecificProductGroup(ID)

Retrieves a specific product group.

deletePayment(ID)

This deletes a Selly Pay payment

getAllCoupons()

Retrieves all coupons.

getSpecificCoupon(ID)

Retrieves a specific coupon

getQueries()

Retrieves all queries.

getSpecificQuery(ID)

Retrieves a specific query.

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

5 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago