Cloud Elements currently supports events via polling or webhooks depending on the endpoint.
n
minutes and captures the changed information.If you would like to see more information on our Events framework, please see the Event Management Guide.
Cloud Elements supports polling events for ePages.
In order to enable polling, add these extra configurations to your instance JSON:
"event.notification.enabled": "true",
"event.notification.callback.url": "<INSERT_YOUR_APPS_CALLBACK_URL>",
"event.poller.configuration": "<SEE_BELOW>"
instance JSON with polling events enabled:
{
"element" : {
"key" : "epages"
},
"configuration" : {
"epages.access.token": "<INSERT_EPAGES_ACCESS_TOKEN>",
"base.url": "<INSERT_EPAGES_BASE_URL>",
"event.notification.enabled": "true",
"event.notification.callback.url": "<INSERT_YOUR_APPS_CALLBACK_URL>",
"event.poller.configuration": {
"customers": {
"url": "/hubs/ecommerce/customers",
"idField": "customerId",
"datesConfiguration": {
"updatedDateField": "creationDate",
"updatedDateFormat": "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
"createdDateField": "creationDate",
"createdDateFormat": "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
}
},
"orders": {
"url": "/hubs/ecommerce/orders?where=updatedFrom='${date:yyyy-MM-dd'T'HH:mm:ss.SSS'Z'}'",
"idField": "orderId",
"datesConfiguration": {
"updatedDateField": "creationDate",
"updatedDateFormat": "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
"createdDateField": "creationDate",
"createdDateFormat": "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
}
}
}
},
"tags": [
"<Add_Your_Tag>"
],
"name": "<Insert_Instance_Name>"
}