Преглед на файлове

fix wrong json parameter

fixes HTTP 400 Error: "{\"errcode\":\"M_MISSING_PARAM\",\"error\":\"Missing key 'avatar_url'\"}"
pull/885/head
Marcus преди 5 години
committed by GitHub
родител
ревизия
d5f2d99ac7
No known key found for this signature in database GPG ключ ID: 4AEE18F83AFDEB23
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      docs/configuring-playbook-bridge-appservice-webhooks.md

+ 2
- 2
docs/configuring-playbook-bridge-appservice-webhooks.md Целия файл

@@ -45,7 +45,7 @@ matrix_appservice_webhooks_log_level: '<log_level>'
"text": "Hello world!", "text": "Hello world!",
"format": "plain", "format": "plain",
"displayName": "My Cool Webhook", "displayName": "My Cool Webhook",
"avatarUrl": "http://i.imgur.com/IDOBtEJ.png"
"avatar_url": "http://i.imgur.com/IDOBtEJ.png"
} }
``` ```


@@ -57,7 +57,7 @@ curl --header "Content-Type: application/json" \
"text": "Hello world!", "text": "Hello world!",
"format": "plain", "format": "plain",
"displayName": "My Cool Webhook", "displayName": "My Cool Webhook",
"avatarUrl": "http://i.imgur.com/IDOBtEJ.png"
"avatar_url": "http://i.imgur.com/IDOBtEJ.png"
}' \ }' \
<the link you've gotten in 5.> <the link you've gotten in 5.>
``` ```

Зареждане…
Отказ
Запис