Skip to content

Instantly share code, notes, and snippets.

@okash1n
Last active February 16, 2022 14:53
Show Gist options
  • Save okash1n/dbabd5da6e6992e98b29edd93aa28ad9 to your computer and use it in GitHub Desktop.
Save okash1n/dbabd5da6e6992e98b29edd93aa28ad9 to your computer and use it in GitHub Desktop.
スラッシュコマンドのリクエストのサンプル
{
"$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