Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 913 Bytes

README.md

File metadata and controls

43 lines (28 loc) · 913 Bytes

@shopinvader/fetch

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)

Features

  • Fetch Shopinvader Odoo API
  • Support Elasticsearch indicies data fetcher

Getting started

Installation

NPM

[TODO] Need a registration to NPM

npm install https://github.com/shopinvader/shopinvader-js-fetch --save

YARN

[TODO] Need a registration to NPM

yarn add https://github.com/shopinvader/shopinvader-js-fetchshopinvader-jsshopinvader-js

Usage

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})

License

License