@ecomplus/apps-manager

1.0.1 • Public • Published

apps-manager

Publish CodeFactor npm version License AGPL

JS lib to manage E-Com Plus store applications

Changelog

Usage

The @ecomplus/apps-manager package can be used to work with E-Com Plus Market and Store API applications, with methods for apps search, install, edit and delete.

It's available for both Node.js and browser environments.

Example

import ecomAuth from '@ecomplus/auth'
import ecomApps from '@ecomplus/apps-manager'

ecomApps.listFromMarket()
  .then(availableApps => {
    console.log(availableApps)
  })
  .catch(console.error)

const listStoreApps = () => {
  ecomApps.list()
    .then(installedApps => {
      console.log(installedApps)
    })
    .catch(console.error)
}

if (ecomAuth.checkLogin()) {
  listStoreApps()
} else {
  ecomAuth.on('login', listStoreApps)
}

Package Sidebar

Install

npm i @ecomplus/apps-manager

Weekly Downloads

0

Version

1.0.1

License

AGPL-3.0

Unpacked Size

329 kB

Total Files

26

Last publish

Collaborators

  • leomp12