mirror of https://github.com/zulip/zulip.git
api_docs/send-message: Specify request command in curl example.
This commit is related to #11927.
This commit is contained in:
parent
feadc8bf46
commit
19b96b4e0b
|
@ -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" \
|
||||
|
|
Loading…
Reference in New Issue