Fuselage
Get Discussions
REST API Get Discussions Methods
Get all the discussions of room. It supports the Offset, Count, and Sort Query Parameters.
URL
Requires Auth
HTTP Method
/api/v1/rooms.getDiscussions
yes
GET

Example Call

1
curl -H "X-Auth-Token: ijFlJ1yfidXhwEYY284Anoq_iEsOeMMVCupzNhX22tB" \
2
-H "X-User-Id: hw5DThnhQmxDWnavu" \
3
-H "Content-type: application/json" \
4
http://localhost:3000/api/v1/rooms.getDiscussions?roomId=GENERAL
Copied!

Example Result

1
{
2
"discussions": [
3
{
4
"_id": "hthLkno5RqTyNna4H",
5
"name": "8BRnQEJQM8MjJWxkJ",
6
"fname": "general discussion",
7
"t": "p",
8
"msgs": 1,
9
"usersCount": 1,
10
"u": {
11
"_id": "rocketchat.internal.admin.test",
12
"username": "rocketchat.internal.admin.test"
13
},
14
"topic": "general",
15
"prid": "GENERAL",
16
"ts": "2019-04-03T01:01:36.286Z",
17
"ro": false,
18
"sysMes": true,
19
"default": false,
20
"_updatedAt": "2019-04-03T01:01:36.402Z",
21
"lastMessage": {
22
"msg": "test",
23
"ts": "2019-04-03T01:01:36.339Z",
24
"u": {
25
"_id": "rocketchat.internal.admin.test",
26
"username": "rocketchat.internal.admin.test",
27
"name": "RocketChat Internal Admin Test"
28
},
29
"rid": "hthLkno5RqTyNna4H",
30
"_id": "LLoaxBR8A7M24Qiji",
31
"_updatedAt": "2019-04-03T01:01:36.368Z",
32
"mentions": [],
33
"channels": []
34
},
35
"lm": "2019-04-03T01:01:36.339Z"
36
}
37
],
38
"count": 1,
39
"offset": 0,
40
"total": 1,
41
"success": true
42
}
Copied!

Change Log

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