User Mark
- Endpoint Path:
/api/fresns/v1/user/mark
- Method:
POST
- Request:
application/json
Headers Optional Parameter
Key | Public Mode (Required) | Private Mode (Required) |
---|---|---|
X-Fresns-Aid | required | required |
X-Fresns-Aid-Token | required | required |
X-Fresns-Uid | required | required |
X-Fresns-Uid-Token | required | required |
Body Params
Key | Type | Required | Description |
---|---|---|---|
markType | String | required | Mark type like ,dislike ,follow ,block |
type | String | required | Content type user ,group ,hashtag ,geotag ,post ,comment |
fsid | Number / String | required | Target FsID For user, param uid or username For group, param gid For hashtag, param htid For geotag, param gtid For geotag, param gtid For post, param pid For comment, param cid |
note | String | optional | Note Content, Only valid for follow or block |
Request Description
- The new creation (creation) and cancellation (deletion) of the mark use the same interface and the same parameters. If it is not marked, it is new; if it is marked, it is canceled.
- Whether you have the right to operate, configure portal
operation > interaction configuration > interaction behavior settings
. The configuration values are in theinteraction
parameters of the corresponding content interface. - When operating the team attention tag, if the team parameter
followMethod=page
, attention cannot be established through this interface (it is taken over by the associated plug-in). like
anddislike
are mutually exclusive. If you have already clickedlike
and thendislike
, you will cancel thelike
and create a newdislike
, and vice versa.follow
andblock
are mutually exclusive. If you havefollowed
and then clicked theblock
, you will cancel thefollow
and create a newblock
, and vice versa.- You cannot operate the
follow
andblock
tags on yourself.
Return
json
{
"code": 0,
"message": "ok",
"data": null
}