极简版抖音
  1. 社交接口
极简版抖音
  • 基础接口
    • 视频流接口
      GET
    • 刷新token
      GET
    • 用户信息
      GET
    • 用户注册
      POST
    • 用户登录
      POST
    • 投稿接口
      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
必需
pre_msg_time
string 
必需

示例代码

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=&pre_msg_time'

返回响应

🟢200成功
application/json
Body
status_code
integer 
必需
状态码,0-成功,其他值-失败
status_msg
string  | null 
返回状态描述
可选
message_list
array[object (Message) {5}]  | null 
消息列表
必需
id
integer 
消息id
必需
to_user_id
integer 
消息接收者id
必需
from_user_id
integer 
消息发送者id
必需
content
string 
消息内容
必需
create_time
integer 
必需
消息发送时间,时间戳
示例
{
    "status_code": "string",
    "status_msg": "string",
    "message_list": [
        {
            "id": 0,
            "to_user_id": 0,
            "from_user_id": 0,
            "content": "string",
            "create_time": 0
        }
    ]
}
修改于 2023-10-29 14:41:15
上一页
发送消息
Built with