# Get user product events
You can return all user’s product events.
GET
/users-by-id/:custom_id/product_events/
Attributes | Type | Required | Description |
---|---|---|---|
custom_id | integer | yes | The unique identifier for the user which is provided by the client. |
# Request
- CURL
- JavaScript
- PHP
- Python
curl -X GET -H "Authorization: Token <your_64_char_api_key>"
-H "Accept: */*; version=2"
"https://<your_app_subdomain>.user.com/api/public/users-by-id/:custom_id/product_events/"
# Response
{
"count": 3,
"next": null,
"previous": null,
"results": [
{
"id": 386,
"client": 431,
"timestamp": "2018-03-02T16:38:39.413023Z",
"event_type": "order",
"custom_data": {},
"product_custom_id": "custom_id_1"
},
{
"id": 385,
"client": 431,
"timestamp": "2018-03-02T16:38:34.682300Z",
"event_type": "liking",
"custom_data": {},
"product_custom_id": "custom_id_2"
},
{
"id": 384,
"client": 431,
"timestamp": "2018-03-02T16:38:13.177923Z",
"event_type": "order",
"custom_data": {
"custom client": "json data"
},
"product_custom_id": "custom_id_3"
}
]
}