mirror of
https://github.com/zulip/zulip.git
synced 2026-06-21 21:32:29 +08:00
docs: Make get-subscribed-streams use curl example system.
This commit is contained in:
parent
9442422da1
commit
94d31e9d4f
@ -32,17 +32,11 @@ zulip(config).then((client) => {
|
||||
|
||||
{tab|curl}
|
||||
|
||||
``` curl
|
||||
curl -X GET {{ api_url }}/v1/users/me/subscriptions \
|
||||
-u BOT_EMAIL_ADDRESS:BOT_API_KEY
|
||||
```
|
||||
{generate_code_example(curl, include=[""])|/users/me/subscriptions:get|example}
|
||||
|
||||
You may pass the `include_subscribers` query parameter as follows:
|
||||
|
||||
``` curl
|
||||
curl -X GET {{ api_url }}/v1/users/me/subscriptions?include_subscribers=true \
|
||||
-u BOT_EMAIL_ADDRESS:BOT_API_KEY
|
||||
```
|
||||
{generate_code_example(curl)|/users/me/subscriptions:get|example}
|
||||
|
||||
{end_tabs}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user