【发布时间】:2014-05-15 00:17:50
【问题描述】:
我没有在文档中看到它,但我很好奇是否有人知道在 slack 应用程序中以编程方式创建频道的方法。
这是我第一次尝试通过 slackbot 使用斜杠命令,但没有成功。
curl --data "/open test" https://xxxxxxx.slack.com/services/hooks/slackbot\?token\=xxxxxxxxx\&channel\=%23general
【问题讨论】:
我没有在文档中看到它,但我很好奇是否有人知道在 slack 应用程序中以编程方式创建频道的方法。
这是我第一次尝试通过 slackbot 使用斜杠命令,但没有成功。
curl --data "/open test" https://xxxxxxx.slack.com/services/hooks/slackbot\?token\=xxxxxxxxx\&channel\=%23general
【问题讨论】:
您也可以直接使用 API 方法 channels.create 创建新频道。
查看documentation了解更多详情
【讨论】:
您可以使用channels.join 方法通过API 创建频道:https://api.slack.com/methods/channels.join。
This method is used to join a channel. If the channel does not exist, it is created.
希望有帮助!
【讨论】: