JS lib to manage E-Com Plus store applications
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.
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)
}