百家号私信消息读取接口分享

首页 / 网站建设 / 正文

有在开发百家号程序的大佬可以带带小弟,目前百家号关闭了开发者接口,想要自动化要抓接口。

最近消息列表(未读和已读都有,通过参数区分)
https://baijiahao.baidu.com/pcui/im/getRecentMsgList
text:消息内容
该用户几条未读:n
name:用户名
to_uk:用户uk(后期做自动回复用的到)

总共未读消息条数:
https://baijiahao.baidu.com/pcui/message/getUnreadNum
im:私信未读条数

百度私信协议地址:
wss://commonws-lcs.baidu.com/ws

百家号所有私信详细读取:
https://baijiahao.baidu.com/pcui/im/fansChatList?pn=页码&rn=10&need_top=0&end_time=结束时间(updated_at最后一个值减1得出下一页结束时间)

百家号验证两个参数:
bduss:xxxxxxxxx
bjhStoken:xxxxxxxxx

私信接口:
https://baijiahao.baidu.com/pcui/im/sendMessage
私信接口需要三个参数:
bduss:xxxxxxxxx
bjhStoken:xxxxxxxxx
token:xxxxxx

待编辑...

无标签