群发消息(每天每人一次)
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
uuid | 是 | String | 每个实例的唯一标识,根据uuid操作具体企业微信 |
vids | 是 | long | 要发送的人或者群idid |
isroom | 是 | bool | 是否是群消息 |
请求示例
{"uuid":"xxxxxxxx","vids": ["1688851883777952"// 群id或者好友id 不能混填], "isroom": false, //是否发送给群 true是 false否"msg_list": [{"type": 0, "content": "群发消息[微笑]"}, {"type": 14, "aeskey": "63636533323765343938636532633264", "cdnkey": "30819202010204818a3081870201000204ea44290002030f55cb0204e2a91e6f0204643d4475044c4e45574944315f65613434323930306532613931653666363433xx981d4320d0c4af27774c2d6de31781e90201010201000400", "fileSize": 24389, "md5": "981d4320d0c4af27774c2d6de31781e9"}, {"type": 13, "url": "https://www.baidu.com/?tn=02003390_10_hao_pg", "title": "百度一下,你就知道", "content": "全球领先的中文搜索引擎、致力于让网民更便捷地获取信息,找到所求。百度超过千亿的中文网页数据库,可以瞬间找到相关的搜索结果。", "headImg": "https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/topnav/newfanyi-da0cea8f7e.png"}, {"type": 78, "title": "测试标题", "desc": "测试简介", "weappIconUrl": "http://mmbiz.qpic.cn/mmbiz_png/BMAjdIR5qwChFiaRnxUTiadJicGwMpqchXVdfQQ67tHTzfgd0gkibupgeOKtHtyE9m9SZopHXxcpsSicWxzLKXwk0qA/640?wx_fmt=png&wxfrom=200", "appid": "wx45dff5234240ad90", "username": "gh_c4a2a98a7366@app", "pagepath": "pages/train/index/index.html", "cdnkey": "30819202010204818a30818702xx981d4320d0c4af27774c2d6de31781e90201010201000400", "md5": "981d4320d0c4af27774c2d6de31781e9", "aeskey": "63636533323765343938636532633264", "fileSize": 24389}, {"type": 15, "fileName": "7014419642333305662.MP4", "aeskey": "31343031353436666630396132346638", "cdnkey": "30819302010204818b30818802010xx3b9399f4489989e2bb886fe35fce4df40201050201000400", "fileSize": 753510, "md5": "3b9399f4489989e2bb886fe35fce4df4"}, {"type": 23, "aeskey": "39616335386438356162623034623038", "VideoDuration": 5, "cdnkey": "30690201020462306002010xx393746383402010002030b7f7004103b9399f4489989e2bb886fe35fce4df40201040201000400", "fileSize": 753510}]
}
返回示例
{"data": {"msg_id": 1066230},"errcode": 0,"errmsg": "ok"
}
支持语言
c# python java .net js go c++ 等主流语言
测试地址及文档获取
string wechat = "lxllxllxl567";