@swishapp/api-client 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -13,10 +13,9 @@ npm install @swishapp/api-client
13
13
  ```ts
14
14
  import { SwishClient } from "@swishapp/api-client";
15
15
 
16
- const swish = new SwishClient({
17
- apiKey: "your-api-key",
18
- shop: "your-shopify-shop-name.myshopify.com",
19
- key: "gid://shopify/Customer/123456789",
16
+ const swish = createClient({
17
+ authToken: "swish-api-token",
18
+ profile: "gid://shopify/Customer/12345",
20
19
  });
21
20
 
22
21
  const { data } = await swish.items.list();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swishapp/api-client",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "API client for the Swish API",
5
5
  "website": "https://swish.app",
6
6
  "type": "module",