第一步:
get请求 url
https://login.weixin.qq.com/jslogin?appid=wx782c26e4c19acffb
&redirect_uri=https%3A%2F%2Fwx.qq.com%2Fcgi-bin%2Fmmwebwx-bin%2Fwebwxnewloginpage
&fun=new&lang=zh_CN
&_=1411695406951
响应数据
window.QRLogin.code = 200; window.QRLogin.uuid = "eb3ecadbc4ab46";
重要获取数据:uuid = "eb3ecadbc4ab46"
第二步 :
get 请求url
https://login.weixin.qq.com/qrcode/5b5c6173eb8042?t=webwx
获取微信二维码图片
第三步:当扫描后 并在手机端登录微信网页版后 请求url
get请求url
https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login?uuid=5b5c6173eb8042&tip=0&_=1411695548677
响应数据
window.code=200;
window.redirect_uri=
"https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?ticket=9c058663bc164ac39a2aa0e557b7b219&lang=zh_CN&scan=1411695853"
重要获取数据 : ticket=9c058663bc164ac39a2aa0e557b7b219&lang=zh_CN
第四步:get请求url
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?ticket=41e657ed93c74c50961443102d338a1e&lang=zh_CN&scan=1413021053&fun=new
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?ticket=e72658fbe2be42de85c0af70b4e2eb2e&lang=zh_CN&scan=1413020872&fun=new
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?ticket=b44abd0f64a7476daf58f0e534de54e1&lang=zh_CN&scan=1411695853&fun=new
响应数据
<error>
<ret>0</ret>
<message>OK</message>
<skey>@crypt_29dddffb_f3463542a41beb5e7ce52b9c76471a20</skey>
<wxsid>knIWgknDx+H6osik</wxsid>
<wxuin>985194161</wxuin>
</error>
返回错误的结果 <error><ret>1203</ret><message>check ticket failed</message></error>
重要获取 skey wxsid wxuid
第五步 关注
https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=aZSWkgjzlRYWCiPB&skey=%40crypt_29dddffb_cd192e23ad908c704eb0747e241a976a&r=1412917620602&skey=%40crypt_29dddffb_cd192e23ad908c704eb0747e241a976a
https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/webwxverifyuser?r=1411701993275
{"BaseRequest":
{"Uin":"2335647822",
"Sid":"BD2Ol44fFwEsVmpV",
"Skey":"@crypt_8d889338_a50d3e8ec4113ae0f832d0a79b4ee300",
"DeviceID":"e229422534544198"},
"Opcode":1,
"VerifyUserListSize":1,
"VerifyUserList":[{"Value":"gh_f10ac97bb079"}],
"VerifyContent":"","SceneListCount":1,"SceneList":[0]}
o1689439399 985194161
//通过微信号 获取二维码
http://open.weixin.qq.com/qr/code/?username=gh_e4aae2633427
https://api.weixin.qq.com/cgi-bin/user/info?access_token=291maBOojoK3MULAqWVTx-mTXnoFAk2AL8qroS0hVinHO1lIUU01D7qSYgYK1AneMD1QfR7Appq2J7y43tK89g&openid=gh_f10ac97bb079&lang=zh_CN
789919071
https://mp.weixin.qq.com/misc/getheadimg?fakeid=3007012922&token=1876482417&lang=zh_CN
测试验证码 地址
http://www.ihuyi.com/upload/file/cu-fa-jie-kou.rar
18937719558