极简版抖音
  1. 互动接口
极简版抖音
  • 基础接口
    • 视频流接口
      GET
    • 用户注册
      POST
    • 用户登录
      POST
    • 用户信息
      GET
    • 投稿接口
      POST
    • 发布列表
      GET
  • 互动接口
    • 赞操作
      POST
    • 喜欢列表
      GET
    • 评论操作
      POST
    • 评论列表
      GET
  • 社交接口
    • 关注操作
      POST
    • 关注列表
      GET
    • 粉丝列表
      GET
    • 好友列表
      GET
    • 发送消息
      POST
    • 聊天记录
      GET
  1. 互动接口

评论操作

POST
/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 '/douyin/comment/action/?token=&video_id=&action_type=&comment_text=&comment_id='

返回响应

🟢200成功
application/json
Body
status_code
integer 
必需
状态码,0-成功,其他值-失败
status_msg
string  | null 
返回状态描述
必需
comment
object  | null 
必需
评论成功返回评论内容,不需要重新拉取整个列表
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,
      "avatar": "string",
      "background_image": "string",
      "signature": "string",
      "total_favorited": "string",
      "work_count": 0,
      "favorite_count": 0
    },
    "content": "string",
    "create_date": "string"
  }
}
上一页
喜欢列表
下一页
评论列表
Built with