手机壁纸API

这篇博客详细介绍了如何使用手机和电脑壁纸API,包括获取壁纸、类别、评论、下载等功能,提供了接口URL、参数解析及示例JSON响应。
摘要由CSDN通过智能技术生成

不分类别获取壁纸接口

url:http://service.picasso.adesk.com/v1/vertical/vertical

拼接参数:

  • limit:返回数量
  • adult:布尔值,暂时未知
  • first:数字,如1
  • skip:略过数量
  • order:值 hot为favs, new

url 示例:http://service.picasso.adesk.com/v1/vertical/vertical?limit=30&skip=180&adult=false&first=0&order=hot

json 示例:

{
"msg": "success",
"res": {
    "vertical": [
        {
            "preview": "http://img5.adesk.com/595de628e7bce77b95a5968f",
            "thumb": "http://img5.adesk.com/595de628e7bce77b95a5968f?imageMogr2/thumbnail/!350x540r/gravity/Center/crop/350x540",
            "img": "http://img5.adesk.com/595de628e7bce77b95a5968f?imageMogr2/thumbnail/!720x1280r/gravity/Center/crop/720x1280",
            "views": 0,
            "cid": [
                "4e4d610cdf714d2966000002"
            ],
            "ncos": 10,
            "rank": 221797,
            "url": [
            ],
            "tag": [
                "海",
                "海浪",
                "蓝色",
                "风景",
                "沙滩"
            ],
            "rule": "?imageMogr2/thumbnail/!$<Width>x$<Height>r/gravity/Center/crop/$<Width>x$<Height>",
            "wp": "http://img5.adesk.com/595de628e7bce77b95a5968f",
            "xr": false,
            "cr": false,
            "favs": 1725,
            "atime": 1500618604,
            "id": "595de628e7bce77b95a5968f",
            "store": "qiniu",
            "desc": ""
        }
    ]
},
"code": 0

}

解析:

  • msg:响应信息
  • res:返回的数据
    • vertical:返回的壁纸数据
      • preview:壁纸地址
      • thumb:小缩略图地址
      • img:大缩略图地址
      • views:查看数
      • cid:所属的类别ID
    • rank:点赞数
    • tag:壁纸标签
    • rule:返回不同大小壁纸规则
    • wp:手机版下载地址
    • favs:收藏数
    • atime:创建时间(单位:秒)
    • id:ID
    • store:云服务器地址
    • desc:描述
  • code:返回码

获取手机壁纸类别

url:http://service.picasso.adesk.com/v1/vertical/category

拼接参数:

  • adult:布尔值,暂时未知
  • first:数字,如1

url 示例:http://service.picasso.adesk.com/v1/vertical/category?adult=false&first=1

json 示例:

{
"msg": "success",
"res": {
    "category": [
        {
            "ename": "girl",
            "atime": 1291266021,
            "name": "美女",
            "cover": "http://img0.adesk.com/download/57e7155894e5cc60a375f653",
            "sn": 1,
            "nimgs": 0,
            "uid": null,
            "type": 1,
            "id": "4e4d610cdf714d2966000000",
            "desc": ""
        },
        {
            "ename": "animation",
            "atime": 1291266057,
            "name": "动漫",
            "cover": "http://img0.adesk.com/download/57e1111069401b6ca3675092",
            "sn": 2,
            "nimgs": 0,
            "uid": null,
            "type": 1,
            "id": "4e4d610cdf714d2966000003",
            "desc": ""
        },
        {
            "ename": "landscape",
            "atime": 1291266049,
            "name": "风景",
            "cover": "http://img0.adesk.com/download/57e9b82f94e5cc0a9e3e4148",
            "sn": 3,
            "nimgs": 0,
            "uid": null,
            "type": 1,
            "id": "4e4d610cdf714d2966000002",
            "desc": ""
        },
        {
            "ename": "game",
            "atime": 1300683934,
            "name": "游戏",
            "cover": "http://img0.adesk.com/download/57e4719c94e5cc3320a842d6",
            "sn": 4,
            "nimgs": 0,
            "uid": null,
            "type": 1,
            "id": "4e4d610cdf714d2966000007",
            "desc": ""
        },
        {
            "ename": "text",
            "atime": 1359601742,
            "name": "文字",
            "cover": "http://img0.adesk.com/download/57e3a91869401b37277ebd8f",
            "sn": 5,
            "nimgs": 0,
            "uid": null,
            "type": 1,
            "id": "5109e04e48d5b9364ae9ac45",
            "desc": ""
        },
        {
            "ename": "vision",
            "atime": null,
            "name": "视觉",
            "cover": "http://img0.adesk.com/download/57e374d094e5cc14c62ac7ff",
            "sn": 6,
            "nimgs": 0,
            "uid": null,
            "type": 1,
            "id": "4fb479f75ba1c65561000027",
            "desc": ""
        },
        {
            "ename": "emotion",
            "atime": null,
            "name": "情感",
            "cover": "http://img0.adesk.com/download/57e9b7f994e5cc0a9e3e3fdb",
            "sn": 7,
            "nimgs": 0,
            "uid": null,
            "type": 1,
            "id": "4ef0a35c0569795756000000",
            "desc": ""
        },
        {
            "ename": "creative",
            "atime": null,
            "name": "设计",
            "cover": "http://img0.adesk.com/download/57e4aacc94e5cc3204926349",
            "sn": 8,
            "nimgs": 0,
            "uid": null,
            "type": 1,
            "id": "4fb47a195ba1c60ca5000222",
            "desc": ""
        },
        {
            "ename": "celebrity",
            "atime": 1359601746,
            "name": "明星",
            "cover": "http://img0.adesk.com/download/57d6291794e5cc1662ab12b4",
            "sn": 9,
            "nimgs": 0,
            "uid": null,
            "type": 1,
            "id": "5109e05248d5b9368bb559dc",
            "desc": ""
        },
        {
            "ename": "stuff",
            "atime": null,
            "name": "物语",
            "cover": "http://img0.adesk.com/download/57e3cab494e5cc4d4267546b",
            "sn": 10,
            "nimgs": 0,
            "uid": null,
            "type": 1,
            "id": "4fb47a465ba1c65561000028",
            "desc": ""
        },
        {
            "ename": "art",
            "atime": null,
            "name": "艺术",
            "cover": "http://img0.adesk.com/download/57e3ad7794e5cc0dfd73401e",
            "sn": 11,
            "nimgs": 0,
            "uid": null,
            "type": 1,
            "id": "4ef0a3330569795757000000",
            "desc": ""
        },
        {
            "ename": "man",
            "atime": 1298251540,
            "name": "男人",
            "cover": "http://img0.adesk.com/download/57e3cb3594e5cc4d426756e2",
            "sn": 12,
            "nimgs": 0,
            "uid": null,
            "type": 1,
            "id": "4e4d610cdf714d2966000006",
            "desc": ""
        },
        {
            "ename": "cartoon",
            "atime": 1291266067,
            "name": "卡通",
            "cover": "http://img0.adesk.com/download/57e8655394e5cc322c85cffc",
            "sn": 13,
            "ni
  • 1
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

夕夜_如风

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值