api_docs/send-message: Specify request command in curl example.

This commit is related to #11927.
This commit is contained in:
sameerchoubey 2019-03-27 00:58:58 +05:30 committed by Eeshan Garg
parent feadc8bf46
commit 19b96b4e0b
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ zulip(config).then((client) => {
```
# For stream messages
curl {{ api_url }}/v1/messages \
curl -X POST {{ api_url }}/v1/messages \
-u BOT_EMAIL_ADDRESS:BOT_API_KEY \
-d "type=stream" \
-d "to=Denmark" \
@ -61,7 +61,7 @@ curl {{ api_url }}/v1/messages \
-d $"content=I come not, friends, to steal away your hearts."
# For private messages
curl {{ api_url }}/v1/messages \
curl -X POST {{ api_url }}/v1/messages \
-u BOT_EMAIL_ADDRESS:BOT_API_KEY \
-d "type=private" \
-d "to=hamlet@example.com" \