2018-06-01 18:58:07 +02:00
|
|
|
# Get topics in a stream
|
|
|
|
|
2020-04-28 20:00:46 +02:00
|
|
|
{generate_api_description(/users/me/{stream_id}/topics:get)}
|
2018-06-01 18:58:07 +02:00
|
|
|
|
|
|
|
## Usage examples
|
|
|
|
|
2018-09-17 16:27:32 +02:00
|
|
|
{start_tabs}
|
|
|
|
{tab|python}
|
2018-06-01 18:58:07 +02:00
|
|
|
|
|
|
|
{generate_code_example(python)|/users/me/{stream_id}/topics:get|example}
|
|
|
|
|
2018-09-17 16:27:32 +02:00
|
|
|
{tab|js}
|
2018-06-01 18:58:07 +02:00
|
|
|
|
|
|
|
More examples and documentation can be found [here](https://github.com/zulip/zulip-js).
|
|
|
|
|
2020-06-21 22:32:42 +02:00
|
|
|
{generate_code_example(javascript)|/users/me/{stream_id}/topics:get|example}
|
2018-06-01 18:58:07 +02:00
|
|
|
|
2018-09-17 16:27:32 +02:00
|
|
|
{tab|curl}
|
|
|
|
|
2019-10-11 13:16:53 +02:00
|
|
|
{generate_code_example(curl)|/users/me/{stream_id}/topics:get|example}
|
2018-06-01 18:58:07 +02:00
|
|
|
|
2018-09-17 16:27:32 +02:00
|
|
|
{end_tabs}
|
2018-06-01 18:58:07 +02:00
|
|
|
|
2020-06-18 15:35:25 +02:00
|
|
|
## Parameters
|
2018-06-01 18:58:07 +02:00
|
|
|
|
|
|
|
{generate_api_arguments_table|zulip.yaml|/users/me/{stream_id}/topics:get}
|
|
|
|
|
|
|
|
## Response
|
|
|
|
|
|
|
|
#### Return values
|
|
|
|
|
2020-05-20 11:57:57 +02:00
|
|
|
{generate_return_values_table|zulip.yaml|/users/me/{stream_id}/topics:get}
|
2018-06-01 18:58:07 +02:00
|
|
|
|
|
|
|
#### Example response
|
|
|
|
|
|
|
|
A typical successful JSON response may look like:
|
|
|
|
|
|
|
|
{generate_code_example|/users/me/{stream_id}/topics:get|fixture(200)}
|
|
|
|
|
|
|
|
An example JSON response for when the user is attempting to fetch the topics
|
|
|
|
of a non-existing stream (or also a private stream they don't have access to):
|
|
|
|
|
|
|
|
{generate_code_example|/users/me/{stream_id}/topics:get|fixture(400)}
|