jet-sdk
Originally forked from vedmalex/mws-sdk.
What is done:
-
It is uses request. it is more flexible and there is no eventEmitter syntax.
-
Promises to provide generic async support.
Use it. Contriburte it.
it can be seamlesly used in ES2015/2016 way using babel.js.
with new javascript code features like yield
or async
wait
to put some sugar on your code.
Examples
Initialize
var Jet = client = 'user' 'pass' {};
you also can use test/jet-emulator.(for run use command)
node test/jet-emulator/appjs
and after then can send commands to localhost(for getting available params see source code jet-emulator):
var Jet = client = 'user' 'pass' host:'localhost:3021';
Getting PRODUCTS information
[PRODUCTS]Using for getting products by SKU
{ var client = user pass {}; var req = JetProductsrequests; req; return client;}
[PRODUCTS]Using for getting products SKU list
{ var client = user pass {}; var req = JetProductsrequests; req; req; return client;}
[PRODUCTS]Using for getting product price by SKU
{ var client = user pass {}; var req = JetProductsrequests; req; return client;}
[PRODUCTS]Using for getting product inventory
{ var client = user pass {}; var req = JetProductsrequests; req; return client;}
[PRODUCTS]Using for getting product shipping exception
{ var client = user pass {}; var req = JetProductsrequests; req; return client;}
Getting ORDERS information
[ORDERS]Using for getting order list by stat
{ var client = user pass {}; var req = JetOrdersrequests; req; return client;}
[ORDERS]Using for getting order details
{ var client = user pass {}; var req = JetOrdersrequests; req; return client;}