企业微信发送消息API:https://qyapi.weixin.qq.com/cgi-bin/message/send
body参数:{
"touser": "2031",
"toparty": null,
"totag": null,
"msgtype": "interactive_taskcard",
"agentid": 1000140,
"interactive_taskcard": {
"title": "xxx的数据申请",
"description": "数据类型:xx\\n大小:3KB申请原因:wqw",
"url": "https://ad-portal.com.cn",
"task_id": "SP202104260002",
"btn": [
{
"key": "T",
"name": "批准",
"color": "red",
"is_bold": true
},
{
"key": "N",
"name": "驳回",
"color": null,
"is_bold": false
}
]
},
"enable_id_trans": 0,
"enable_duplicate_check": 0,
"duplicate_check_interval": 1800
}
返回:
{
"errcode": 43012,
"errmsg": "require agent with callback url, hint: [1619453547_210_eb90e7d7ba6f399131010599f887f74c], from ip: 180.168.115.166, more info at https://open.work.weixin.qq.com/devtool/query?e=43012"
}
url难道必须要认证通过之后这里才能发消息吗?
你好,发送任务卡片消息是有事件回调的,所以这里应用需要验证url之后才能正常发送任务卡片消息
哪位大佬解决了该问题呢,咋解决的了,可以分享下解决办法么
可以不配url吗?
这个应该是需要在应用里面配置,进入自己创建的应用,在功能中找到接收消息,然后配置,我没有域名,我猜的,没试过,可以供大家作为参考的依据
解决了没