tencent cloud

Feedback

DescribeAnswerList

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

    1. API Description

    Domain name for API request: lcic.tencentcloudapi.com.

    This API is used to get the answers to a quiz question in a room.

    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: DescribeAnswerList.
    Version Yes String Common Params. The value used for this API: 2022-08-17.
    Region No String Common Params. This parameter is not required.
    QuestionId Yes String The question ID.
    Page No Integer 1
    Limit No Integer 100

    3. Output Parameters

    Parameter Name Type Description
    Total Integer The total number of answers.
    AnswerInfo Array of AnswerInfo A list of the answers.
    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 the answers to a quiz question in a room

    This example shows you how to get the answers to a quiz question in a room.

    Input Example

    POST / HTTP/1.1
    Host: lcic.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeAnswerList
    <Common request parameters>
    
    {
        "QuestionId": "69d2345d-0p80-7821-b3b7-cbfsdew",
        "Page": 1,
        "Limit": 100
    }
    

    Output Example

    {
        "Response": {
            "AnswerInfo": [
                {
                    "Answer": 12,
                    "CostTime": 10,
                    "IsCorrect": 0,
                    "Name": "zhangsan",
                    "UserId": "2MANXmcVsYjgo9Bk00mvONkvekd"
                },
                {
                    "Answer": 33,
                    "CostTime": 6,
                    "IsCorrect": 0,
                    "Name": "lisi",
                    "UserId": "2NP9SrTzakytuidv429i4rbNepD"
                }
            ],
            "RequestId": "8cc600da-b066-476a-a527-ee19c46f77f9",
            "Total": 2
        }
    }
    

    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
    FailedOperation.RequestTimedOut Request timed out.
    InternalError Internal error.
    InvalidParameter Invalid parameter.
    InvalidParameterValue Invalid parameter value.
    MissingParameter Missing parameter.
    ResourceNotFound The resource doesn’t exist.
    UnknownParameter Unknown parameter error.
    UnsupportedOperation Unsupported operation.