https://api.polyv.net/v2/play/set-video-player
{
"code": 200,
"status": "success",
"message": "success",
"data": null
}
签名不正确
{
"code":400,
"status":"error",
"message":"the sign is not right",
"data":""
}
时间戳过期
{
"code":400,
"status":"error",
"message":"ptime is too old.",
"data":""
}
public void testSetVideoPlayer() throws Exception {
String url = "https://api.polyv.net/v2/play/set-video-player";
Map<String, String> params = new HashMap<>();
params.put("userid", userid);
params.put("ptime", String.valueOf(System.currentTimeMillis()));
params.put("vid", "a2dc4f25174db4e911ce6fbf2cbd81cc_a");
params.put("playerId", "xEmAR1T2b4");
params.put("sign", getSign(params, secretkey));
String response = HttpClientUtil.getInstance().sendHttpPost(url, params);
System.out.println(response);
}