HCP API元件

Hitachi Content Platform 雲端平台

Hitachi Content Platform

此為Hitachi提供之檔案放置雲端平台之解決方案,參考API說明書,撰寫該元件之共用元件建立

提供以下服務

  • 新增

  • 刪除

  • 更新

  • 查詢

查詢範例

@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設定

io.github.h8000572003 hcp 0.0.5

Last updated

Was this helpful?