- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
I'm using SP-API to create notification messages whenever a product's offer changes (notification type: ANY_OFFER_CHANGED).
It is working because I can see messages when I go to Amazon SQS --> Queues and I can see a bunch of messages available.
My question: What function in the API do we call in our application in order to actually get and enumerate through the messages?
Calling getDestination() or getSubscription() only seem to return ID's in the payload, but I don't know what function to call in order to enumerate through all these messages sitting in the Queue.
Our goal is to call our application every few minutes to process messages and update the prices of our products based on these notification messages in the queue. I just need someone to point me on what API function is used to retrieve these messages.
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata 3 anni fa
i think you should refer this guide:
https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide#tutorial-set-up-notifications-amazon-simple-queue-service-workflow
its a bit confusing :
the tutorial you used is only for those notifications:
BRANDED_ITEM_CONTENT_CHANGE: Sent whenever there is a change to the title, description, bullet points, or images, for any ASIN that the selling partner has a brand relationship with.
ITEM_PRODUCT_TYPE_CHANGE: LISTINGS_ITEM_STATUS_CHANGE: LISTINGS_ITEM_ISSUES_CHANGE: PRODUCT_TYPE_DEFINITIONS_CHANGE: ...
"If you want to receive any other notification type, skip this tutorial and go to Tutorial: Set up notifications (Amazon Simple Queue Service workflow)."
@ao-2040 Thank you for your answer. We already using the Tutorial: Set up notifications guide but the queue is still not working