Skip to content

Commit

Permalink
添加话题文档
Browse files Browse the repository at this point in the history
  • Loading branch information
wherewhere committed Dec 21, 2024
1 parent 37b9b78 commit 2da4839
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions Coolapk-API/门类/话题.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# 话题

## 话题详情

> https://api.coolapk.com/v6/topic/tagDetail
*请求方式:GET*

认证方式:X-App-Token

### URL 参数:

| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| - | - | - | - | - |
| tag | num \| string | ID | 必要 | 话题 ID 或名称 |

### JSON 回复

根对象:

| 字段 | 类型 | 内容 | 备注 |
| - | - | - | - |
| data | obj | 信息本体 | |

## 话题详情(新)

> https://api.coolapk.com/v6/topic/newTagDetail
*请求方式:GET*

认证方式:X-App-Token

### URL 参数:

| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| - | - | - | - | - |
| tag | num \| string | ID | 必要 | 话题 ID 或名称 |

### JSON 回复

根对象:

| 字段 | 类型 | 内容 | 备注 |
| - | - | - | - |
| data | obj | 信息本体 | |

## 所属动态

> https://api.coolapk.com/v6/topic/tagFeedList
*请求方式:GET*

认证方式:X-App-Token

### URL 参数:

| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| - | - | - | - | - |
| tag | num \| string | ID | 必要 | 话题 ID 或名称 |
| listType | str | 排序 | 非必要 | `lastupdate_desc`: 最近回复</br>`dateline_desc`: 最近发布</br>`popular`: 热门动态 |
| page | num | 页数 | 必要 |`1`|
| firstItem | num | 首个卡片 ID | 非必要 | 一般为第一个页面的第一个卡片 |
| lastItem | num | 末个卡片 ID | 非必要 | 一般为上个页面的最后一个卡片 |

### JSON 回复

根对象:

| 字段 | 类型 | 内容 | 备注 |
| - | - | - | - |
| data | array | 信息本体 | |

0 comments on commit 2da4839

Please sign in to comment.