Last active
February 16, 2022 14:53
-
-
Save okash1n/dbabd5da6e6992e98b29edd93aa28ad9 to your computer and use it in GitHub Desktop.
スラッシュコマンドのリクエストのサンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$content-type": "application/x-www-form-urlencoded", | |
"$content": "*****************", | |
"$formdata": [ | |
{ | |
"key": "token", | |
"value": "*****************" | |
}, | |
{ | |
"key": "team_id", | |
"value": "T0********" | |
}, | |
{ | |
"key": "team_domain", | |
"value": "*******" | |
}, | |
{ | |
"key": "channel_id", | |
"value": "[実行したチャンネルのID]" | |
}, | |
{ | |
"key": "channel_name", | |
"value": "channel-name" | |
}, | |
{ | |
"key": "user_id", | |
"value": "[実行したユーザーのID]" | |
}, | |
{ | |
"key": "user_name", | |
"value": "[実行したユーザーのユーザー名]" | |
}, | |
{ | |
"key": "command", | |
"value": "/renamechan" | |
}, | |
{ | |
"key": "text", | |
"value": "[スラッシュコマンドの引数(スペース区切り)]" | |
}, | |
{ | |
"key": "api_app_id", | |
"value": "[実行したアプリのID]" | |
}, | |
{ | |
"key": "is_enterprise_install", | |
"value": "false" | |
}, | |
{ | |
"key": "response_url", | |
"value": "https://hooks.slack.com/commands/****************" | |
}, | |
{ | |
"key": "trigger_id", | |
"value": "********************" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment