Skip to content

Comment Interaction Users

  • Endpoint Path: /api/fresns/v1/comment/{cid}/interaction/{type}
  • Method: GET
  • Request: Rest + Query

Headers Optional Parameter

KeyPublic Mode (Required)Private Mode (Required)
X-Fresns-Aidoptionalrequired
X-Fresns-Aid-Tokenoptionalrequired
X-Fresns-Uidoptionalrequired
X-Fresns-Uid-Tokenoptionalrequired

Path Variables

KeyTypeRequiredDescription
cidStringrequiredComment ID
typeStringrequiredView type likers,dislikers,followers,blockers

Query Params

KeyTypeRequiredDescription
orderDirectionStringoptionalSort by direction asc,desc, Default: desc
whitelistKeysStringoptionalWhitelist key names, only returns key-value pairs for the given key names
Multiple separated by English commas, supports "dot notation" for multi-dimensional arrays
blacklistKeysStringoptionalBlacklist key names, removes specified key-value pairs from the returned data
Multiple separated by English commas, supports "dot notation" for multi-dimensional arrays
pageSizeNumberoptionalNumber of items per page (default 15 items)
pageNumberoptionalPage number (default 1)

Request Description

  • List Type
    • type=likers Get the list of users who liked cid.
    • type=dislikers Get the list of users who disliked cid.
    • type=followers Get the list of users who followed cid.
    • type=blockers Get the list of users who blocked cid.
  • Sort by direction
    • orderDirection The sort direction is sorted by creation time.
  • Judgement of whether to output records
    • detail.interaction.likePublicRecord
    • detail.interaction.dislikePublicRecord
    • detail.interaction.followPublicRecord
    • detail.interaction.blockPublicRecord

Return

json
{
    "code": 0,
    "message": "ok",
    "data": {
        "pagination": {
            "total": "Number / How much data in total",
            "pageSize": "Number / How much data on each page",
            "currentPage": "Number / Current page number",
            "lastPage": "Number / Last page number"
        },
        "list": [
            {
                // Common Data Structure -> User Info
            }
        ]
    }
}

Released under the Apache-2.0 License