2.0.6 • Published 2 years ago

insales v2.0.6

Weekly downloads
1,918
License
MIT
Repository
github
Last release
2 years ago

InSales

Build Status Coverage Status Dependencies NPM version ESDoc

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

getAccount

Charge

createCharge
getCharge
listCharge
removeCharge

Collection

getCollection
listCollection

Coupon

createCoupon
editCoupon
getCoupon
listCoupon
removeCoupon

File

createFile
getFile
removeFile
uploadFile

JsTag

createJsTag

Price Kind

createPriceKind
editPriceKind
getPriceKind
listPriceKind
removePriceKind

Product

createProduct
getProduct
listProduct

Recurring

createRecurring
getRecurring
removeRecurring

Token

token

TODO

Add other APIs

2.0.3

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.6

2 years ago

2.0.2

4 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.4.0

8 years ago

1.3.0

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.8.0

9 years ago

0.7.0

9 years ago

0.6.3

9 years ago

0.6.2

9 years ago

0.6.1

9 years ago

0.6.0

9 years ago

0.5.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.0.5

9 years ago

0.0.3

9 years ago

0.0.2

10 years ago

0.0.1

11 years ago