This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

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

1.6.2 • Public • Published

API client for Shopware 6

[!WARNING] Deprecated. This package is deprecated. Look out for the new project Showpare Composable Frontends.

Direct replacement of this package is @shopware/api-client package

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

346

Version

1.6.2

License

MIT

Unpacked Size

153 kB

Total Files

8

Last publish

Collaborators

  • patzick
  • mkucmus