[Bonus] Streaming Events via API
4min
In this exercise we will use a streaming connection to ingest XDM-formatted JSON records in real-time to the Adobe Experience Platform.
We will use Postman to send these events to the Streaming endpoint.
In our example, we will send a product purchase event to the dataset Demo System - Event Dataset for POS (Global v1.1)
- Open Postman and expand the Collection.
- Select the POST request Sending Events via Streaming API
- Click on Body to see the JSON payload we are sending.
You will see that the payload is in the XDM format as defined by the Schema. We've included:
- The product list items array to give context to which product has been viewed.
- The timestamp which specifies when the product view event occured.
- The event type which is recognised as the product view event in AEP.
- The _id which is the unique ID of the event.
- The Schema and Dataset IDs for where we want to send the data.
The full payload:
- Click Send to execute this request and send the event to the Experience Platform.
- You will see a response with status 200 OK if the event has been received successfully.
You can now check the Dataset Activity UI to see if your event has been ingested successfully.
- Navigate to Datasets from the main left hand navigation.
- Click the dataset Demo System - Event Dataset for POS (Global v1.1).
- Look in the recent batches for successfully ingested records.
- Select Preview Dataset to see what data has been ingested, look for your product view event.
With this, you’ve now successfully ingested product view events to Adobe Experience Platform via the Streaming API!
Updated 18 Jan 2024
Did this page help you?