use of com.tencentcloudapi.tci.v20190318.models.SubmitTraditionalClassTaskResponse in project tencentcloud-sdk-java by TencentCloud.
the class SubmitTraditionalClassTask method main.
public static void main(String[] args) {
try {
Credential cred = new Credential("", "");
HttpProfile httpProfile = new HttpProfile();
httpProfile.setReqMethod("POST");
httpProfile.setConnTimeout(60);
httpProfile.setEndpoint("tci.ap-beijing.tencentcloudapi.com");
ClientProfile clientProfile = new ClientProfile();
clientProfile.setUnsignedPayload(true);
clientProfile.setHttpProfile(httpProfile);
TciClient client = new TciClient(cred, "", clientProfile);
SubmitTraditionalClassTaskRequest req = new SubmitTraditionalClassTaskRequest();
req.setFileContent("https://edu-test-1253131631.cos.ap-guangzhou.myqcloud.com/aieduautotest/autotest_vedio.mp4");
req.setFileType("vod_url");
req.setLibrarySet(new String[] { "library_15603955264181591716" });
SubmitTraditionalClassTaskResponse res = client.SubmitTraditionalClassTask(req);
System.out.println(SubmitTraditionalClassTaskResponse.toJsonString(res));
System.out.println(res.getRequestId());
} catch (TencentCloudSDKException e) {
e.printStackTrace();
}
}
Aggregations