@shopware-pwa/shopware-6-client
TypeScript icon, indicating that this package has built-in type declarations

1.6.1 • Public • Published

API client for Shopware 6

See compatibility with Shopware 6 in our docs

Installing

Using yarn:

$ yarn add @shopware-pwa/shopware-6-client

Usage example

A simple example of how to use API client to connect with your Shopware instance.

In main project file setup connection informations.

import { setup } from "@shopware-pwa/shopware-6-client";

setup({
  endpoint: "https://address-to-my-shopware-instance.com",
  accessToken: "myaccesstoken",
});

And then anywhere in your project, you can use API Client methods:

import { getCategories } from "@shopware-pwa/shopware-6-client"

// later in component

async mounted() {
  this.categories = await getCategories();
}

Readme

Keywords

none

Package Sidebar

Install

npm i @shopware-pwa/shopware-6-client

Weekly Downloads

678

Version

1.6.1

License

MIT

Unpacked Size

152 kB

Total Files

8

Last publish

Collaborators

  • patzick
  • mkucmus