From b68b566711f05d3665d026686305584dd0c65dec Mon Sep 17 00:00:00 2001 From: Vishnu Ks Date: Fri, 11 Oct 2019 12:51:18 +0000 Subject: [PATCH] docs: Make get-all-users use curl example system. --- templates/zerver/api/get-all-users.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/templates/zerver/api/get-all-users.md b/templates/zerver/api/get-all-users.md index d58e41e658..aa22bd0a92 100644 --- a/templates/zerver/api/get-all-users.md +++ b/templates/zerver/api/get-all-users.md @@ -33,16 +33,11 @@ zulip(config).then((client) => { {tab|curl} -``` curl -curl -X GET {{ api_url }}/v1/users -u BOT_EMAIL_ADDRESS:BOT_API_KEY -``` +{generate_code_example(curl, include=[""])|/users:get|example} You may pass the `client_gravatar` query parameter as follows: -``` curl -curl -X GET {{ api_url }}/v1/users?client_gravatar=true \ - -u BOT_EMAIL_ADDRESS:BOT_API_KEY -``` +{generate_code_example(curl)|/users:get|example} {end_tabs}