Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

Latest commit

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Admin Node-API Client for Shopware 6

This code highly bases on the Administration Code and made NodeJs compatible.

Creation of API Client

Using Username and Password

import{createFromPasswordAndLogin}from'shopware-admin-api';letapi=awaitcreateFromPasswordAndLogin('http://myshop.com','username','password',1);

Using Integration

import{createFromIntegration}from'shopware-admin-api';letapi=awaitcreateFromIntegration('http://myshop.com','client_id','client_secret',1);

Usage

// Create repositoryconstproductRepository=api.create('product');// Access default contextconstcontext=api.defaultContext();// Acccess entity definition (contains the schema, required fields etc.)constdefinition=api.EntityDefinition;console.log(definition.get('product'))console.log(definition.getRequiredFields('product'))

License

MIT

About

a Shopware Admin API Client for NodeJs

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages