《微信机器人开发必备:微信Web协议大全(5)》要点:
本文介绍了微信机器人开发必备:微信Web协议大全(5),希望对您有用。如果有疑问,可以联系我们。
相关主题:web微信和微信机器人
<msgfromusername="liubingbing889129"encryptusername="v1_18874657c313914eff3c00cfd89275a4fa5c0753c73a63d78b893dd29f814e0e2a34dabe550e3d4199b0c4d518d3019b@stranger"fromnickname="LbbNiu"content="验证消息内容"shortpy="LBBNIU"imagestatus="3"scene="14"country="CN"province="Beijing"city="Chaoyang"sign=""percard="1"sex="1"alias="lbbniu"weibo="http://t.qq.com/lbbniu"weibonickname="微博昵称"albumflag="3"albumstyle="0"albumbgimgid=""snsflag="17"snsbgimgid="http://mmsns.qpic.cn/mmsns/4376ae1e0cf0ccced233def9ad1560d0dec29d64941ab85a901c0129f89f98ce9b8524263f1c393a874098cc9f1e4961624ddae970ce1bc0/0"snsbgobjectid="12152681488304050449"mhash="c07f008cf5e3f34415e4baa355fb4f47"mfullhash="c07f008cf5e3f34415e4baa355fb4f47"bigheadimgurl="http://wx.qlogo.cn/mmhead/ver_1/qFZwXv2etMCTcs3RUKDOlmw9GQyMfAdYcbQyd5cH9SssCdTLFmjNdZyLkZ14DdpAUv9qwibl2icia1M6Mng30Adibw/0"smallheadimgurl="http://wx.qlogo.cn/mmhead/ver_1/qFZwXv2etMCTcs3RUKDOlmw9GQyMfAdYcbQyd5cH9SssCdTLFmjNdZyLkZ14DdpAUv9qwibl2icia1M6Mng30Adibw/132"ticket="v2_9d2e1b01ee6de582a237f6369a6746c84d3a072b48bf36f152c5c947505e871189cafa09748e05bab27caf812a8f3a12d51da3dceda3cab5f52a406ec124a4a9@stranger"opcode="2"googlecontact=""qrticket=""chatroomusername="1656114910@chatroom"sourceusername=""sourcenickname="">
<brandlistcount="0"ver="652639419"></brandlist>
</msg>
"RecommendInfo":{
"UserName":"@2cbb226c459cc5203aa991942f41e19820f5ef3ccceb2dece598412f36406d1f",
"NickName":"LbbNiu",
"QQNum":0,
"Province":"",
"City":"æ",
"Content":"",
"Signature":"",
"Alias":"lbbniu",
"Scene":14,
"VerifyFlag":0,
"AttrStatus":4305791,
"Sex":1,
"Ticket":"v2_9d2e1b01ee6de582a237f6369a6746c84d3a072b48bf36f152c5c947505e871189cafa09748e05bab27caf812a8f3a12d51da3dceda3cab5f52a406ec124a4a9@stranger",
"OpCode":2
}
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxcreatechatroom?r=1476618448303&lang=zh_CN
header Content-Type:application/json;charset=UTF-8
content
{
"MemberCount":3,
"MemberList":[
{
"UserName":"@fe20084fb8e3b488f49d3df2bf3ec2837daeb468abfe62a48ef39a6e407cab0e"
},
....
],
"Topic":"",
"BaseRequest":{
"Uin":1443149207,
"Sid":"HqU75NIXRJ6qqu8t",
"Skey":"@crypt_d9da2d81_f3a62e80c16e61ad660dffd14e0ef72c",
"DeviceID":"e280173725621646"
}
}
UserName初始化接口中获取
{
"BaseResponse":{
"Ret":0,
"ErrMsg":"Everything is OK"
},
"Topic":"",
"PYInitial":"",
"QuanPin":"",
"MemberCount":3,
"MemberList":[
{
"Uin":0,
"UserName":"@fe20084fb8e3b488f49d3df2bf3ec2837daeb468abfe62a48ef39a6e407cab0e",
"NickName":"111111",
"AttrStatus":0,
"PYInitial":"",
"PYQuanPin":"",
"RemarkPYInitial":"",
"RemarkPYQuanPin":"",
"MemberStatus":0,
"DisplayName":"",
"KeyWord":""
},
...
],
"ChatRoomName":"@@45340ba1e520285af196cef99d2f41a2bdb5cc568569efa178354f08eb863d00",
"BlackList":""
}
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxupdatechatroom?fun=delmember
header Content-Type:application/json;charset=UTF-8
content
{
"DelMemberList":"@2cbb226c459cc5203aa991942f41e19820f5ef3ccceb2dece598412f36406d1f",
"ChatRoomName":"@@45340ba1e520285af196cef99d2f41a2bdb5cc568569efa178354f08eb863d00",
"BaseRequest":{
"Uin":1443149207,
"Sid":"HqU75NIXRJ6qqu8t",
"Skey":"@crypt_d9da2d81_f3a62e80c16e61ad660dffd14e0ef72c",
"DeviceID":"e934789096108643"
}
}
DelMemberList好友id
ChatRoomName群组id
{
"BaseResponse":{
"Ret":0,
"ErrMsg":""
}
,
"MemberCount":0,
"MemberList":[]
}
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxupdatechatroom?fun=addmember
header Content-Type:application/json;charset=UTF-8
content
{
"AddMemberList":"@2cbb226c459cc5203aa991942f41e19820f5ef3ccceb2dece598412f36406d1f",
"ChatRoomName":"@@45340ba1e520285af196cef99d2f41a2bdb5cc568569efa178354f08eb863d00",
"BaseRequest":{
"Uin":1443149207,
"Sid":"HqU75NIXRJ6qqu8t",
"Skey":"@crypt_d9da2d81_f3a62e80c16e61ad660dffd14e0ef72c",
"DeviceID":"e681854808526145"
}
}
AddMemberList好友id列表
ChatRoomName群组id
{
"BaseResponse":{
"Ret":0,
"ErrMsg":""
},
"MemberCount":1,
"MemberList":[
{
"Uin":0,
"UserName":"@2cbb226c459cc5203aa991942f41e19820f5ef3ccceb2dece598412f36406d1f",
"NickName":"LbbNiu",
"AttrStatus":0,
"PYInitial":"",
"PYQuanPin":"",
"RemarkPYInitial":"",
"RemarkPYQuanPin":"",
"MemberStatus":0,
"DisplayName":"",
"KeyWord":""
}
...
]
}
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxupdatechatroom?fun=modtopic
header Content-Type:application/json;charset=UTF-8
content
{
"NewTopic":"lbbniu.com",
"ChatRoomName":"@@45340ba1e520285af196cef99d2f41a2bdb5cc568569efa178354f08eb863d00",
"BaseRequest":{
"Uin":1443149207,
"Sid":"HqU75NIXRJ6qqu8t",
"Skey":"@crypt_d9da2d81_f3a62e80c16e61ad660dffd14e0ef72c",
"DeviceID":"e326783138505913"
}
}
NewTopic新群名称
ChatRoomName群组id
{
"BaseResponse":{
"Ret":0,
"ErrMsg":""
}
,
"MemberCount":0,
"MemberList":[]
}
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxoplog
header Content-Type:application/json;charset=UTF-8
content
{
"UserName":"@@45340ba1e520285af196cef99d2f41a2bdb5cc568569efa178354f08eb863d00",
"CmdId":3,
"OP":1,
"BaseRequest":{
"Uin":1443149207,
"Sid":"HqU75NIXRJ6qqu8t",
"Skey":"@crypt_d9da2d81_f3a62e80c16e61ad660dffd14e0ef72c",
"DeviceID":"e736741369963778"
}
}
响应
{
"BaseResponse":{
"Ret":0,
"ErrMsg":""
}
}
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxoplog
header Content-Type:application/json;charset=UTF-8
content
{
"UserName":"@@45340ba1e520285af196cef99d2f41a2bdb5cc568569efa178354f08eb863d00",
"CmdId":3,
"OP":0,
"BaseRequest":{
"Uin":1443149207,
"Sid":"HqU75NIXRJ6qqu8t",
"Skey":"@crypt_d9da2d81_f3a62e80c16e61ad660dffd14e0ef72c",
"DeviceID":"e736741369963778"
}
}
响应
{
"BaseResponse":{
"Ret":0,
"ErrMsg":""
}
}
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxoplog
header Content-Type:application/json;charset=UTF-8
content
{
"UserName":"@2cbb226c459cc5203aa991942f41e19820f5ef3ccceb2dece598412f36406d1f",
"CmdId":2,
"RemarkName":"lbbniu.com",
"BaseRequest":{
"Uin":1443149207,
"Sid":"HqU75NIXRJ6qqu8t",
"Skey":"@crypt_d9da2d81_f3a62e80c16e61ad660dffd14e0ef72c",
"DeviceID":"e573447900268361"
}
}
响应
{
"BaseResponse":{
"Ret":0,
"ErrMsg":""
}
}