private static final Logger log = LoggerFactory.getLogger(VodVideoWechatShareTest.class);
/**
* 查询微信分享设置信息
*/
@Test
public void testGetWechatShareSetting() throws Exception, NoSuchAlgorithmException {
//公共参数,填写自己的实际参数
String secretKey = super.secretKey;
String userId = super.userId;
String ptime = String.valueOf(System.currentTimeMillis());
//业务参数
String url = "http://api.polyv.net/v2/video/wechat-share/" + userId + "/video-info";
String vid = "1b448be323cc23bef70fee7d077f00df_1";
Map<String, String> requestMap = new HashMap<>();
requestMap.put("userid", userId);
requestMap.put("ptime", ptime);
requestMap.put("vid", vid);
requestMap.put("sign", VodSignUtil.getSign(requestMap, secretKey));
String response = HttpUtil.get(url, requestMap);
log.debug("测试查询微信分享设置信息,{}", response);
//do somethings
}