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:
Eeshan Garg 2017-12-21 22:40:07 -03:30 committed by showell
parent b093a861e0
commit 3a90a6be5e
3 changed files with 11 additions and 18 deletions

View File

@ -115,15 +115,7 @@ client.messages.send({
#### Example response #### Example response
A typical successful JSON response may look like: {!successful-api-send-message-json-response.md!}
```
{
'msg':'',
'id':134,
'result':'success'
}
```
A typical failed JSON response for when the recipient's email A typical failed JSON response for when the recipient's email
address is invalid: address is invalid:

View File

@ -135,15 +135,7 @@ client.messages.send({
#### Example response #### Example response
A typical successful JSON response may look like: {!successful-api-send-message-json-response.md!}
```
{
'msg':'',
'id':134,
'result':'success'
}
```
A typical failed JSON response for when the target stream does not exist: A typical failed JSON response for when the target stream does not exist:

View File

@ -0,0 +1,9 @@
A typical successful JSON response may look like:
```
{
'msg':'',
'id':134,
'result':'success'
}
```