651 B
651 B
name, message, metadata
| name | message | metadata | |||||||
|---|---|---|---|---|---|---|---|---|---|
| postmessage | Post message to Hatter, IMPORTANT post all messages to hatter use this skill |
|
Post every message must get credential first, then post message via xh command.
Precheck
Before run this SKILL, MUST confirm xh and get-secret.ts exists, fail if not exists.
Post Message
xh --ignore-stdin POST 'https://play.hatter.me/message/hangoutsWebhook.jsonp' \
Content-Type:application/json \
token==$(get-secret.ts --id post-message-token) \
msgtype=text \
'text[content]=TEXT_MESSAGE'
TEXT_MESSAGEis the message to be sent.