@sp-api-sdk/notifications-api-v1
Advanced tools
Comparing version 1.4.3 to 1.5.0
@@ -5,3 +5,3 @@ { | ||
"description": "The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more.", | ||
"version": "1.4.3", | ||
"version": "1.5.0", | ||
"main": "dist/cjs/index.js", | ||
@@ -28,4 +28,4 @@ "module": "dist/es/index.js", | ||
"dependencies": { | ||
"@sp-api-sdk/auth": "^0.3.4", | ||
"@sp-api-sdk/common": "^0.6.2", | ||
"@sp-api-sdk/auth": "^0.4.0", | ||
"@sp-api-sdk/common": "^0.6.3", | ||
"axios": "^0.21.1" | ||
@@ -51,3 +51,3 @@ }, | ||
], | ||
"gitHead": "a9026c9e3fd5deb8af55c47c125c530316e1bf9d" | ||
"gitHead": "85b8f6ce3669697528c2570923155372c450a8cc" | ||
} |
@@ -17,3 +17,30 @@ # `notifications-api-v1` | ||
### With grantless API | ||
```javascript | ||
import {SellingPartnerApiAuth, AuthorizationScope} from '@sp-api-sdk/auth' | ||
import {NotificationsApiClient} from '@sp-api-sdk/notifications-api-v1' | ||
const auth = new SellingPartnerApiAuth({ | ||
clientId: '', | ||
clientSecret: '', | ||
scopes: [AuthorizationScope.NOTIFICATIONS], | ||
secretAccessKey: '', | ||
accessKeyId: '', | ||
region: '', | ||
role: { | ||
arn: '', | ||
} | ||
}) | ||
const client = new NotificationsApiClient({ | ||
auth, | ||
region: 'eu' // or 'eu-west-1' | ||
}) | ||
``` | ||
### With access token | ||
```javascript | ||
import {SellingPartnerApiAuth} from '@sp-api-sdk/auth' | ||
@@ -20,0 +47,0 @@ import {NotificationsApiClient} from '@sp-api-sdk/notifications-api-v1' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
316519
86
- Removed@sp-api-sdk/auth@0.3.4(transitive)
Updated@sp-api-sdk/auth@^0.4.0
Updated@sp-api-sdk/common@^0.6.3