Skip to content

Latest commit

 

History

History
101 lines (88 loc) · 3.99 KB

图片相册接口.md

File metadata and controls

101 lines (88 loc) · 3.99 KB

4. 图片相册接口

说明: 包括 Cosplay相册、花瓣相册:

4.1 cosplay 相册

必选参数: page 分页数 10 20 30

接口地址: /Picture/index?page=20

调用例子: //api.isoyu.com/api/picture/index?page=20

返回数据(每次返回是10条数据,这里就不全部列出来了)如下图:

{
    "msg": "success",
    "code": 1,
    "data": [
        {
            "desc": "喜欢神奇宝贝的人一定都知道鲤鱼王。这个特别的精灵没有特别强大的能力,除了长相呆萌,好像没有其他优点。不过下面这名男子却对这个超弱的精灵情有独钟,他戴着鲤鱼王面具大玩Cosplay,照片被上传到网路后立刻成为网友们热议的话题。",
            "pvnum": "",
            "createdate": "2017-01-11 01:39:21",
            "scover": "http://img3.cache.netease.com/photo/0031/2017-01-11/s_CAFBLLL26LRK0031.jpg",
            "setname": "靠Cosplay鲤鱼王而走红的型男真面目",
            "cover": "http://img3.cache.netease.com/photo/0031/2017-01-11/CAFBLLL26LRK0031.jpg",
            "pics": [
                "http://img3.cache.netease.com/photo/0031/2017-01-11/CAFBLLL26LRK0031.jpg",
                "http://img4.cache.netease.com/photo/0031/2017-01-11/CAFBLLTT6LRK0031.jpg",
                "http://img4.cache.netease.com/photo/0031/2017-01-11/CAFBLM0J6LRK0031.jpg"
            ],
            "clientcover1": "",
            "replynum": "57",
            "topicname": "",
            "setid": "91744",
            "seturl": "http://play.163.com/photoview/6LRK0031/91744.html",
            "datetime": "2017-01-11 01:42:32",
            "clientcover": "",
            "imgsum": "7",
            "tcover": "http://img4.cache.netease.com/photo/0031/2017-01-11/t_CAFBLLL26LRK0031.jpg"
        },
        {
            "desc": "最后要推荐的一组图是台湾Coser:Mon小夢夢的最新作品——菲利克斯COS。在原作里,这位角色拥有着不属于女性的萌系着装以及言行举止,然而事实上却是个真·汉子......",
            "pvnum": "",
            "createdate": "2017-01-10 10:58:46",
            "scover": "http://img4.cache.netease.com/photo/0031/2017-01-10/s_CADP9L5P6LRK0031.jpg",
            "setname": "灵魂陷入危机之中 Re:0菲利克斯COS",
            "cover": "http://img3.cache.netease.com/photo/0031/2017-01-10/CADP9L5P6LRK0031.jpg",
            "pics": [
                "http://img3.cache.netease.com/photo/0031/2017-01-10/CADP9L5P6LRK0031.jpg",
                "http://img3.cache.netease.com/photo/0031/2017-01-10/CADP9JU36LRK0031.jpg",
                "http://img4.cache.netease.com/photo/0031/2017-01-10/CADP9K7J6LRK0031.jpg"
            ],
            "clientcover1": "",
            "replynum": "0",
            "topicname": "",
            "setid": "91731",
            "seturl": "http://play.163.com/photoview/6LRK0031/91731.html",
            "datetime": "2017-01-10 11:00:15",
            "clientcover": "",
            "imgsum": "5",
            "tcover": "http://img3.cache.netease.com/photo/0031/2017-01-10/t_CADP9L5P6LRK0031.jpg"
        }
    ]
}

4.2 花瓣照片相册

必选参数: 每次生成20条随机数据

接口地址: /Picture/hua_ban

调用例子: https://api.isoyu.com/api/Picture/hua_ban

返回数据(每次返回是20条数据,这里就不全部列出来了)如下图:

{
    "msg": "success",
    "code": 1,
    "data": [
        {
            "img": "http://img.hb.aicdn.com/623a6284b7fb7cc297bfadaf101a07677817136543f3a-ksxY2x",
            "title": "小清新女生",
            "desc": "唯美气息"
        },
        
        {
            "img": "http://img.hb.aicdn.com/1130866c1c6b90456f0488d2d42279740740c97d6d805-DHmPo2",
            "title": "小清新女生",
            "desc": "唯美气息"
        }
    ]
}