RSS 订阅 API
获取 RSS 源列表
GET /reader3/getRssSources响应:
json
{
"success": true,
"data": [
{
"sourceUrl": "https://example.com/feed.xml",
"sourceName": "RSS源名称",
"enabled": true
}
],
"errorMsg": null
}添加 RSS 源
POST /reader3/saveRssSource请求体:
json
{
"sourceUrl": "https://example.com/feed.xml",
"sourceName": "RSS源名称",
"enabled": true
}删除 RSS 源
POST /reader3/deleteRssSource请求体:
json
{
"sourceUrl": "https://example.com/feed.xml"
}获取 RSS 内容
GET /reader3/getRssContent查询参数:
url- RSS 源URLpage- 页码
响应:
json
{
"success": true,
"data": [
{
"title": "文章标题",
"link": "https://...",
"description": "摘要",
"pubDate": "2024-01-01"
}
],
"errorMsg": null
}