- 用户接口
- 关注分组
- 发帖管理接口
- 分区接口
- 评论接口
- 评论回复接口
- 收藏接口
- 点赞接口
- 搜索及统计相关接口
- ws接口
获取点赞记录(文章/评论)
测试中
GET
/likes/count
最后修改时间:2022-02-27 13:59:27
责任人:cosine_yu
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
type
string
可选
示例值:
comment
target_id
integer
文章/评论id
示例值:
1
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://cosine.ren:8000/likes/count?target_id=1'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
result
object
必需
type
string
必需
target_id
string
必需
cnt
integer
必需
示例
{
"code": 0,
"message": "获取点赞记录数成功!",
"result": {
"type": "comment",
"target_id": "1",
"cnt": 1
}
}