简要描述:

  • 获取音频列表

请求域名:

  • http://xx.com

请求URL:

POST/route=plugin.audio-book.frontend.audio.get-list

参数:

新增参数 是否必须 类型 说明
book_id int 书籍ID

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "success",
    "data": {
        "data": {
            "current_page": 1,
            "data": [
                {
                    "id": 1,//id
                    "audio_title": "第一章音频",//音频标题
                    "views_count": 7//播放数
                },
                {
                    "id": 9,
                    "audio_title": "3",
                    "views_count": 0
                },
                {
                    "id": 8,
                    "audio_title": "4",
                    "views_count": 0
                },
                {
                    "id": 7,
                    "audio_title": "3",
                    "views_count": 0
                },
                {
                    "id": 6,
                    "audio_title": "3344",
                    "views_count": 0
                },
                {
                    "id": 2,
                    "audio_title": "第二章音频",
                    "views_count": 2
                }
            ],
            "first_page_url": "http://dev.yz/addons/yun_shop/api.php?page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "http://dev.yz/addons/yun_shop/api.php?page=1",
            "next_page_url": null,
            "path": "http://dev.yz/addons/yun_shop/api.php",
            "per_page": 15,
            "prev_page_url": null,
            "to": 6,
            "total": 6
        }
    }
}

错误时返回:

返回参数说明:

参数名 类型 说明