Fuselage
Get Snippeted Messages
Retrieve snippeted messages. It supports the Offset, Count, and Sort Query Parameters.
URL
Requires Auth
HTTP Method
/api/v1/chat.getSnippetedMessages
yes
GET

Query Parameters

Argument
Example
Required
Description
roomId
ByehQjC44FwMeiLbX
Required
The room id

Example Call

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

Example Result

1
{
2
"messages": [
3
{
4
"_id": "QQuPFFcLmsqHWeqhn",
5
"rid": "GENERAL",
6
"msg": "``````\ntest\n``````",
7
"ts": "2019-10-25T21:42:39.022Z",
8
"u": {
9
"_id": "CaevAPDbXN252kyXa",
10
"username": "marcos.defendi",
11
"name": "Marcos Defendi"
12
},
13
"_updatedAt": "2019-10-25T22:54:02.094Z",
14
"mentions": [],
15
"channels": [],
16
"snippetName": "ee",
17
"snippeted": true,
18
"snippetedBy": {
19
"_id": "CaevAPDbXN252kyXa",
20
"username": "marcos.defendi"
21
}
22
}
23
],
24
"count": 1,
25
"offset": 0,
26
"total": 1,
27
"success": true
28
}
Copied!

Change Log

Version
Description
2.3.0
Added
Export as PDF
Copy link
Edit on GitHub