Domain name for API request: lcic.tencentcloudapi.com.
This API is used to get courseware information.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: BatchDescribeDocument. |
Version | Yes | String | Common Params. The value used for this API: 2022-08-17. |
Region | No | String | Common Params. This parameter is not required. |
SdkAppId | Yes | Integer | The SDKAppID assigned by LCIC. |
Page | Yes | Integer | The page to return records from. Pagination starts from 1. |
Limit | Yes | Integer | The maximum number of records per page. The value of this parameter cannot exceed 1000 . |
Permission.N | Yes | Array of Integer | The courseware access. [0]: The private courseware of the specified user (Owner ) will be returned; [1]: The public courseware of the specified user will be returned; [0,1]: Both the private and public courseware of the specified user will be returned; [2]: The private courseware of the specified user and the public courseware of all users (including Owner ) will be returned. |
Owner | No | String | The user ID of the courseware owner. If you do not specify this, the information of all courseware under the application will be returned. |
Keyword | No | String | The filename keyword. |
DocumentId.N | No | Array of String | The courseware IDs. Non-existent IDs will be ignored. |
Parameter Name | Type | Description |
---|---|---|
Total | Integer | The total number of records that meet the conditions. |
Documents | Array of DocumentInfo | The information of the courseware. Note: This field may return null, indicating that no valid values can be obtained. |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to get courseware information.
POST / HTTP/1.1
Host: lcic.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: BatchDescribeDocument
<Common request parameters>
{
"SdkAppId": 1,
"Page": 0,
"Limit": 0,
"Permission": [
1
],
"Owner": "abc",
"Keyword": "abc",
"DocumentId": [
"abc"
]
}
{
"Response": {
"Total": 0,
"Documents": [
{
"DocumentId": "abc",
"DocumentUrl": "abc",
"DocumentName": "abc",
"Owner": "abc",
"SdkAppId": 1,
"Permission": 1,
"TranscodeResult": "abc",
"TranscodeType": 1,
"TranscodeProgress": 1,
"TranscodeState": 1,
"TranscodeInfo": "abc",
"DocumentType": "abc",
"DocumentSize": 1,
"UpdateTime": 1,
"Pages": 1,
"Width": 1,
"Height": 1,
"Cover": "abc"
}
],
"RequestId": "abc"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InvalidParameter.SdkAppId | SdkAppId is incorrect. |
Was this page helpful?