private final Logger log = LoggerFactory.getLogger(getClass());
/**
* 分组列表查询
* @throws IOException
* @throws NoSuchAlgorithmException
*/
@Test
public void groupPage() throws IOException, NoSuchAlgorithmException {
//公共参数,填写自己的实际参数
String appId = super.appId;
String appSecret = super.appSecret;
String timestamp = String.valueOf(System.currentTimeMillis());
Integer channelId = 4990862;
Integer pageSize = 10;
Integer pageNumber = 1;
//业务参数
String url = "http://api.polyv.net/live/v4/channel/lottery-viewer-group/whitelist/list";
//http 调用逻辑
Map<String, String> requestMap = new HashMap<>();
requestMap.put("appId", appId);
requestMap.put("timestamp", timestamp);
requestMap.put("channelId", channelId);
requestMap.put("pageSize", pageSize);
requestMap.put("pageNumber", pageNumber);
requestMap.put("sign", LiveSignUtil.getSign(requestMap, appSecret));
String response = HttpUtil.get(url, requestMap);
log.info("测试分组分页查询成功:{}", response);
//do somethings
}