Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xetera/selly.js

💸 An API wrapper for Selly
https://github.com/xetera/selly.js

api-wrapper npm selly

Last synced: 25 days ago
JSON representation

💸 An API wrapper for Selly

Awesome Lists containing this project

README

        

# selly.js
A simple selly API wrapper

### Getting started
```js
const selly = require('selly.js');

const api = selly("[email protected]", "your-api-key-here");

api.getProducts().then(products => console.log(products));
```

### Available methods
```
getCoupons(): Promise
getCoupon(id): Promise
createCoupon(couponObject): Promise
updateCoupon(id, couponObject): Promise

getOrders(): Promise
getOrder(id): Promise

getProducts(): Promise
getProduct(id): Promise
createProduct(productObject): Promise
updateProduct(id, productObject): Promise
deleteProduct(id): Promise

getProductGroups(): Promise
getProductGroup(id): Promise

getQueries(): Promise
getQuery(id): Promise

createPayment(paymentObject): Promise
deletePayment(id): Promise<{ status: true }>
```

###### Note: Not supporting pagination yet because I'm lazy