# weixinTest **Repository Path**: tHero/weixinTest ## Basic Information - **Project Name**: weixinTest - **Description**: 微信使用发送http请求工具类 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-03-29 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #weixinTest ### 简介: > 该工程主要提供了对微信接口测试的工具类;包含httpRequest和httpsRequest工具; ### 需要的jar文件 slf4j-api-1.7.6.jar slf4j-log4j12-1.7.6.jar httpclient-4.3.4.jar httpclient-cache-4.3.4.jar httpcore-4.3.2.jar httpmime-4.3.4.jar json-lib-2.4-jdk15.jar eclipse.jdt.junit.JUNIT_CONTAINER/4 commons-lang-2.3.jar ezmorph-1.0.6.jar commons-logging-1.1.1.jar commons-collections-3.2.1.jar log4j-1.2.17.jar commons-beanutils-1.7.0.jar [点我下载](http://git.oschina.net/tHero/weixinTest/tree/master/lib?dir=1&filepath=lib&oid=f23c0c8dd5735324e5be10b4f05467b25c33f279&sha=840dc856d5cb377f5f2adeedc832daeb92d1c1e2) 上述jar文件已经放到了lib文件夹下 ### 3、测试方法; 1、打开test文件中的WXPostUtilTest的工具类; 2、替换httpRequest文件中的token,该token为微信的access_token;具体access_token的获取方法查看[点我查看](http://mp.weixin.qq.com/wiki/14/9f9c82c1af308e3b14ba9b973f99a8ba.html) GET方法获取可以直接在浏览器中输入;获取值; 3、Eclipse下双击方法;右击RUN AS junit Test即可测试 ### 4、备注 本文提供了对微信获取用户信息的 查询功能[点我查看](http://mp.weixin.qq.com/wiki/8/d6d33cf60bce2a2e4fb10a21be9591b8.html) 在WXPostUtilTest可查看