12) オフィス文書の隠し情報の確認
オフィス文書の隠し情報の確認
サポートされている拡張子
- Word : doc, docx, docm, dot, dotx, dotm, rtf, odt
- Excel : xls, xlsx, xlsm, xlt, xltx, xltm, xlsb, xlam, ods
- PowerPoint : ppt, pptx, pptm, pot, potx, potm, pps, ppsx, ppsm, odp
API
| Method | URL |
|---|---|
| POST | /api/get/internal/customProperties |
Request Header
| Name | Required | Description |
|---|---|---|
| Authorization | required | ユーザー認証手段、JWT値 Authorization: Bearer {JWT}参考 : JWT値は認証/認可サービスを通じて発行されます。 |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| companyId | required | string | 対象文書を使用する会社ID |
| jsonObj | required | string | ドキュメント情報 (JSON形式の文字列) |
jsonObj
Name Required Type Description filePath required string 対象文書のパス
Response
| Name | Type | Description |
|---|---|---|
| code | int | 0 : 成功 それ以外の値 : エラー |
| info | string | ドキュメント情報 (JSON形式の文字列) |
| message | string | 失敗時のエラーメッセージ |
info
Name Type Description filePath string 対象文書のパス properties jsonArray 文書隠蔽情報リスト key string 隠し情報 key value string 隠蔽情報 value
- 取得した隠し情報をbase64デコードして返す
Examples
Request
- Body
{
"companyId": "7FDKQsEK-QVGKyXA2-fx1LxIzy-SNIre0s9",
"jsonObj": "{\"filePath\":\"/opt/shieldrm/data/test/none.xlsx\"}"
}
Response
- 成功
{
"code": 0,
"info": "{\"filePath\":\"/opt/shieldrm/data/test/none.xlsx\",\"properties\":[{\"value\":\"test1\",\"key\":\"key1\"},{\"value\":\"test2\",\"key\":\"key2\"}]}"
}
- 失敗
- Status code : 200 OK
[지원하지 않는 확장자]
{
"code": -1,
"message": "Unsupported file type: /opt/shieldrm/data/test/none.txt"
}
[AIP 문서일 경우]
{
"code": -1,
"message": "Permission is required to open this file."
}
{
"code": -1,
"message": "Unknown file format."
}
[DS 문서일 경우]
{
"code": -1,
"message": "zip END header not found"
}
{
"code": -1,
"message": "Unsupported file format: Unknown"
}
- Status code : 401 UNAUTHORIZED
{
"code": 40101,
"message": "Invalid token"
}