描述
该接口与普通获取文章列表接口一致,不同的是此接口在用户未登录或者未购买该文章之前,不会直接显示文章内容。
更新
- 2020.10.27上线
文档
接口地址(GET):xxx.com/api/v1/paid/get-post-list/
字段
字段名称 | 类型 | 字段说明 |
---|---|---|
page | int | 页码 |
number | int | 每页展示数量 |
if_cat | int | 是否显示分类信息,0为否,1为是 |
if_tag | int | 是否显示标签信息,0为否,1为是 |
if_text | int | 是否显示全文,0为否,1为是 |
exclude_post | String | 需要排除的文章id,用英文逗号分隔 |
exclude_cat | String | 需要排除的分类id,用英文逗号分隔 |
exclude_tag | String | 需要排除的标签id,用英文逗号分隔 |
excludeauthor | String | 需要排除的作者id,用英文逗号分隔 |
order | int | 排序:1(DESC) 2(ASC),DESC |
orderby | int | 排序方式,详情见下个表格 |
orderby值 | 含义 |
---|---|
0或者不填 | 时间排序 |
1 | 根据ID排序 |
2 | 根据作者排序 |
3 | 根据最后修改时间排序 |
4 | 随机 |
5 | 根据评论数量排序 |
6 | 根据页面序号排序 |
演示地址:https://poem.clearnull.com/api/v1/paid/get-post-list/?if_cat=1
本文由 3C3IT 发布在 sliver-rest-wp-api官网,转载此文请保持文章完整性,并请附上文章来源(sliver-rest-wp-api官网)及本页链接。
原文链接:https://api.3c3it.com/717.html
原文链接:https://api.3c3it.com/717.html