customer-js-sdk
The customer-js-sdk is a front-end layer of abstraction for communicating with all kinds of back-end services. It's usable in any framework in the front-end, now and in the future.
Pattern
We decided to use a pattern of modules to use the SDK for being simple to understand and easy to use.
Install
npm install --save customer-js-sdk
Import
import * as sdk from 'customer-js-sdk';
Usage
to make any endpoint call just use the module structure that SDK is created.
sdk.merchants.addresses.get("parameters to be used by the endpoint.")