1
0
mirror of synced 2025-12-20 07:38:27 +08:00

新增接口:摇一摇周边获取设备及用户信息 (#243)

#240
This commit is contained in:
Bob
2017-06-06 16:36:18 +08:00
committed by Binary Wang
parent ff2caf76db
commit ea13197844
7 changed files with 314 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
package me.chanjar.weixin.mp.api.impl;
import com.google.inject.Inject;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.api.test.ApiTestModule;
import me.chanjar.weixin.mp.bean.WxMpShakeInfoResult;
import me.chanjar.weixin.mp.bean.WxMpShakeQuery;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
/**
* 测试摇一摇周边相关的接口
*
* @author rememberber
*/
@Test(groups = "userAPI")
@Guice(modules = ApiTestModule.class)
public class WxMpShakeServiceImplTest {
@Inject
private WxMpService wxService;
public void testGetShakeInfo() throws Exception {
WxMpShakeQuery wxMpShakeQuery = new WxMpShakeQuery();
wxMpShakeQuery.setTicket("b87db7df490e5cbe4f598272f77f46be");
wxMpShakeQuery.setNeedPoi(1);
WxMpShakeInfoResult wxMpShakeInfoResult = this.wxService.getShakeService().getShakeInfo(wxMpShakeQuery);
System.out.println();
}
}