Skip to content

messages are coming in as raw JSON #100

@lgwapnitsky

Description

@lgwapnitsky
root@matrix:~# curl -X POST -H "Content-Type: application/json" -d '{
  "text": "Hello world!",
  "format": "plain",
  "displayName": "My Cool Webhook",
  "avatarUrl": "http://i.imgur.com/IDOBtEJ.png"
}'  http://matrix.wapnet.local.lan:9000/api/v1/matrix/hook/qIahB0Cv68TbpC5nB0TFHZVfedguJODbizbdLSUXq5DsG9MDJviNKyD5vRFU8EgI
{"success":true,"queued":true}root@matrix:~# curl -X POST -H "Content-Type: application/json" -d '{
  "text": "Hello world!",
  "format": "plain",
  "displayName": "My Cool Webhook",
  "avatarUrl": "http://i.imgur.com/IDOBtEJ.png"
}'  http://matrix.wapnet.local.lan:9000/api/v1/matrix/hook/qIahB0Cv68TbpC5nB0TFHZVfedguJODbizbdLSUXq5DsG9MDJviNKyD5vRFU8EgI

result:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions