go-common/app/service/live/resource/api/grpc/v1/api.resource.md
2019-04-22 18:49:16 +08:00

3.8 KiB

##Add 添加资源接口

GET http://api.live.bilibili.com/xlive/resource/v1/resource/Add

请求参数

参数名 必选 类型 描述
platform string
title string
jumpPath string
jumpTime integer
type string
device string
startTime string
endTime string
imageUrl string
jumpPathType integer
{
    "code": 0,
    "message": "ok",
    "data": {
        "id": [
            0
        ]
    }
}

##Add 添加资源接口(不限制位置和平台)

GET http://api.live.bilibili.com/xlive/resource/v1/resource/AddEx

请求参数

参数名 必选 类型 描述
platform string
title string
jumpPath string
jumpTime integer
type string
device string
startTime string
endTime string
imageUrl string
jumpPathType integer
{
    "code": 0,
    "message": "ok",
    "data": {
        "id": [
            0
        ]
    }
}

##Edit 编辑资源接口

GET http://api.live.bilibili.com/xlive/resource/v1/resource/Edit

请求参数

参数名 必选 类型 描述
platform string
id integer
title string
jumpPath string
jumpTime integer
startTime string
endTime string
imageUrl string
jumpPathType integer
{
    "code": 0,
    "message": "ok",
    "data": {
    }
}

##Offline 下线资源接口

GET http://api.live.bilibili.com/xlive/resource/v1/resource/Offline

请求参数

参数名 必选 类型 描述
platform string
id integer
{
    "code": 0,
    "message": "ok",
    "data": {
    }
}

##GetList 获取资源列表

GET http://api.live.bilibili.com/xlive/resource/v1/resource/GetList

请求参数

参数名 必选 类型 描述
platform string
page integer
pageSize integer
type string
{
    "code": 0,
    "message": "ok",
    "data": {
        "currentPage": 0,
        "totalCount": 0,
        "list": [
            {
                "id": 0,
                "title": "",
                "jumpPath": "",
                "device_platform": "",
                "device_build": 0,
                "startTime": "",
                "endTime": "",
                "status": 0,
                "device_limit": 0,
                "imageUrl": "",
                "jumpPathType": 0,
                "jumpTime": 0
            }
        ]
    }
}

##获取平台列表

GET http://api.live.bilibili.com/xlive/resource/v1/resource/GetPlatformList

请求参数

参数名 必选 类型 描述
type integer
{
    "code": 0,
    "message": "ok",
    "data": {
        "platform": [
            ""
        ]
    }
}

##GetListEx 获取资源列表

GET http://api.live.bilibili.com/xlive/resource/v1/resource/GetListEx

请求参数

参数名 必选 类型 描述
platform string
page integer
pageSize integer
type 多个string
device_platform string
status string
startTime string
endTime string
{
    "code": 0,
    "message": "ok",
    "data": {
        "currentPage": 0,
        "totalCount": 0,
        "list": [
            {
                "id": 0,
                "title": "",
                "jumpPath": "",
                "device_platform": "",
                "device_build": 0,
                "startTime": "",
                "endTime": "",
                "status": 0,
                "device_limit": 0,
                "imageUrl": "",
                "jumpPathType": 0,
                "jumpTime": 0,
                "type": ""
            }
        ]
    }
}