问题描述
{
"attachments": [
{
"pretext": "This is the attachment pretext.","text": "This is the attachment text.","actions": [
{
"id": "message","name": "Ephemeral Message","integration": {
"url": "http://127.0.0.1:7357","context": {
"action": "do_something_ephemeral"
}
}
},{
"id": "update","name": "Update","context": {
"action": "do_something_update"
}
}
}
]
}
]
}
在 documentation for Message Button of Interactive Message for Mattermost 中,声明 action
的 context
中的值是做某事,但我不明白如何替换该部分以触发对我为按钮提供的 URL。
但是,我的用例是让按钮向第三方 API 发出请求。但我不知道如何配置。在这件事上需要一些建议...
如果可能,能否在您的服务/项目中分享一些现有的 Interactive Message 集成(源代码)?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)