Also, `send_message` example is altered to send a message to the stream 'social' to avoid getting a "first_message_id: null" in the response for `get_subscriptions` example, that caused `validate_against_openapi_schema` to throw an error.
939 B
Get subscribed streams
{generate_api_description(/users/me/subscriptions:get)}
Usage examples
{start_tabs} {tab|python}
{generate_code_example(python)|/users/me/subscriptions:get|example}
{tab|js}
More examples and documentation can be found here.
{generate_code_example(javascript)|/users/me/subscriptions:get|example}
{tab|curl}
{generate_code_example(curl, include=[""])|/users/me/subscriptions:get|example}
You may pass the include_subscribers query parameter as follows:
{generate_code_example(curl)|/users/me/subscriptions:get|example}
{end_tabs}
Parameters
{generate_api_arguments_table|zulip.yaml|/users/me/subscriptions:get}
Response
Return values
{generate_return_values_table|zulip.yaml|/users/me/subscriptions:get}
Example response
A typical successful JSON response may look like:
{generate_code_example|/users/me/subscriptions:get|fixture(200)}