Fuselage
Get all subscriptions
Get all subscriptions. Please note that the unread counter value depends on your settings at the Administration => General section.
URL
Requires Auth
HTTP Method
/api/v1/subscriptions.get
yes
GET

Query Parameters

Argument
Example
Required
Description
Valid Format(s)
updatedSince
2017-11-25T15:08:17.248Z
Optional
Date and time from which to fetch changes
ISO 8601 datetime. Optional seconds, optional milliseconds, optional timezone, always with colon time separators
When you provide the updatedSince query parameter in the URL then the update and remove in the response will contain only those updated and removed since this date and time.

Example Call to get all of the rooms

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/subscriptions.get?updatedSince=2017-11-25T15:08:17.248Z
Copied!

Example Result

1
{
2
"update": [
3
{
4
"t": "c",
5
"ts": "2017-11-25T15:08:17.249Z",
6
"name": "general",
7
"fname": null,
8
"rid": "GENERAL",
9
"u": {
10
"_id": "EoyAmF4mxx5HxJHJB",
11
"username": "rocket.cat",
12
"name": "Rocket Cat"
13
},
14
"open": true,
15
"alert": true,
16
"unread": 1,
17
"userMentions": 1,
18
"groupMentions": 0,
19
"_updatedAt": "2017-11-25T15:08:17.249Z",
20
"_id": "5ALsG3QhpJfdMpyc8"
21
}
22
],
23
"remove": [],
24
"success": true
25
}
Copied!

Change Log

Version
Description
0.60.0
Added