@ntegral/lulu
The client for Lulu Print API that allows you to use Lulu as a production and fulfillment network. The client provides
a wrapper around the Lulu Print API restful API.
Table Of Contents
About
The client for Lulu Print API that allows you to use Lulu as a production and fulfillment network. The client provides
a wrapper around the Lulu Print API restful API.
Prerequisites
Installation
npm install --save @ntegral/lulu
Getting Started
The simplest way to use @ntegral/lulu
is as follows:
import { LuluService } from "@ntegral/lulu";
let ls = new LuluService({
client_key: '5ec56f60-3df5-484a-86a4-555xxx555dsx',
client_secret: 'b1050b59-61e6-4053-9731-669cd444xxx',
environment: 'development',
});
ls.init();
ls.shippingOptions.list({ page: 1, page_size: 100, iso_country_code: 'US' }).then((result) => {
console.log('resulting shipping options', result);
}).catch((err) => {
console.log('error occurred', err);
});
Contributing
I would greatly appreciate any contributions to make this project better. Please
make sure to follow the below guidelines before getting your hands dirty.
- Fork the repository
- Create your branch (
git checkout -b my-branch
) - Commit any changes to your branch
- Push your changes to your remote branch
- Open a pull request
License
Distributed under the MIT License. See LICENSE
for more information.
Acknowledgements
Copyright © 2019 Ntegral Inc.