Get a list of User's events
Get a list of user events
Parameter
Accessible via URL http://api.channel.io/open/v3/users/{userId}/events
and HTTP GET
Parameter | Example | Required | Description | Parameter type |
---|---|---|---|---|
userId | 12345 | Required | ID of | Path |
since | 500000 | Optional | Epoch time in microseconds of the first message to be retrieved. | Qeury |
sortOrder | desc (or asc) | Optional | Sorting order. Default value is desc. | Query |
limit | 40 | Optional | Restrict the maximum number of direct chats to be retrieved. It should be between 1 to 100. Default value is 25. | Query |
Example
GET http://api.channel.io/open/v3/users/12345/events?limit=40&since=500000&sortOrder=desc
Response
Returns a set of event along with related information.
{
"events": [
{
"userId": "String",
"id": "String",
"channelId": "String",
"pluginId": "String",
"name": "String",
"property": {
"country": "String",
"os": "String",
"city": "String",
"session": 1584673657000,
"ip": "String",
"browser": "String",
"title": "String",
"device": "String",
"url": "String"
},
"createdAt": 1584673657732,
"expireAt": 1592449657000,
"version": 1
}
]
}
Updated about 2 years ago