perl 微信机器人获取消息

<pre name="code" class="python">https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=59l6dzO93b47Zd/H&skey=@crypt_597aeefd_4b263f7393be4254a150baa608a7d821&pass_ticket=urqVbHsQ%252FbfitCOHwVVlpEsieXi4qXKmLZ2EMXZzx%252BcN0H9WYGGJUK3sPpS3o2r6


POST webwxsync?sid=59l6dzO93b...BcN0H9WYGGJUK3sPpS3o2r6
200 OK
wx.qq.com
691 B
101.226.76.164:443
 
134ms
参数头信息Post响应JSON缓存Cookies
{
"BaseResponse": {
"Ret": 0,
"ErrMsg": ""
}
,
"AddMsgCount": 1,
"AddMsgList": [{
"MsgId": "1126279870120152158",
"FromUserName": "@877d9ae94e674b274f1b1f81f409734c17180bc77f93db1a548bf79c619fea94",
"ToUserName": "@5681e448b1bdf6566aaf55f42921d02874974ca5ffa8c394527b17d344a2e2f6",
"MsgType": 1,
"Content": " 121232356599",
"Status": 3,
"ImgStatus": 1,
"CreateTime": 1452675755,
"VoiceLength": 0,
"PlayLength": 0,
"FileName": "",
"FileSize": "",
"MediaId": "",
"Url": "",
"AppMsgType": 0,
"StatusNotifyCode": 0,
"StatusNotifyUserName": "",
"RecommendInfo": {
"UserName": "",
"NickName": "",
"QQNum": 0,
"Province": "",
"City": "",
"Content": "",
"Signature": "",
"Alias": "",
"Scene": 0,
"VerifyFlag": 0,
"AttrStatus": 0,
"Sex": 0,
"Ticket": "",
"OpCode": 0
}
,
"ForwardFlag": 0,
"AppInfo": {
"AppID": "",
"Type": 0
}
,
"HasProductId": 0,
"Ticket": "",
"ImgHeight": 0,
"ImgWidth": 0,
"SubMsgType": 0,
"NewMsgId": 1126279870120152158
}
],
"ModContactCount": 0,
"ModContactList": [],
"DelContactCount": 0,
"DelContactList": [],
"ModChatRoomMemberCount": 0,
"ModChatRoomMemberList": [],
"Profile": {
"BitFlag": 0,
"UserName": {
"Buff": ""
}
,
"NickName": {
"Buff": ""
}
,
"BindUin": 0,
"BindEmail": {
"Buff": ""
}
,
"BindMobile": {
"Buff": ""
}
,
"Status": 0,
"Sex": 0,
"PersonalCard": 0,
"Alias": "",
"HeadImgUpdateFlag": 0,
"HeadImgUrl": "",
"Signature": ""
}
,
"ContinueFlag": 0,
"SyncKey": {
"Count": 7,
"List": [{
"Key": 1,
"Val": 646415228
}
,{
"Key": 2,
"Val": 646415642
}
,{
"Key": 3,
"Val": 646415596
}
,{
"Key": 11,
"Val": 646415119
}
,{
"Key": 13,
"Val": 646410079
}
,{
"Key": 201,
"Val": 1452675755
}
,{
"Key": 1000,
"Val": 1452647677
}
]
}
,
"SKey": ""
}

GET synccheck?r=145267575724...2647677&_=1452675586737
200 OK
webpush.weixin.qq.com
43 B
101.226.76.164:443
 
27.01s

GET synccheck?r=145267578433...2647677&_=1452675586738
webpush.weixin.qq.com
0 B
 

2 个请求


734 B
27.28s



                                    
原文地址:https://www.cnblogs.com/hzcya1995/p/13351088.html