Skip to content

Instantly share code, notes, and snippets.

@buster95
Last active December 8, 2021 05:53
Show Gist options
  • Save buster95/1ec54266dde824ecc0651fd829e8439e to your computer and use it in GitHub Desktop.
Save buster95/1ec54266dde824ecc0651fd829e8439e to your computer and use it in GitHub Desktop.
SlackBody Examples
{
"token": "2XcC2UGO3SJamwSMSqJqJjTh",
"team_id": "T33D257PC",
"team_domain": "moonshotpartners",
"channel_id": "D02FERQPCBU",
"channel_name": "directmessage",
"user_id": "U02EWSAH7C5",
"user_name": "walter.corrales",
"command": "/go1Walter",
"text": "help",
"api_app_id": "A02F83NDYKY",
"is_enterprise_install": "false",
"response_url": "https://hooks.slack.com/commands/T33D257PC/2810462602341/JmmugHQ4AmqTt7m56wYYfZtz",
"trigger_id": "2806703646262.105444177794.0a9e5bbed2f68b689111cbf49858071b"
}
{
"token": "2XcC2UGO3SJamwSMSqJqJjTh",
"team_id": "T33D257PC",
"api_app_id": "A02F83NDYKY",
"event": {
"type": "app_home_opened",
"user": "U02EWSAH7C5",
"channel": "D02FERQPCBU",
"tab": "home",
"view": {
"id": "V02KK02F4LS",
"team_id": "T33D257PC",
"type": "home",
"blocks": [
{
"type": "section",
"block_id": "aZ9",
"text": {
"type": "mrkdwn",
"text": "*Hello Walter,*",
"verbatim": false
}
},
{
"type": "actions",
"block_id": "UXPJl",
"elements": [
{
"type": "button",
"action_id": "user-settings-modal-opened",
"text": {
"type": "plain_text",
"text": "User settings",
"emoji": true
}
},
{
"type": "button",
"action_id": "app-settings-modal-opened",
"text": {
"type": "plain_text",
"text": "App settings",
"emoji": true
}
}
]
},
{
"type": "section",
"block_id": "wiYb",
"text": {
"type": "mrkdwn",
"text": "*Here are all your in progress learning resources. *",
"verbatim": false
},
"accessory": {
"type": "static_select",
"action_id": "dashboard-status-filter-changed",
"placeholder": {
"type": "plain_text",
"text": "Select an item",
"emoji": true
},
"initial_option": {
"text": {
"type": "plain_text",
"text": "In Progress",
"emoji": true
},
"value": "in-progress"
},
"options": [
{
"text": {
"type": "plain_text",
"text": "Assigned",
"emoji": true
},
"value": "assigned"
},
{
"text": {
"type": "plain_text",
"text": "In Progress",
"emoji": true
},
"value": "in-progress"
},
{
"text": {
"type": "plain_text",
"text": "Completed",
"emoji": true
},
"value": "completed"
}
]
}
},
{
"type": "divider",
"block_id": "xwHeO"
},
{
"type": "section",
"block_id": "tGqyD",
"text": {
"type": "mrkdwn",
"text": "*<https://sunlight.mygo1.com/p/#/app/course-view/13404565/overview|Microsoft Excel 365 - Entering and Editing Data>* \nMi-Crow \n&gt;\nCourse OverviewHow to enter new data into your Excel spreadsheet and how to edit existing data. ",
"verbatim": false
},
"accessory": {
"type": "image",
"image_url": "https://media.go1static.com/image/upload/v1592974651/bqzcmwzcnazvqb0jhvgu.jpg",
"alt_text": "computer thumbnail"
},
"fields": [
{
"type": "mrkdwn",
"text": ":clock3: 2 min",
"verbatim": false
},
{
"type": "mrkdwn",
"text": ":movie_camera: Video",
"verbatim": false
}
]
},
{
"type": "actions",
"block_id": "ON+8",
"elements": [
{
"type": "button",
"action_id": "F1otH",
"text": {
"type": "plain_text",
"text": "Play",
"emoji": true
},
"style": "primary",
"url": "https://sunlight.mygo1.com/play/13404565?exitUrl=https%3A%2F%2Fsunlight.mygo1.com%2Fp%2F%23%2Fapp%2Fdashboard&auto-play=1&recommendations=0&exitAction=2"
},
{
"type": "button",
"action_id": "share-course-modal-opened",
"text": {
"type": "plain_text",
"text": "Share",
"emoji": true
},
"value": "13404565"
},
{
"type": "overflow",
"action_id": "learning-object-overflow-option-selected",
"options": [
{
"text": {
"type": "plain_text",
"text": "Set reminder",
"emoji": true
},
"value": "reminder-modal-opened:13404565"
}
]
}
]
},
{
"type": "divider",
"block_id": "=m5=T"
}
],
"private_metadata": "",
"callback_id": "",
"state": {
"values": {
"wiYb": {
"dashboard-status-filter-changed": {
"type": "static_select",
"selected_option": {
"text": {
"type": "plain_text",
"text": "In Progress",
"emoji": true
},
"value": "in-progress"
}
}
}
}
},
"hash": "1638935301.CPBXw03F",
"title": {
"type": "plain_text",
"text": "View Title",
"emoji": true
},
"clear_on_close": false,
"notify_on_close": false,
"close": null,
"submit": null,
"previous_view_id": null,
"root_view_id": "V02KK02F4LS",
"app_id": "A02F83NDYKY",
"external_id": "",
"app_installed_team_id": "T33D257PC",
"bot_id": "B02FERKT4HY"
},
"event_ts": "1638941660.036331"
},
"type": "event_callback",
"event_id": "Ev02QA1146KT",
"event_time": 1638941660,
"authorizations": [
{
"enterprise_id": null,
"team_id": "T33D257PC",
"user_id": "U02F04JFVHV",
"is_bot": true,
"is_enterprise_install": false
}
],
"is_ext_shared_channel": false
}
{
"payload": {
"type": "block_actions",
"user": {
"id": "U02EWSAH7C5",
"username": "walter.corrales",
"name": "walter.corrales",
"team_id": "T33D257PC"
},
"api_app_id": "A02F83NDYKY",
"token": "2XcC2UGO3SJamwSMSqJqJjTh",
"container": {
"type": "view",
"view_id": "V02KK02F4LS"
},
"trigger_id": "2806500892950.105444177794.729ff3cbd78a4783eade45c7b85c8690",
"team": {
"id": "T33D257PC",
"domain": "moonshotpartners"
},
"enterprise": null,
"is_enterprise_install": false,
"view": {
"id": "V02KK02F4LS",
"team_id": "T33D257PC",
"type": "home",
"blocks": [
{
"type": "section",
"block_id": "aZ9",
"text": {
"type": "mrkdwn",
"text": "*Hello Walter,*",
"verbatim": false
}
},
{
"type": "actions",
"block_id": "UXPJl",
"elements": [
{
"type": "button",
"action_id": "user-settings-modal-opened",
"text": {
"type": "plain_text",
"text": "User settings",
"emoji": true
}
},
{
"type": "button",
"action_id": "app-settings-modal-opened",
"text": {
"type": "plain_text",
"text": "App settings",
"emoji": true
}
}
]
},
{
"type": "section",
"block_id": "wiYb",
"text": {
"type": "mrkdwn",
"text": "*Here are all your in progress learning resources. *",
"verbatim": false
},
"accessory": {
"type": "static_select",
"action_id": "dashboard-status-filter-changed",
"placeholder": {
"type": "plain_text",
"text": "Select an item",
"emoji": true
},
"initial_option": {
"text": {
"type": "plain_text",
"text": "In Progress",
"emoji": true
},
"value": "in-progress"
},
"options": [
{
"text": {
"type": "plain_text",
"text": "Assigned",
"emoji": true
},
"value": "assigned"
},
{
"text": {
"type": "plain_text",
"text": "In Progress",
"emoji": true
},
"value": "in-progress"
},
{
"text": {
"type": "plain_text",
"text": "Completed",
"emoji": true
},
"value": "completed"
}
]
}
},
{
"type": "divider",
"block_id": "xwHeO"
},
{
"type": "section",
"block_id": "tGqyD",
"text": {
"type": "mrkdwn",
"text": "*<https://sunlight.mygo1.com/p/#/app/course-view/13404565/overview|Microsoft Excel 365 - Entering and Editing Data>* \nMi-Crow \n&gt;\nCourse OverviewHow to enter new data into your Excel spreadsheet and how to edit existing data. ",
"verbatim": false
},
"accessory": {
"type": "image",
"image_url": "https://media.go1static.com/image/upload/v1592974651/bqzcmwzcnazvqb0jhvgu.jpg",
"alt_text": "computer thumbnail"
},
"fields": [
{
"type": "mrkdwn",
"text": ":clock3: 2 min",
"verbatim": false
},
{
"type": "mrkdwn",
"text": ":movie_camera: Video",
"verbatim": false
}
]
},
{
"type": "actions",
"block_id": "ON+8",
"elements": [
{
"type": "button",
"action_id": "F1otH",
"text": {
"type": "plain_text",
"text": "Play",
"emoji": true
},
"style": "primary",
"url": "https://sunlight.mygo1.com/play/13404565?exitUrl=https%3A%2F%2Fsunlight.mygo1.com%2Fp%2F%23%2Fapp%2Fdashboard&auto-play=1&recommendations=0&exitAction=2"
},
{
"type": "button",
"action_id": "share-course-modal-opened",
"text": {
"type": "plain_text",
"text": "Share",
"emoji": true
},
"value": "13404565"
},
{
"type": "overflow",
"action_id": "learning-object-overflow-option-selected",
"options": [
{
"text": {
"type": "plain_text",
"text": "Set reminder",
"emoji": true
},
"value": "reminder-modal-opened:13404565"
}
]
}
]
},
{
"type": "divider",
"block_id": "=m5=T"
}
],
"private_metadata": "",
"callback_id": "",
"state": {
"values": {
"wiYb": {
"dashboard-status-filter-changed": {
"type": "static_select",
"selected_option": {
"text": {
"type": "plain_text",
"text": "In Progress",
"emoji": true
},
"value": "in-progress"
}
}
}
}
},
"hash": "1638935301.CPBXw03F",
"title": {
"type": "plain_text",
"text": "View Title",
"emoji": true
},
"clear_on_close": false,
"notify_on_close": false,
"close": null,
"submit": null,
"previous_view_id": null,
"root_view_id": "V02KK02F4LS",
"app_id": "A02F83NDYKY",
"external_id": "",
"app_installed_team_id": "T33D257PC",
"bot_id": "B02FERKT4HY"
},
"actions": [
{
"action_id": "app-settings-modal-opened",
"block_id": "UXPJl",
"text": {
"type": "plain_text",
"text": "App settings",
"emoji": true
},
"type": "button",
"action_ts": "1638935709.802724"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment