mirror of https://github.com/zulip/zulip.git
markdown: Add macro for successful send message JSON response.
The JSON response for when an API call to send a message is successful is the same for both private and stream messages, so these macros may be used again.
This commit is contained in:
parent
b093a861e0
commit
3a90a6be5e
|
@ -115,15 +115,7 @@ client.messages.send({
|
|||
|
||||
#### Example response
|
||||
|
||||
A typical successful JSON response may look like:
|
||||
|
||||
```
|
||||
{
|
||||
'msg':'',
|
||||
'id':134,
|
||||
'result':'success'
|
||||
}
|
||||
```
|
||||
{!successful-api-send-message-json-response.md!}
|
||||
|
||||
A typical failed JSON response for when the recipient's email
|
||||
address is invalid:
|
||||
|
|
|
@ -135,15 +135,7 @@ client.messages.send({
|
|||
|
||||
#### Example response
|
||||
|
||||
A typical successful JSON response may look like:
|
||||
|
||||
```
|
||||
{
|
||||
'msg':'',
|
||||
'id':134,
|
||||
'result':'success'
|
||||
}
|
||||
```
|
||||
{!successful-api-send-message-json-response.md!}
|
||||
|
||||
A typical failed JSON response for when the target stream does not exist:
|
||||
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
A typical successful JSON response may look like:
|
||||
|
||||
```
|
||||
{
|
||||
'msg':'',
|
||||
'id':134,
|
||||
'result':'success'
|
||||
}
|
||||
```
|
Loading…
Reference in New Issue