View User events
View User events
GET
https://api.ocamba.com/v1/hood/users/{id}/events
Retrieves the details of a User for his events if a valid identifier was provided
Rate limits:
Burst: 10/s
Steady: 150/m
Path parameters
parametersQuery parameters
parametersResponse schemas
›
200
application/json
GET https://api.ocamba.com/v1/hood/users/{id}/events HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
curl -X GET "https://api.ocamba.com/v1/hood/users/{id}/events" \
-H "Authorization: Bearer $TOKEN"
fetch("https://api.ocamba.com/v1/hood/users/{id}/events", {
method: "GET",
headers: { Authorization: `Bearer ${TOKEN}` }
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/v1/hood/users/{id}/events");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer $token"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
Responses
200 OK
HTTP/1.1 200 OK
Content-Type: application/json
{
"total": 17,
"items": [
{
"client_id": "1642145067288515000",
"company_id": "1200000",
"event_time": "2021-10-30 14:27:26",
"event_date": "2021-10-30",
"page_url": "https://dev.delsystems.net/",
"page_ref_url": "https://dev.delsystems.net/solutions/business-intelligence.htm?2",
"new_session": "1",
"event_per_session_serial": "1",
"event": "impression",
"traffic_source_type": "link"
}
]
}
Responses
Tip
1
Sortable field is event_time.