Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
GET /api/v1/file/{LibraryId}/{SpaceId}/{FilePath}?preview&history_id={HistoryId}&purpose={Purpose}&access_token={AccessToken}&user_id={UserId}
Request parameters. | Description | Type | Required or Not |
LibraryId | Media Library ID, obtained after creating a media library through 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 |
FilePath | String | Yes | |
HistoryId | Historical version ID, used to obtain file content of different versions. If not specified, defaults to the latest version. See query historical version list | String | No |
Type | Document preview method. If set to "pic", preview the document homepage in jpg format; otherwise, preview in html format. | String | No |
AccessToken | Access token. For Public Read Media Library or tenant space, this parameter is not specified; otherwise, you must specify this parameter. Please see Generate Access Token | String | No |
UserId | User identity recognition. When the access token has admin permission and the user identity recognition during token application is empty, it is used to temporarily assign user identity. For details, see Generate Access Token API. | String | No |
フィードバック