Skip to content

Commit

Permalink
Update README.md for multiple connections
Browse files Browse the repository at this point in the history
  • Loading branch information
crisalder2806 committed Jun 7, 2022
1 parent ab3a339 commit 9be16af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 9be16af

Please sign in to comment.