Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
POST /api/v1/recent/{LibraryId}/{SpaceId}/recently-used-file?access_token={AccessToken}
Request parameters. | Description | Type | Required or Not |
LibraryId | Media Library ID, obtained after creating a media library in the media hosting console. See Create Media Library | String | Yes |
SpaceId | Space ID. If the media library is in single-tenant mode, this parameter is fixed as hyphen (`-`); if the media library is in multi-tenant mode, you must specify this parameter. See Create Tenant Space | String | No |
AccessToken | Access token. For Public Read Media Library or tenant space, this parameter is not specified. Otherwise, you must specify this parameter. See Generate Access Token | String | Yes |
{"marker":"NKJWNDkndkwjqndkqnwdkjnqwd=","limit":10,"filterActionBy": "preview","type": [".doc", ".csv"],"withPath": true}
Request parameters. | Description | Type | Required or Not |
marker | Identifier for sequential page listing, default to first page if not passed | String | No |
limit | Number of locally listed projects for sequential pagination, default to 20 if not passed | Int | No |
filterActionBy | filterActionBy: filter operation method, return all if not passed, preview only returns preview operation, modify returns edit operation | String | No |
type | Filter file type, currently supported types include: Search all files. Defaults to all when type is not specified or empty. Search all documents. Document types: ['pdf', 'powerpoint', 'excel', 'word', 'text'] pdf: Search PDF documents only. File extension: .pdf powerpoint: Search presentations only, such as .ppt, .pptx, .pot, .potx. excel: Search spreadsheet files only, such as .xls, .xlsx, .ett, .xltx, .csv. word: Search documents only, such as .doc, .docx, .dot, .wps, .wpt. text: Search text-only files, such as .txt, .asp, .htm. doc, xls, or ppt: Search Word, Excel, or Powerpoint documents only, with file extensions .doc(x), .xls(x), or .ppt(x). array of strings: can be an array of document suffixes, such as ['.ppt', '.doc', '.excel']; or an array of filter types, such as ['pdf', 'powerpoint', 'word'] | String Array /String | No |
withPath | whether to return the file path, default to false | Boolean | No |
{"nextMarker": "xxx","contents": [{"name": "document.doc","spaceId": "spacexxx","inode": "xxxxx","size": "1111","actionType": "preview","operationTime": "2022-04-25T07:53:18.000Z","creationTime": "2022-04-23T07:53:18.000Z","crc64": "xxxxxx","path": ["folder1", "document.doc"]}]}
Response Parameters | Description | Type |
nextMarker | Identifier for sequential page listing, return this field only when not the last page | String |
contents | Recently used file list content | Array |
Response Parameters | Description | Type |
name | File Name | String |
spaceId | space ID | String |
inode | File ID | String |
size | File size, in string format to avoid digit precision issues | String |
actionType | Operation type when adding to the recently used list, valid values are preview or modify | String |
operationTime | ISO 8601 formatted date and time string, indicating the time when added to the recently used file list, such as 2020-10-14T10:17:57.953Z | String |
creationTime | ISO 8601 formatted date and time string, indicating the file upload time, such as 2020-10-14T10:17:57.953Z | String |
crc64 | File CRC64-ECMA182 check value, in string format to avoid digit precision issues | String |
path | File path, returned only when withPath is true | String Array |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários