- 评论
- 消息
- 文章
- 用户
用户关注操作
开发中
POST
/user/focus-user-actions
请求参数
Header 参数
Authorization
string
用户鉴权token
默认值:
{{token}}
Body 参数application/json
first_user_id
integer
自己的用户id
second_user_id
integer
要关注的对方的用户id
action_type
integer
关注操作类型
>= 0<= 1
示例
{
"first_user_id": 0,
"second_user_id": 0,
"action_type": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://www.nonhana-server.cn:4000/user/focus-user-actions' \
--header 'Authorization: {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"first_user_id": 0,
"second_user_id": 0,
"action_type": 0
}'
返回响应
🟢200成功
application/json
Body
result_code
enum<integer>
状态码
枚举值:
01
result_msg
string
状态信息
示例
{
"result_code": 0,
"result_msg": "in ex ut enim ullamco"
}