How do I set a reminder via the Slack API?

对着背影说爱祢 提交于 2020-01-02 03:40:29

问题


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.

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.

Is there a way to set a reminder (or, more generally, use slash commands) programmatically in Slack?


回答1:


It looks like it was added recently to the API: https://api.slack.com/methods/reminders.add




回答2:


Seems that Slack is not supporting this feature because commands are only interpreted when typed in the browser or in the Slack-application. You can maybe workaround this by using a web browser automation tool such as Selenium or a similar tool.



来源:https://stackoverflow.com/questions/34940198/how-do-i-set-a-reminder-via-the-slack-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!