Merge pull request #848 from mattermost/plt-488

PLT-488 Update incoming webhooks to hide DMs and accept direct JSON payloads.
Этот коммит содержится в:
Corey Hulen
2015-09-29 11:31:54 -07:00
родитель adfe129fcc ddf8951828
Коммит e937beb51b
7 изменённых файлов: 27 добавлений и 14 удалений

Просмотреть файл

@@ -20,6 +20,11 @@ You can send the message by including a JSON string as the `payload` parameter i
payload={"text": "Hello, this is some text."}
```
In addition, if `Content-Type` is specified as `application/json` in the headers of the HTTP request then the body of the request can be direct JSON.
```
{"text": "Hello, this is some text."}
```
It is also possible to post richly formatted messages using [Markdown](../../help/enduser/markdown.md).
```
payload={"text": "# A Header\nThe _text_ below **the** header."}