api接口文档

GET

视频列表

简要描述:


  • 视频列表

请求域名 :



请求url:


route=member.shopvideo.getMyvideoList

参数:


参数名是否必须说明
shop_id店铺id
page分页

返回示例:


正确时返回:

{
    "result": 1,
    "msg": "list",
    "data": {
        "listtemp": {
            "total": 10,
            "per_page": 20,
            "current_page": 1,
            "last_page": 1,
            "next_page_url": null,
            "prev_page_url": null,
            "from": 1,
            "to": 10,
            "data": [
                {
                    "id": 63,
                    "uniacid": 4,
                    "store_id": 96,
                    "status": 0,
                    "title": "五一全国1.15亿人次出游",
                    "thumb": "https://cdn.we7.miotchina.com/videos/0/2020/04/01efce738eab0613a8f1a355394837ae.mp4",
                    "description": "五一全国1.15亿人次出游",
                    "is_recommand": 1,
                    "is_deleted": 0,
                    "created_at": 1588745709,
                    "deleted_at": null,
                    "updated_at": 1588746128,
                    "sort": null,
                    "ctr": null,
                    "uid": 1896,
                    "created_at_str": "2020-05-06 14:15:09",
                    "deleted_at_str": "1970-01-01 08:00:00",
                    "updated_at_str": "2020-05-06 14:22:08",
                    "uidstr": "pumpkin胖胖"
                },
                {
                    "id": 64,
                    "uniacid": 4,
                    "store_id": 96,
                    "status": 1,
                    "title": "隧道下车放三角牌被追尾",
                    "thumb": "https://cdn.we7.miotchina.com/videos/0/2020/04/1b615f834d249b6223d3412e4ff76176.mp4",
                    "description": "隧道下车放三角牌被追尾",
                    "is_recommand": 1,
                    "is_deleted": 0,
                    "created_at": 1588745784,
                    "deleted_at": null,
                    "updated_at": 1588745784,
                    "sort": null,
                    "ctr": 2,
                    "uid": 1896,
                    "created_at_str": "2020-05-06 14:16:24",
                    "deleted_at_str": "1970-01-01 08:00:00",
                    "updated_at_str": "2020-05-06 14:16:24",
                    "uidstr": "pumpkin胖胖"
                },
                {
                    "id": 65,
                    "uniacid": 4,
                    "store_id": 96,
                    "status": 1,
                    "title": "美国新冠肺炎超120万例",
                    "thumb": "https://cdn.we7.miotchina.com/videos/0/2020/04/1b615f834d249b6223d3412e4ff76176.mp4",
                    "description": "美国新冠肺炎超120万例",
                    "is_recommand": 0,
                    "is_deleted": 0,
                    "created_at": 1588745798,
                    "deleted_at": null,
                    "updated_at": 1588745798,
                    "sort": null,
                    "ctr": null,
                    "uid": 1896,
                    "created_at_str": "2020-05-06 14:16:38",
                    "deleted_at_str": "1970-01-01 08:00:00",
                    "updated_at_str": "2020-05-06 14:16:38",
                    "uidstr": "pumpkin胖胖"
                },
                {
                    "id": 66,
                    "uniacid": 4,
                    "store_id": 96,
                    "status": 1,
                    "title": "养牛场意外挖出深洞",
                    "thumb": "https://cdn.we7.miotchina.com/videos/0/2020/04/1b615f834d249b6223d3412e4ff76176.mp4",
                    "description": "",
                    "is_recommand": 0,
                    "is_deleted": 0,
                    "created_at": 1588745814,
                    "deleted_at": null,
                    "updated_at": 1588745814,
                    "sort": null,
                    "ctr": null,
                    "uid": 1896,
                    "created_at_str": "2020-05-06 14:16:54",
                    "deleted_at_str": "1970-01-01 08:00:00",
                    "updated_at_str": "2020-05-06 14:16:54",
                    "uidstr": "pumpkin胖胖"
                },
                {
                    "id": 67,
                    "uniacid": 4,
                    "store_id": 96,
                    "status": 1,
                    "title": "跳桥轻生多人下河救援",
                    "thumb": "https://cdn.we7.miotchina.com/videos/0/2020/04/1b615f834d249b6223d3412e4ff76176.mp4",
                    "description": "",
                    "is_recommand": 1,
                    "is_deleted": 0,
                    "created_at": 1588745918,
                    "deleted_at": null,
                    "updated_at": 1588745918,
                    "sort": null,
                    "ctr": null,
                    "uid": 1896,
                    "created_at_str": "2020-05-06 14:18:38",
                    "deleted_at_str": "1970-01-01 08:00:00",
                    "updated_at_str": "2020-05-06 14:18:38",
                    "uidstr": "pumpkin胖胖"
                },
                {
                    "id": 68,
                    "uniacid": 4,
                    "store_id": 96,
                    "status": 1,
                    "title": "回应今年两次发射失利",
                    "thumb": "https://cdn.we7.miotchina.com/videos/0/2020/04/1b615f834d249b6223d3412e4ff76176.mp4",
                    "description": "",
                    "is_recommand": 1,
                    "is_deleted": 0,
                    "created_at": 1588745933,
                    "deleted_at": null,
                    "updated_at": 1588745933,
                    "sort": null,
                    "ctr": null,
                    "uid": 1896,
                    "created_at_str": "2020-05-06 14:18:53",
                    "deleted_at_str": "1970-01-01 08:00:00",
                    "updated_at_str": "2020-05-06 14:18:53",
                    "uidstr": "pumpkin胖胖"
                },
                {
                    "id": 69,
                    "uniacid": 4,
                    "store_id": 96,
                    "status": 1,
                    "title": "武汉长江大桥桥面设施受损",
                    "thumb": "https://cdn.we7.miotchina.com/videos/0/2020/04/1b615f834d249b6223d3412e4ff76176.mp4",
                    "description": "",
                    "is_recommand": 1,
                    "is_deleted": 0,
                    "created_at": 1588745957,
                    "deleted_at": null,
                    "updated_at": 1588745957,
                    "sort": null,
                    "ctr": null,
                    "uid": 1896,
                    "created_at_str": "2020-05-06 14:19:17",
                    "deleted_at_str": "1970-01-01 08:00:00",
                    "updated_at_str": "2020-05-06 14:19:17",
                    "uidstr": "pumpkin胖胖"
                },
                {
                    "id": 70,
                    "uniacid": 4,
                    "store_id": 96,
                    "status": 1,
                    "title": "村民种1428株罂粟称喂鹅",
                    "thumb": "https://cdn.we7.miotchina.com/videos/0/2020/04/1b615f834d249b6223d3412e4ff76176.mp4",
                    "description": "",
                    "is_recommand": 1,
                    "is_deleted": 0,
                    "created_at": 1588745969,
                    "deleted_at": null,
                    "updated_at": 1588745969,
                    "sort": null,
                    "ctr": null,
                    "uid": 1896,
                    "created_at_str": "2020-05-06 14:19:29",
                    "deleted_at_str": "1970-01-01 08:00:00",
                    "updated_at_str": "2020-05-06 14:19:29",
                    "uidstr": "pumpkin胖胖"
                },
                {
                    "id": 73,
                    "uniacid": 4,
                    "store_id": 96,
                    "status": 0,
                    "title": "什么鬼aaaaaaa",
                    "thumb": "https://cdn.we7.miotchina.com/videos/0/2020/04/f11e73d21d699a2fcbde0da1a6c22517.mp4",
                    "description": "wo de shiping sdfsdafsadfadf",
                    "is_recommand": 1,
                    "is_deleted": 0,
                    "created_at": 1588818044,
                    "deleted_at": null,
                    "updated_at": 1588818044,
                    "sort": null,
                    "ctr": null,
                    "uid": 1905,
                    "created_at_str": "2020-05-07 10:20:44",
                    "deleted_at_str": "1970-01-01 08:00:00",
                    "updated_at_str": "2020-05-07 10:20:44",
                    "uidstr": "Jun"
                },
                {
                    "id": 74,
                    "uniacid": 4,
                    "store_id": 96,
                    "status": 1,
                    "title": "什么鬼aaaaaaa",
                    "thumb": "https://cdn.we7.miotchina.com/videos/0/2020/04/f11e73d21d699a2fcbde0da1a6c22517.mp4",
                    "description": "wo de shiping sdfsdafsadfadf",
                    "is_recommand": 1,
                    "is_deleted": 0,
                    "created_at": 1588818748,
                    "deleted_at": null,
                    "updated_at": 1588819727,
                    "sort": null,
                    "ctr": null,
                    "uid": 1905,
                    "created_at_str": "2020-05-07 10:32:28",
                    "deleted_at_str": "1970-01-01 08:00:00",
                    "updated_at_str": "2020-05-07 10:48:47",
                    "uidstr": "Jun"
                }
            ]
        }
    }
}

错误时返回:

  • 缺少访问参数 - *
{
    "result": 0,
    "msg": "店铺id为空!",
    "data": []
}



视频推荐列表

简要描述:


  • 视频列表

请求域名 :



请求url:


route=member.shopvideo.getMyvideorecommendList

参数:


参数名是否必须说明
shop_id店铺id

返回示例:


正确时返回:

{
    "result": 1,
    "msg": "recommend list",
    "data": {
        "list": [
            {
                "id": 63,
                "uniacid": 4,
                "store_id": 96,
                "status": 0,
                "title": "五一全国1.15亿人次出游",
                "thumb": "https://cdn.we7.miotchina.com/videos/0/2020/04/01efce738eab0613a8f1a355394837ae.mp4",
                "description": "五一全国1.15亿人次出游",
                "is_recommand": 1,
                "is_deleted": 0,
                "created_at": 1588745709,
                "deleted_at": null,
                "updated_at": 1588746128,
                "sort": null,
                "ctr": null,
                "uid": 1896
            },
            {
                "id": 64,
                "uniacid": 4,
                "store_id": 96,
                "status": 1,
                "title": "隧道下车放三角牌被追尾",
                "thumb": "https://cdn.we7.miotchina.com/videos/0/2020/04/1b615f834d249b6223d3412e4ff76176.mp4",
                "description": "隧道下车放三角牌被追尾",
                "is_recommand": 1,
                "is_deleted": 0,
                "created_at": 1588745784,
                "deleted_at": null,
                "updated_at": 1588745784,
                "sort": null,
                "ctr": 2,
                "uid": 1896
            },
            {
                "id": 67,
                "uniacid": 4,
                "store_id": 96,
                "status": 1,
                "title": "跳桥轻生多人下河救援",
                "thumb": "https://cdn.we7.miotchina.com/videos/0/2020/04/1b615f834d249b6223d3412e4ff76176.mp4",
                "description": "",
                "is_recommand": 1,
                "is_deleted": 0,
                "created_at": 1588745918,
                "deleted_at": null,
                "updated_at": 1588745918,
                "sort": null,
                "ctr": null,
                "uid": 1896
            }
        ]
    }
}

错误时返回:

  • 缺少访问参数 - *
{
    "result": 0,
    "msg": "shop_id is null!",
    "data": []
}



根据id查找视频

简要描述:


  • 根据id查找视频

请求域名 :



请求url:


route=member.shopvideo.findMyvideo

参数:


参数名是否必须说明
shop_id店铺id
video_id视频id

返回示例:


正确时返回:

{
    "result": 1,
    "msg": "find",
    "data": {
        "yz_store_videos": {
            "id": 70,
            "uniacid": 4,
            "store_id": 96,
            "status": 1,
            "title": "村民种1428株罂粟称喂鹅",
            "thumb": "https://cdn.we7.miotchina.com/videos/0/2020/04/1b615f834d249b6223d3412e4ff76176.mp4",
            "description": "",
            "is_recommand": 1,
            "is_deleted": 0,
            "created_at": 1588745969,
            "deleted_at": null,
            "updated_at": 1588745969,
            "sort": null,
            "ctr": 0,
            "uid": 1896,
            "created_at_str": "2020-05-06 14:19:29",
            "deleted_at_str": "1970-01-01 08:00:00",
            "updated_at_str": "2020-05-06 14:19:29",
            "uidstr": "pumpkin胖胖"
        }
    }
}

错误时返回:

  • 缺少访问参数 - *
{
    "result": 0,
    "msg": "video_id is null!",
    "data": []
}
{
    "result": 0,
    "msg": "shop_id is null!",
    "data": []
}



POST

增加视频记录

简要描述:


  • 增加视频记录

请求域名 :



请求url:


route=member.shopvideo.addMyvideo

参数:


参数名是否必须说明
title标题
url云地址
description描述
is_recommand是否推荐 :1

返回示例:


正确时返回:

{
    "result": 1,
    "msg": "add success",
    "data": []
}

错误时返回:

  • 缺少访问参数 - *
  • 保存失败
{
    "result": 0,
    "msg": "url is null !",
    "data": []
}
{
    "result": 0,
    "msg": "add fail",
    "data": []
}



删除视频记录

简要描述:


  • 删除视频记录

请求域名 :



请求url:


route=member.shopvideo.delMyvideo

参数:


参数名是否必须说明
video_id视频id

返回示例:


正确时返回:

{
    "result": 1,
    "msg": "del success",
    "data": []
}

错误时返回:

  • 没有权限
  • 缺少访问参数 - *
  • 失败
{
    "result": 0,
    "msg": "您不是店员,或者已被禁用,所以无法操作哦!!",
    "data": []
}
{
    "result": 0,
    "msg": "not found",
    "data": []
}
{
    "result": 0,
    "msg": "del fail",
    "data": []
}



修改视频记录

简要描述:


  • 修改视频记录

请求域名 :



请求url:


route=member.shopvideo.modifyMyvideo

参数:


参数名是否必须说明
video_id视频id
title标题
url云地址
description描述
is_recommand是否推荐 :1

返回示例:


正确时返回:

{
    "result": 1,
    "msg": "modify success",
    "data": []
}

错误时返回:

  • 没有权限
  • 缺少访问参数 - *
  • 失败
{
    "result": 0,
    "msg": "您不是店员,或者已被禁用,所以无法操作哦!!",
    "data": []
}
{
    "result": 0,
    "msg": "not found",
    "data": []
}
{
    "result": 0,
    "msg": "modify fail",
    "data": []
}



增加点击率

简要描述:


  • 增加视频点击率

请求域名 :



请求url:


route=member.shopvideo.modifyMyvideoCtr

参数:


参数名是否必须说明
video_id视频id

返回示例:


正确时返回:

{
    "result": 1,
    "msg": "modify success",
    "data": []
}

错误时返回:

  • 缺少访问参数 - 视频ID
  • 视频id不正确
{
    "result": 0,
    "msg": "not found",
    "data": []
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值