Get presence of all users
GET https://zulip.hiskp.uni-bonn.de/api/v1/realm/presence
Get the presence information of all the users in an organization.
See Zulip's developer documentation
for details on the data model for presence in Zulip.
Usage examples
#!/usr/bin/env python3
import zulip
# Pass the path to your zuliprc file here.
client = zulip.Client(config_file="~/zuliprc")
# Get presence information of all the users in an organization.
result = client.get_realm_presence()
print(result)
curl -sSX GET -G https://zulip.hiskp.uni-bonn.de/api/v1/realm/presence \
-u BOT_EMAIL_ADDRESS:BOT_API_KEY
Parameters
This endpoint does not accept any parameters.
Response
Return values
Example response(s)
A typical successful JSON response may look like:
{
"msg": "",
"presences": {
"iago@zulip.com": {
"ZulipPython": {
"client": "ZulipPython",
"pushable": false,
"status": "active",
"timestamp": 1656958485
},
"aggregated": {
"client": "ZulipPython",
"status": "active",
"timestamp": 1656958485
}
}
},
"result": "success",
"server_timestamp": 1656958539.6287155
}