slapp
Version:
A module for Slack App integrations
83 lines (82 loc) • 2.1 kB
JSON
{
"type": "action",
"body": {
"actions": [{
"name": "answer",
"value": "in"
}],
"callback_id": "in_or_out_callback",
"team": {
"id": "TXXXXXXXX",
"domain": "norrischuck"
},
"channel": {
"id": "DXXXXXXXX",
"name": "directmessage"
},
"user": {
"id": "UXXXXXXXX",
"name": "brad"
},
"action_ts": "1470062914.569030",
"message_ts": "1470062905.000002",
"attachment_id": "1",
"token": "XXXXXXXXXXXXXXX",
"original_message": {
"text": "",
"username": "In or Out",
"bot_id": "B1VL5FJKD",
"attachments": [{
"callback_id": "in_or_out_callback",
"text": "In or Out?",
"id": 1,
"color": "47EEBC",
"actions": [{
"id": "1",
"name": "answer",
"text": "In",
"type": "button",
"value": "in",
"style": "default"
}, {
"id": "2",
"name": "answer",
"text": "Out",
"type": "button",
"value": "out",
"style": "default"
}],
"fallback": "NO FALLBACK DEFINED"
}, {
"callback_id": "in_or_out_callback",
"id": 2,
"actions": [{
"id": "3",
"name": "recycle",
"text": ":recycle:",
"type": "button",
"value": "",
"style": "primary"
}],
"fallback": "NO FALLBACK DEFINED"
}],
"type": "message",
"subtype": "bot_message",
"ts": "1470062905.000002"
},
"response_url": "https://hooks.slack.com/actions/TXXXXXXXX/65070116791/jenjzX5R5MpDHXrCPPZIKulu"
},
"meta": {
"verify_token": "XXXXXXXXXXXXXXX",
"user_id": "UXXXXXXXX",
"channel_id": "DXXXXXXXX",
"team_id": "TXXXXXXXX",
"app_token": "xoxp-XXXXXXXXXXX-XXXXXXXXXXX-XXXXXXXXXXX-XXXXXXXXXXX",
"app_user_id": "UXXXXXXXX",
"bot_token": "xoxb-XXXXXXXXXXX-XXXXXXXXXXXXX",
"bot_user_id": "UXXXXXXXX"
},
"conversation_id": "TXXXXXXXX::DXXXXXXXX::UXXXXXXXX",
"_slapp": null,
"delay": 19919
}