Skip to content

Commit 498262f

Browse files
author
liyan.90210
committed
feat auto update sdk
1 parent 3c75a38 commit 498262f

30 files changed

+6360
-748
lines changed

Changelog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Change log
22

3+
2025-12-11 Bumped to version v1.0.251
4+
- Updated apis for vms/vod
5+
36
2025-12-04 Bumped to version v1.0.250
47
- Updated apis for sdk
58

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
package com.volcengine.example.vod.edit;
2+
3+
import com.alibaba.fastjson.JSONObject;
4+
import com.google.protobuf.ByteString;
5+
import com.google.protobuf.util.JsonFormat;
6+
import com.volcengine.service.vod.IVodService;
7+
import com.volcengine.service.vod.impl.VodServiceImpl;
8+
import com.volcengine.service.vod.model.request.VodAsyncVCreativeTaskRequest;
9+
import com.volcengine.service.vod.model.request.VodRequest;
10+
import com.volcengine.service.vod.model.request.VodSubmitDirectEditTaskAsyncRequest;
11+
import com.volcengine.service.vod.model.response.VodAsyncVCreativeTaskResponse;
12+
import com.volcengine.service.vod.model.response.VodSubmitDirectEditTaskAsyncResponse;
13+
14+
import java.util.HashMap;
15+
16+
public class VodAsyncVCreativeTaskDemo {
17+
18+
public static void main(String[] args) {
19+
// Create a VOD instance in the specified region.
20+
// IVodService vodService = VodServiceImpl.getInstance("cn-north-1");
21+
IVodService vodService = VodServiceImpl.getInstance();
22+
23+
// Configure your Access Key ID (AK) and Secret Access Key (SK) in the environment variables or in the local ~/.volc/config file. For detailed instructions, see https://www.volcengine.com/docs/4/65641.
24+
// The SDK will automatically fetch the AK and SK from the environment variables or the ~/.volc/config file as needed.
25+
// During testing, you may use the following code snippet. However, do not store the AK and SK directly in your project code to prevent potential leakage and safeguard the security of all resources associated with your account.
26+
// vodService.setAccessKey("your ak");
27+
// vodService.setSecretKey("your sk");
28+
29+
JSONObject paramObj = new JSONObject();
30+
paramObj.put("input","vid://{your vid}");
31+
paramObj.put("style","漫画风");
32+
paramObj.put("resolution","720p");
33+
VodAsyncVCreativeTaskRequest vodAsyncVCreativeTaskRequest = VodAsyncVCreativeTaskRequest.newBuilder()
34+
.setUploader("your space")
35+
.setParamStr(paramObj.toString())
36+
.setScene("videostyletrans")
37+
.build();
38+
39+
try {
40+
VodAsyncVCreativeTaskResponse vodAsyncVCreativeTaskResponse = vodService.asyncVCreativeTask(vodAsyncVCreativeTaskRequest);
41+
if (vodAsyncVCreativeTaskResponse.getResponseMetadata().hasError()) {
42+
System.out.println(vodAsyncVCreativeTaskResponse.getResponseMetadata().getError());
43+
System.exit(-1);
44+
}
45+
System.out.println(vodAsyncVCreativeTaskResponse.toString()); // 编码采用UTF8
46+
System.out.println(vodAsyncVCreativeTaskResponse.getResponseMetadata().getRequestId());
47+
} catch (Exception e) {
48+
e.printStackTrace();
49+
}
50+
}
51+
52+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
package com.volcengine.example.vod.edit;
2+
3+
import com.alibaba.fastjson.JSONObject;
4+
import com.volcengine.service.vod.IVodService;
5+
import com.volcengine.service.vod.impl.VodServiceImpl;
6+
import com.volcengine.service.vod.model.request.VodAsyncVCreativeTaskRequest;
7+
import com.volcengine.service.vod.model.request.VodGetVCreativeTaskResultRequest;
8+
import com.volcengine.service.vod.model.response.VodAsyncVCreativeTaskResponse;
9+
import com.volcengine.service.vod.model.response.VodGetVCreativeTaskResultResponse;
10+
11+
public class VodGetVCreativeTaskResultDemo {
12+
13+
public static void main(String[] args) {
14+
// Create a VOD instance in the specified region.
15+
// IVodService vodService = VodServiceImpl.getInstance("cn-north-1");
16+
IVodService vodService = VodServiceImpl.getInstance();
17+
18+
// Configure your Access Key ID (AK) and Secret Access Key (SK) in the environment variables or in the local ~/.volc/config file. For detailed instructions, see https://www.volcengine.com/docs/4/65641.
19+
// The SDK will automatically fetch the AK and SK from the environment variables or the ~/.volc/config file as needed.
20+
// During testing, you may use the following code snippet. However, do not store the AK and SK directly in your project code to prevent potential leakage and safeguard the security of all resources associated with your account.
21+
// vodService.setAccessKey("your ak");
22+
// vodService.setSecretKey("your sk");
23+
24+
VodGetVCreativeTaskResultRequest vodGetVCreativeTaskResultRequest = VodGetVCreativeTaskResultRequest.newBuilder()
25+
.setVCreativeId("your vcreativeId")
26+
.build();
27+
28+
try {
29+
VodGetVCreativeTaskResultResponse vodGetVCreativeTaskResultResponse = vodService.getVCreativeTaskResult(vodGetVCreativeTaskResultRequest);
30+
if (vodGetVCreativeTaskResultResponse.getResponseMetadata().hasError()) {
31+
System.out.println(vodGetVCreativeTaskResultResponse.getResponseMetadata().getError());
32+
System.exit(-1);
33+
}
34+
System.out.println(vodGetVCreativeTaskResultResponse.toString()); // 编码采用UTF8
35+
System.out.println(vodGetVCreativeTaskResultResponse.getResponseMetadata().getRequestId());
36+
} catch (Exception e) {
37+
e.printStackTrace();
38+
}
39+
}
40+
41+
}

volc-sdk-java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.volcengine</groupId>
7-
<version>1.0.250</version>
7+
<version>1.0.251</version>
88
<artifactId>volc-sdk-java</artifactId>
99

1010
<name>volc-sdk-java</name>

volc-sdk-java/src/main/java/com/volcengine/model/beans/livesaas/AwardUserInfo.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ public class AwardUserInfo {
1111
String UserName;
1212
@JSONField(name = "UserTel")
1313
String UserTel;
14-
}
14+
@JSONField(name = "ExternalUserId")
15+
String ExternalUserId;
16+
}

volc-sdk-java/src/main/java/com/volcengine/model/livesaas/request/UpdateAwardConfigRequest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,8 @@ public class UpdateAwardConfigRequest {
3939
Integer AwardSendType;
4040
@JSONField(name = "DeadLineSecond")
4141
Long DeadLineSecond;
42+
@JSONField(name = "BlackUserInfoId")
43+
Long BlackUserInfoId;
44+
@JSONField(name = "VipUserInfoId")
45+
Long VipUserInfoId;
4246
}

volc-sdk-java/src/main/java/com/volcengine/service/vms/VmsConfig.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,20 @@ public class VmsConfig {
421421
}
422422
}
423423
));
424+
put("RegisterIndustrialId", new ApiInfo(
425+
new HashMap<String, Object>() {
426+
{
427+
put(Const.Method, Const.POST);
428+
put(Const.Path, DEFAULT_PATH);
429+
put(Const.Query, new ArrayList<NameValuePair>() {
430+
{
431+
add(new BasicNameValuePair(ACTION, "RegisterIndustrialId"));
432+
add(new BasicNameValuePair(VERSION, DEFAULT_VERSION));
433+
}
434+
});
435+
}
436+
}
437+
));
424438
put("RouteAAuth", new ApiInfo(
425439
new HashMap<String, Object>() {
426440
{

volc-sdk-java/src/main/java/com/volcengine/service/vms/VmsService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ public interface VmsService extends IBaseService {
6262

6363
OperateResponse updateAXGGroup(UpdateAXGGroupRequest request) throws Exception;
6464

65+
OperateResponse registerIndustrialId(RegisterIndustrialIdRequest request) throws Exception;
66+
6567
RouteAAuthResponse routeAAuth(RouteAAuthRequest request) throws Exception;
6668

6769
AuthQueryResponse queryAuth(AuthQueryRequest request) throws Exception;

volc-sdk-java/src/main/java/com/volcengine/service/vms/impl/VmsServiceImpl.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,12 @@ public OperateResponse updateAXGGroup(UpdateAXGGroupRequest request) throws Exce
256256
return doJson("UpdateAXGGroup", request, new TypeReference<OperateResponse>(){});
257257
}
258258

259+
@Override
260+
public OperateResponse registerIndustrialId(RegisterIndustrialIdRequest request) throws Exception {
261+
return doJson("RegisterIndustrialId", request, new TypeReference<OperateResponse>(){});
262+
}
263+
264+
259265
@Override
260266
public RouteAAuthResponse routeAAuth(RouteAAuthRequest request) throws Exception {
261267
RawResponse response = formPostWithRetry("RouteAAuth", Utils.mapToPairList(Utils.paramsToMap(request)));

volc-sdk-java/src/main/java/com/volcengine/service/vms/model/Subscription.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@ public class Subscription {
3434
private String phoneNoE;
3535

3636
private String groupId;
37+
38+
private String orderId;
39+
40+
private String industrialId;
3741
}

0 commit comments

Comments
 (0)