Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Latest commit

 

History

History
32 lines (30 loc) · 773 Bytes

slack.md

File metadata and controls

32 lines (30 loc) · 773 Bytes

Slack

[
    {
        "method": "POST",
        "path": "/slack",
        "command": "echo New message from $USER: $MESSAGE",
        "validate": [
            {
                "source": "jsonBody",
                "find": "payload.token",
                "match": "exactly",
                "value": "W062f8ewla1QPPayTpYc3aqp"
            }
        ],
        "parseJson": [
            {
                "query": "payload.user_name",
                "variable": "USER"
            },
            {
                "query": "payload.text",
                "variable": "MESSAGE"
            }
        ]
    }
]