Query Steward Review

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

Query the reviews about the specified community steward, including the community ID, steward ID, page number, page size, and other information.

API address

GET: /v1.0/iot-02/community/house-keeper-evaluate

Request parameter

Parameter nameTypeINRequiredDescription
block_idStringquerytrueThe community ID.
hk_idStringquerytrueThe ID of the specified steward.
start_timeLongqueryfalseThe start time.
end_timeLongqueryfalseThe end time.
page_noIntegerquerytrueThe page number.
page_sizeIntegerquerytrueThe number of items to be returned on each page.

Return parameter

Parameter nameTypeDescription
resultPageResultThe returned result.

Description of result

Parameter nameTypeDescription
dataListThe number of records returned on each page.
total_recordLongThe total number of records.

Description of data

Parameter nameTypeDescription
comment_idStringThe ID of the specified review.
real_nameStringThe name of a resident.
room_addressStringThe address of a house.
typeIntegerThe type of a review. Valid values:
  • 1: negative review.
  • 2: positive review.
contentStringThe content of a review.
evaluate_timeLongThe time when a review is made.

Request example

GET: /v1.0/iot-02/community/house-keeper-evaluate?blockId=1399960265050574848&hkId=1436249349305667679&pageNo=2&pageSize=10

Return example

    "result": {
        "data": [
                "evaluateTime": 1630134684818,
                "type": 2,
                "content": "",
                "realName": "Peter",
                "roomAddress": "Tuya Smart (for R&D self-test) Test 101",
                "commentId": "1431514739522932783"
        "totalRecord": 1
    "t": 1632284525132,
    "success": true

Error code

For more information, see error code.