跳转到主要内容

获取相册列表

获取相册列表

  • 接口地址:/api/v2/albums
  • 请求类型:POST
  • 数据类型:form-data

注意:如果您的账号不是在imgurl.org注册,请改成对应服务商的域名。

请求参数

参数名类型是否必须参数说明
uidstring通过ImgURL后台获取
tokenstring通过ImgURL后台获取

请求成功

请求成功返回的JSON格式如下

{
    "code": 200,
    "msg": "",
    "data": [
        {
            "album_id": "5",
            "user_email": "xxx@qq.com",
            "user_uid": "xxx",
            "name": "大苏打1",
            "description": "大苏打1",
            "create_date": "2023-11-02 16:03:57",
            "update_date": "2023-11-02 16:56:16",
            "is_private": "1",
            "password": null,
            "cover": null
        },
        {
            "album_id": "4",
            "user_email": "xxx@qq.com",
            "user_uid": "xxx",
            "name": "你好啊",
            "description": "你好啊",
            "create_date": "2023-11-02 16:03:37",
            "update_date": "2023-11-02 16:03:37",
            "is_private": "1",
            "password": null,
            "cover": null
        }
    ]
}
  • code:状态码:200视为成功,其余为失败
  • msg:错误消息,成功时为空,否则返回具体错误
  • data.id:相册ID
  • data.name:相册名称

请求失败

{
    "code": -1000,
    "msg": "您没有权限,请先登录!",
    "data": ""
}