Update incoming webhooks to hide DMs and accept direct JSON payloads.

Этот коммит содержится в:
JoramWilander
2015-09-29 08:38:26 -04:00
родитель 56e31fe496
Коммит a9f5918a9d
5 изменённых файлов: 23 добавлений и 10 удалений

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

@@ -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."}