https://github.com/xetera/selly.js
💸 An API wrapper for Selly
https://github.com/xetera/selly.js
api-wrapper npm selly
Last synced: 7 months 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 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-05T07:18:24.000Z (almost 5 years ago)
- Last Synced: 2025-03-27T22:23:13.417Z (7 months ago)
- Topics: api-wrapper, npm, selly
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 4
- Watchers: 0
- 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("your@email.here", "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