api官方文档
文档概述 · 萤石开放平台API文档 (ys7.com)
方法层:
@Value("${video.appKey}")private String appKey;@Value("${video.appSecret}")private String appSecret;@Overridepublic String getToken(String appKey, String appSecret) {OkHttpClient client = new OkHttpClient();RequestBody body = new FormBody.Builder().add("appKey", appKey).add("appSecret", appSecret).build();Request request = new Request.Builder().url("https://open.ys7.com/api/lapp/token/get").method("POST",body).build();try (Response response = client.newCall(request).execute()) {if (response.isSuccessful()) {