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",