Skip to content

Commit 5552e33

Browse files
committed
updated readme and samples
1 parent 396e17c commit 5552e33

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,19 @@ var dataSqs = amazonConnection.Notification.CreateDestination(
348348
});
349349
```
350350

351+
### Notifications Create Subscription, For more Notifications sample please check [Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.Test/Notifications.cs).
352+
```CSharp
353+
354+
//SQS
355+
var result = amazonConnection.Notification.CreateSubscription(
356+
new ParameterCreateSubscription()
357+
{
358+
destinationId = "xxxxxxxxxxxxxxx", // take this from CreateDestination or GetDestinations response
359+
notificationType = NotificationType.ANY_OFFER_CHANGED, // or B2B_ANY_OFFER_CHANGED for B2B prices
360+
payloadVersion = "1.0"
361+
});
362+
```
363+
351364
### Notifications read messages
352365
```CSharp
353366

Source/FikaAmazonAPI.SampleCode/NotificationsSample.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,19 @@ public void CreateDestination()
5656
Sqs = new AmazonSpApiSDK.Models.Notifications.SqsResource("arn:aws:sqs:us-east-2:9999999999999:NAME")
5757
}
5858
});
59+
}
60+
5961

62+
public void CreateSubscription()
63+
{
64+
//SQS
65+
var result = amazonConnection.Notification.CreateSubscription(
66+
new ParameterCreateSubscription()
67+
{
68+
destinationId = "xxxxxxxxxxxxxxx", // take this from CreateDestination or GetDestinations response
69+
notificationType = NotificationType.ANY_OFFER_CHANGED, // or B2B_ANY_OFFER_CHANGED for B2B prices
70+
payloadVersion = "1.0"
71+
});
6072
}
6173

6274

0 commit comments

Comments
 (0)