2018-08-07 17:52:03 +02:00
|
|
|
# Get user presence
|
|
|
|
|
2021-01-04 19:36:00 +01:00
|
|
|
{generate_api_description(/users/{user_id_or_email}/presence:get)}
|
2018-08-07 17:52:03 +02:00
|
|
|
|
|
|
|
## Usage examples
|
|
|
|
|
2018-09-17 16:27:32 +02:00
|
|
|
{start_tabs}
|
|
|
|
{tab|python}
|
2018-08-07 17:52:03 +02:00
|
|
|
|
2021-01-04 19:36:00 +01:00
|
|
|
{generate_code_example(python)|/users/{user_id_or_email}/presence:get|example}
|
2018-09-17 16:27:32 +02:00
|
|
|
|
|
|
|
{tab|curl}
|
2018-08-07 17:52:03 +02:00
|
|
|
|
2021-01-04 19:36:00 +01:00
|
|
|
{generate_code_example(curl)|/users/{user_id_or_email}/presence:get|example}
|
2018-08-07 17:52:03 +02:00
|
|
|
|
2018-09-17 16:27:32 +02:00
|
|
|
{end_tabs}
|
2018-08-07 17:52:03 +02:00
|
|
|
|
2020-06-18 15:35:25 +02:00
|
|
|
## Parameters
|
2018-08-07 17:52:03 +02:00
|
|
|
|
2021-01-04 19:36:00 +01:00
|
|
|
{generate_api_arguments_table|zulip.yaml|/users/{user_id_or_email}/presence:get}
|
2018-08-07 17:52:03 +02:00
|
|
|
|
|
|
|
## Response
|
|
|
|
|
|
|
|
#### Return values
|
|
|
|
|
2021-01-04 19:36:00 +01:00
|
|
|
{generate_return_values_table|zulip.yaml|/users/{user_id_or_email}/presence:get}
|
2018-08-07 17:52:03 +02:00
|
|
|
|
|
|
|
#### Example response
|
|
|
|
|
|
|
|
A typical successful JSON response may look like:
|
|
|
|
|
2021-01-04 19:36:00 +01:00
|
|
|
{generate_code_example|/users/{user_id_or_email}/presence:get|fixture(200)}
|