Query Stewards by Community

Last Updated on : 2023-06-21 07:13:09download

Query the total number of stewards, the number of reviews, positive reviews, and negative reviews, and the positive rate (the number before the percent sign) using the community as the dimension.

API address

GET: /v1.0/iot-02/community/housekeeper-block-statistics

Request parameter

Parameter nameTypeINRequiredDescription
block_idStringquerytrueThe community ID.

Return parameter

Parameter nameTypeDescription
resultHighwayHouseKeeperStatisticsResponseThe returned result.

Description of result

Parameter nameTypeDescription
housekeeper_totalIntegerThe total number of stewards.
evaluate_numberLongThe number of reviews.
praise_numberLongThe number of positive reviews.
criticism_numberLongThe number of negative reviews.
favorable_ratingIntegerThe positive rate (the number before the percent sign).

Request example

GET: /v1.0/iot-02/community/housekeeper-block-statistics?blockId=1399960265050574848

Return example

    "result": {
        "evaluateNumber": 46,
        "housekeeperTotal": 11,
        "praiseNumber": 37,
        "criticismNumber": 9,
        "favorableRating": 80
    "t": 1632285362745,
    "success": true

Error code

For more information, see error code.