File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
Source/FikaAmazonAPI.SampleCode Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -348,6 +348,19 @@ var dataSqs = amazonConnection.Notification.CreateDestination(
348
348
});
349
349
```
350
350
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
+
351
364
### Notifications read messages
352
365
``` CSharp
353
366
Original file line number Diff line number Diff line change @@ -56,7 +56,19 @@ public void CreateDestination()
56
56
Sqs = new AmazonSpApiSDK . Models . Notifications . SqsResource ( "arn:aws:sqs:us-east-2:9999999999999:NAME" )
57
57
}
58
58
} ) ;
59
+ }
60
+
59
61
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
+ } ) ;
60
72
}
61
73
62
74
You can’t perform that action at this time.
0 commit comments