如何通过 Slack API 设置提醒? [英] How do I set a reminder via the Slack API?
问题描述
我希望能够在 /remind 斜杠命令的消息rel="nofollow">Slack 通过 API(可能使用 传入 webhook或网络 API.
I'd like to be able to create messages that use the /remind
slash command in Slack via an API (probably either with an incoming webhook or the web API.
然而,当我通过 Web API 发布消息时,该命令就像一条常规"消息一样,例如,/remind me in 1 month to follow the Boss
-它不会触发实际的提醒.
When I post a message via the web API, however, the command just comes through like a "regular" message, for example, /remind me in 1 month to follow up with the Boss
— it doesn't trigger an actual reminder.
有没有办法在 Slack 中以编程方式设置提醒(或更一般地,使用斜杠命令)?
Is there a way to set a reminder (or, more generally, use slash commands) programmatically in Slack?
推荐答案
看起来它是最近添加到 API 中的:https://api.slack.com/methods/reminders.add
It looks like it was added recently to the API: https://api.slack.com/methods/reminders.add
这篇关于如何通过 Slack API 设置提醒?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!