Java 版网页微信接口,Web微信协议参考资料:
qwx: WeChat Qt frontend 微信Qt前端
String uuid = WXUtils.genUUID(null); // 开启一个微信会话
WXUtils.registEventListener(ContactMessageEvent.class, TulingTest.class); // 注册感兴趣的事件
File temp = File.createTempFile(uuid, ".png");
FileOutputStream os = new FileOutputStream(temp);
WXUtils.genQrCode(uuid, os);// 生成二维码扫描登录
os.close();
System.out.println(temp.getAbsolutePath());