private static final Logger log = LoggerFactory.getLogger(GroupTestLive.class);
/**
* 重置分账号应用密匙
* @throws IOException
* @throws NoSuchAlgorithmException
*/
@Test
public void groupSecretResetTest() throws IOException, NoSuchAlgorithmException {
//公共参数,填写自己的实际参数
String appId = super.groupAppId;
String appSecret = super.groupAppSecret;
String timestamp = String.valueOf(System.currentTimeMillis());
//业务参数
String url = "http://api.polyv.net/live/v4/group/user/secret/reset";
String email = "";
//http 调用逻辑
Map<String, String> requestMap = new HashMap<>();
requestMap.put("appId", appId);
requestMap.put("timestamp", timestamp);
requestMap.put("email", email);
requestMap.put("sign", LiveSignUtil.getSign(requestMap, appSecret));
url = HttpUtil.appendUrl(url, requestMap);
String response = HttpUtil.postFormBody(url, null);
log.info("测试重置分账号应用密匙成功:{}", response);
//do somethings
}