Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
try {let result = await SMHSpaceApis.listSpaceHomeFile({libraryId:"libraryId",spaceId:"spaceId",filter:SMHDirectoryFilter.onlyDir,limit:'5'});}catch (e) {// Exception handling}
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 |
marker | Identification for sequential pagination. Input this parameter when paginating. | String | No |
limit | Limit on the number of projects listed locally for sequential pagination | String | No |
filter | Filtering Methods (leave empty to return all, onlyDir for folders only, onlyFile for files only) | SMHDirectoryFilter | No |
category | Customized file categories. Users can modify file categories through the file API or predefine classification information based on file suffix. | String | No |
withPath | whether to return path | Bool | No |
try {let result = await SMHSpaceApis.getSpaceSize({libraryId:"libraryId",spaceId:"spaceId"});}catch (e) {// Exception handling}
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 | Yes |
try {let result = await SMHSpaceApis.getSpaceFileCount({libraryId:"libraryId",spaceId:"spaceId"});}catch (e) {// Exception handling}
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 | Yes |
try {let result = await SMHSpaceApis.setSpaceTrafficLimit({libraryId:"libraryId",spaceId:"spaceId",downloadTrafficLimit:102400});}catch (e) {// Exception handling}
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 | Yes |
downloadTrafficLimit | Download speed limit for space, data type, range 100KB/s - 100MB/s, unit Byte. Input -1 to cancel the limit. | Number | Yes |
try {let result = await SMHSpaceApis.listSpace({libraryId:"libraryId"});}catch (e) {// Exception handling}
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 |
marker | Identification for sequential pagination, i.e., the nextMarker field returned by the previous request. | String | No |
limit | Limit on the number of items listed locally for sequential pagination, defaults to 1000, cannot exceed 1000 | String | No |
try {let result = await SMHSpaceApis.listSpaceUsage({libraryId:"libraryId",spaceIds:"spaceId"});}catch (e) {// Exception handling}
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 |
spaceIds | Space List, separated by commas, for example space1,space2 | String | Yes |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan