tencent cloud

Feedback

BatchDescribeDocument

Last updated: 2024-04-01 19:34:43

    1. API Description

    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.

    We recommend you to use API Explorer
    Try it
    API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

    2. Input Parameters

    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.

    3. Output Parameters

    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.

    4. Example

    Example1 Getting courseware information

    This example shows you how to get courseware information.

    Input Example

    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"
        ]
    }
    

    Output Example

    {
        "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"
        }
    }
    

    5. Developer Resources

    SDK

    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    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.