- Forum 论坛
- User 用户
- Thread 帖子
- Board 板块
- App 应用
- Comment 评论
- Admin 管理员
- Tag 标签
- File 文件
Post 发布帖子
POST
/thread/post
请求参数
Cookie 参数
qf_token
string
用户凭证
示例值:
430b1667-b1e2-416a-aee4-20a077998672
Body 参数multipart/form-data
title
帖子标题
示例值:
Hello World!
content
必需
示例值:
I'm glad to see you all.
boardId
BID
示例值:
1
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/thread/post' \
--header 'Cookie: qf_token=430b1667-b1e2-416a-aee4-20a077998672' \
--form 'title="Hello World!"' \
--form 'content="I'\''m glad to see you all."' \
--form 'boardId="1"'
返回响应
🟢200成功
application/json
Body
code
integer
200
msg
string
success
data
object
数据
id
integer
TID
title
string
帖子标题
publisher
object
帖子作者
postTime
string
发布时间
content
string
帖子内容
board
object
所属板块
likeList
string
点赞 UID 列表
示例
{
"code": 0,
"msg": "string",
"data": {
"id": 0,
"title": "string",
"publisher": {
"id": 0,
"userName": "string",
"email": "string",
"admin": true,
"official": "string",
"introduction": "string",
"avatarUrl": "string"
},
"postTime": "string",
"content": "string",
"board": {
"id": 0,
"name": "string",
"priorityLevel": 0,
"description": "string"
},
"likeList": "string"
}
}