Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/xetera/selly.js
- Owner: Xetera
- Created: 2019-02-17T06:48:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-05T07:18:24.000Z (almost 4 years ago)
- Last Synced: 2024-05-30T16:11:15.207Z (5 months ago)
- Topics: api-wrapper, npm, selly
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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): PromisegetOrders(): Promise
getOrder(id): PromisegetProducts(): Promise
getProduct(id): Promise
createProduct(productObject): Promise
updateProduct(id, productObject): Promise
deleteProduct(id): PromisegetProductGroups(): Promise
getProductGroup(id): PromisegetQueries(): Promise
getQuery(id): PromisecreatePayment(paymentObject): Promise
deletePayment(id): Promise<{ status: true }>
```###### Note: Not supporting pagination yet because I'm lazy