From 9be16af74d957cb23273ed4656c616a4eea3c532 Mon Sep 17 00:00:00 2001 From: Vu Le Date: Tue, 7 Jun 2022 14:43:05 +0700 Subject: [PATCH] Update README.md for multiple connections --- README.md | 9 +++++++++ package.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e1b4a29..2b782ec 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,15 @@ criteria.addAssociation("options.group"); const products = await repository.search(criteria, Context); ``` +## Using multiple Application instances +We added support for multiple connections. To instantiate a connection to certain shop, you can simply do this: +```js +import { ApplicationInstance } from '@shapeandshift/shopware-node-sdk'; + +const shopwareApplication1 = new ApplicationInstance({ shopUrl: 'http://merchant1.test' }); +const shopwareApplication2 = new ApplicationInstance({ shopUrl: 'http://merchant2.test' }); +``` + ## Working with Admin API Apis - Current supported apis: - [InfoApi](/src/api/info.api.ts) diff --git a/package.json b/package.json index f3a8217..564d449 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@shapeandshift/shopware-node-sdk", - "version": "1.0.5", + "version": "1.0.6", "description": "### Installation:", "main": "lib/index.js", "types": "lib/index.d.ts",