Reference
Fuselage
Get all the mentions of a channel
URL
Requires Auth
HTTP Method
/api/v1/channels.getAllUserMentionsByChannel
yes
GET

Query Parameters

Argument
Example
Required
Description
roomId
ByehQjC44FwMeiLbX
Required
The channel's id

Example Call

1
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
2
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
3
http://localhost:3000/api/v1/channels.getAllUserMentionsByChannel?roomId=ByehQjC44FwMeiLbX
Copied!

Example Result

1
{
2
"mentions": [
3
{
4
"_id": "Gptx3mc6TjSv5tLWb",
5
"rid": "GENERAL",
6
"msg": "@rocket.cat",
7
"ts": "2018-03-12T14:59:14.166Z",
8
"u": {
9
"_id": "47cRd58HnWwpqxhaZ",
10
"username": "test",
11
"name": "test"
12
},
13
"mentions": [
14
{
15
"_id": "47cRd58HnWwpqxhaZ",
16
"username": "rocket.cat"
17
}
18
],
19
"channels": [],
20
"_updatedAt": "2018-03-12T14:59:14.171Z"
21
},
22
{
23
"_id": "rwerwfjuii6TjSv5tLWb",
24
"rid": "GENERAL",
25
"msg": "@rocket.cat",
26
"ts": "2018-03-12T14:59:14.166Z",
27
"u": {
28
"_id": "47cRd58HnWwpqxhaZ",
29
"username": "test",
30
"name": "test"
31
},
32
"mentions": [
33
{
34
"_id": "47cRd58HnWwpqxhaZ",
35
"username": "rocket.cat"
36
}
37
],
38
"channels": [],
39
"_updatedAt": "2018-03-12T14:59:14.171Z"
40
}
41
],
42
"count": 2,
43
"offset": 10,
44
"total": 2,
45
"success": true
46
}
Copied!

Change Log

Version
Description
0.63.0
Added
Last modified 8mo ago
Export as PDF
Copy link
Edit on GitHub