simple-tiktok
  1. 扩展接口-I
simple-tiktok
  • 基础接口
    • 视频流
      GET
    • 注册
      POST
    • 用户登录
      POST
    • 用户信息
      GET
    • 投稿
      POST
    • 发布列表
      GET
  • 扩展接口-I
    • 点赞
      POST
    • 点赞列表
      GET
    • 评论
      POST
    • 评论列表
      GET
  • 扩展接口-II
    • 关注
      POST
    • 关注列表
      GET
    • 粉丝列表
      GET
  1. 扩展接口-I

评论

开发中
POST
http://192.168.8.59:8080/douyin/comment/action/

请求参数

Query 参数
token
string 
必需
说明:用户鉴权token
video_id
string 
说明:视频id
必需
action_type
string 
必需
说明:1-发布评论,2-删除评论
comment_text
string 
可选
说明:用户填写的评论内容,在action_type=1的时候使用
comment_id
string 
可选
说明:要删除的评论id,在action_type=2的时候使用

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://192.168.8.59:8080/douyin/comment/action/?token&video_id&action_type'

返回响应

🟢200成功
application/json
Body
status_code
integer 
必需
状态码,0-成功,其他值-失败
status_msg
string  | null 
返回状态描述
必需
comment
必需
Comment 评论成功返回评论内容,不需要重新拉取整个列表
One of
Comment
id
integer 
评论id
必需
user
object 
必需
User 评论用户信息
content
string 
评论内容
必需
create_date
string 
必需
评论发布日期,格式 mm-dd
示例
{
  "status_code": 0,
  "status_msg": "string",
  "comment": {
    "id": 0,
    "user": {
      "id": 0,
      "name": "string",
      "follow_count": 0,
      "follower_count": 0,
      "is_follow": true
    },
    "content": "string",
    "create_date": "string"
  }
}
修改于 2022-06-11 12:32:57
上一页
点赞列表
下一页
评论列表
Built with