User Mark
- Endpoint Path:
/api/v2/user/mark - Method:
POST - Request:
application/json
Headers Optional Parameter
| Parameter Name | 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
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| interactionType | String | required | Mark action like,dislike,follow,block |
| markType | String | required | Mark type user,group,hashtag,post,comment |
| fsid | Number / String | required | Target FsIDFor user, pass uid or usernameFor group, pass gidFor hashtag, pass hidFor post, pass pidFor comment, pass cid |
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 theinteractionparameters of the corresponding content interface. - When operating the team attention tag, if the team parameter
followType=2, attention cannot be established through this interface (it is taken over by the associated plug-in). likeanddislikeare mutually exclusive. If you have already clickedlikeand thendislike, you will cancel thelikeand create a newdislike, and vice versa.followandblockare mutually exclusive. If you havefollowedand then clicked theblock, you will cancel thefollowand create a newblock, and vice versa.- You cannot operate the
followandblocktags on yourself.
Return
json
{
"code": 0,
"message": "ok",
"data": null
}