insales v2.0.6
InSales
InSales module that allows you to communicate with the InSales API from node.js
Installation
npm install insales --save
Usage
// Import a module
import InSales from 'insales';
// Create an instance with your API credentials
const insales = InSales({
id: 'your app id',
secret: 'your app secret'
});
// Get things done
insales.getAccount({
token: 'token for shop',
url: 'shop-test.myinsales.ru'
}).then(output => {
console.info(output.data);
}).catch(err => {
console.error(err);
});
API limits
insales.getAccount({
token: 'token for shop',
url: 'shop-test.myinsales.ru'
}).then(output => {
console.info(output.callLimits); // { remaining: 498, current: 2, max: 500 } }
})
Methods
Account
Charge
createCharge
getCharge
listCharge
removeCharge
Collection
Coupon
createCoupon
editCoupon
getCoupon
listCoupon
removeCoupon
File
createFile
getFile
removeFile
uploadFile
JsTag
Price Kind
createPriceKind
editPriceKind
getPriceKind
listPriceKind
removePriceKind
Product
createProduct
getProduct
listProduct
Recurring
createRecurring
getRecurring
removeRecurring
Token
TODO
Add other APIs
2 years ago
2 years ago
2 years ago
2 years ago
4 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
11 years ago
11 years ago