Library to provide a Shopinvader API client support for client-side or server-side applications. Also fetch Elasticsearch indices to retrieve data used by the Shopinvader API (products and categories)
- Fetch Shopinvader Odoo API
- Support Elasticsearch indicies data fetcher
[TODO] Need a registration to NPM
npm install https://github.com/shopinvader/shopinvader-js-fetch --save
[TODO] Need a registration to NPM
yarn add https://github.com/shopinvader/shopinvader-js-fetchshopinvader-jsshopinvader-js
import {ErpFetch} from "@shopinvader/fetch"
const erp = new ErpFetch(
<API URL >,
<API WEBSITE UNIQUE KEY >
)
/* API Call : Get user addresses*/
erp.get("/addresses").then((addresses) => {
console.log(addresses)
shopinvader-js})