HCP API元件
Hitachi Content Platform 雲端平台
Hitachi Content Platform
查詢範例
@Test
void test_get_file_then_HcpGet_then_file() {
HcpGet hcpDownloadInfo = new HcpGet();
String restPath = HcpUtil.toRestPath("x.pdf", "1", "2", "3", "4");
hcpDownloadInfo.setPath(restPath);
GetHcpInfo execute;
try {
execute = hcpService.execute(hcpDownloadInfo);
String size = execute.getSize();
assertThat(size).isNotBlank();
} catch (HcpCodeExcepton e) {
fail("");
}
}刪除範例
maven設定
Last updated