'use strict';
console.log('simple order');
var SimpleOrder = require('simple-order');
var client_id = 'xxxxxx';
var grant_type = 'xxxxxx';
var refresh_token = 'xxxxx';
var client_secret = 'xxxxx';
var access_token = 'xxxxxx'; // optional
var simpleOrder = new SimpleOrder(client_id, client_secret, grant_type, refresh_token, access_token);
var method = 'GET';
var path = 'orders';
var parameters = {};
simpleOrder.call(method, path, parameters)
.then((result) => {
console.log(result.data.items.requestProducts);
}).catch((err) => {
console.log(err);
})
-
Notifications
You must be signed in to change notification settings - Fork 0
fabacus/node-simpleorder
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Node based API wrapper for the Simple Order API.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published