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

聊天记录

GET
/douyin/message/chat/

请求参数

Query 参数
token
string 
用户鉴权token
必需
to_user_id
string 
对方用户id
必需

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/douyin/message/chat/?token=&to_user_id='

返回响应

🟢200成功
application/json
Body
status_code
string 
必需
状态码,0-成功,其他值-失败
status_msg
string  | null 
返回状态描述
必需
message_list
array [object {3}]  | null 
消息列表
必需
id
integer 
消息id
可选
content
string 
消息内容
可选
create_time
integer <int64>
可选
消息发送时间(时间戳)
示例
{
  "status_code": "string",
  "status_msg": "string",
  "message_list": [
    {
      "id": 0,
      "content": "string",
      "create_time": "string"
    }
  ]
}
上一页
发送消息
Built with