# wechat-bot **Repository Path**: woocupid/wechat-bot ## Basic Information - **Project Name**: wechat-bot - **Description**: No description available - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-05-10 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Wechat Bot =========== ## how to use ### login workflow ```java // 测试用例: net.turnbig.wechat.bot.WechatBotTest.testGetQrCode() WechatBot bot = new WechatBot(); // 获取到 登录二维码,返回的是二维码文件路径 String loginQRCode = bot.getLoginQRCode(); int times = 0; while (times++ <= 20) { // 获取登录状态 LoginStatus status = bot.getLoginStatus(); System.out.println(status); if(status.equals(LoginStatus.Success)) { break; } Thread.sleep(2000); } // 初始化 bot - 获取登录用户信息,下一次同步需要的Key等 bot.initWechat(); ```