This request returns the list of event threads for the current user starting with the most recent one. Each thread can contain a number of events. The last event is included in the response for each thread.
Content-Type: application/json
App-Id: {app_id}
Name | Type | Description |
---|---|---|
cursor | string | Allows you to filter out all threads more recent than the
cursor
(e.g. for paging). If omitted, the most recent threads are returned. |
count | int | Defines the number of threads to be returned. If omitted, all matching threads are returned. |
Error | Type | Description |
---|---|---|
200 | http | Everything is OK |
400 | http | Invalid request |
401 | http | Authorization token missing |
403 | http | Not logged in |
Name | Type | Description |
---|---|---|
cursor | string | Value that can be used in the next request for paging. |
threads | array | List of event threads. |
Name | Type | Description |
---|---|---|
name | string | Thread identifier. |
when_modified | int | Timestamp of the last modification of thread. |
last_message | object | Last event in the thread. |
last_message_user_info | object | The other user involved in the last event in the thread. |
Name | Type | Description |
---|---|---|
name | string | The name of the other user (if any). |
avatar_uri | string | URI of the other user's avatar (if exists). |
{
"payload": {
"cursor": "1.5282059138507648e+18",
"threads": [
{
"name": "76e0d5ba-b97d-43d0-87b2-72f15f8a0ab3:",
"when_modified": 1528369952906469632,
"last_message": {
"msg_id": 1528369952906469706,
"user_id": "76e0d5ba-b97d-43d0-87b2-72f15f8a0ab3",
"vatoms": [
"13895c64-c805-4722-9002-c67307f94cab"
],
"templ_vars": [
"vatomic.prototyping::3D-Object::Key"
],
"msg": "You dropped a <b>Secret Key</b> vAtom onto the map.",
"action_name": "Drop",
"when_created": "2018-06-07T11:12:32Z",
"triggered_by": "",
"generic": [
{
"name": "ActivatedImage",
"resourceType": "ResourceTypes::Image::JPEG",
"value": {
"resourceValueType": "ResourceValueType::URI",
"value": "https://cdndev.blockv.net/vatomic.prototyping/vatomic.prototyping::v1::vAtom::3D-Object/key_card.jpg"
}
}
],
"geo_pos": [
17.0333,
51.1
],
"to_data_lake": true,
"no_message": false
},
"last_message_user_info": {
"name": "",
"avatar_uri": ""
}
},
{
"name": "76e0d5ba-b97d-43d0-87b2-72f15f8a0ab3:715e0e66-3b18-4719-a927-3e06221ef95b",
"when_modified": 1528205913850764800,
"last_message": {
"msg_id": 1528205913850764839,
"user_id": "76e0d5ba-b97d-43d0-87b2-72f15f8a0ab3",
"vatoms": [
"024d5819-ee39-43d1-80b7-d68d711cf537"
],
"templ_vars": [
"vatomic.prototyping::v1::vAtom::MSFolder1::Var1"
],
"msg": "<b>vAtomic Demo</b> sent you a <b>Hello my published vAtom</b> vAtom.",
"action_name": "Transfer",
"when_created": "2018-06-05T13:38:33Z",
"triggered_by": "715e0e66-3b18-4719-a927-3e06221ef95b",
"generic": [
{
"name": "ActivatedImage",
"resourceType": "ResourceTypes::Image::JPEG",
"value": {
"resourceValueType": "ResourceValueType::URI",
"value": "http://philgons.com/wp-content/uploads/file-folder.jpg"
}
}
],
"geo_pos": [
17.0333,
51.1
],
"to_data_lake": false,
"no_message": false
},
"last_message_user_info": {
"name": "vAtomic Demo",
"avatar_uri": "https://cdndev.blockv.net/blockv/avatars/715e0e66-3b18-4719-a927-3e06221ef95b.1477297291330222019"
}
}
]
}
}