消息墙 RESTful Api 接口

获取帖子列表

接口地址: https://3yya.com/u/{rel_key}/rest/app/posts

请求方式: get

请求参数:

参数名 类型 必填 描述
search string 搜索的关键字。
page int 默认值:1。返回的页码,从 1 开始。
limit int 默认值:10。返回的帖子数。

返回参数:

参数名 类型 说明
amount int 帖子的总数量。
results list 帖子列表。
content string 帖子内容。
post_id int 帖子 id。
publish_time int 发布时间戳。

JSON 返回示例:

{
    "results": [
        {
            "post_id": 4,
            "content": "这里是三眼鹅",
            "publish_time": 1653645022
        },
        {
            "post_id": 3,
            "content": "这里是三眼鸡",
            "publish_time": 1653645014
        },
        {
            "post_id": 2,
            "content": "这里是三眼鸭",
            "publish_time": 1653645009
        }
    ],
    "amount": 3
}