证件照规格列表

接口地址:https://api.zheyings.cn/item/list

请求方式:POST(application/x-www-form-urlencoded)

返回格式:json

接口费用:调用免费

请求参数:

名称 必填 类型 说明
key string 应用的key

返回参数:

名称 类型 说明
code int 状态码
msg string 返回说明
data array 数据集

JSON返回示例:

{
    "data": {
        "list":[
             {
                "item_id": "1",
                "name": "一寸",
                "color": "['blue','white','red','tint','grey','gradient','dark_blue']",
                "width_px": "295",
                "height_px": "413",
                "width_mm": "25",
                "height_mm": "35",
                "dpi": "300",
                "file_size_msg": "",
            }
        ]
    },
    "code": 0,
    "msg": "success"
}

证件照规格详情

接口地址:https://api.zheyings.cn/item/get

请求方式:POST(application/x-www-form-urlencoded)

返回格式:json

接口费用:调用免费

请求参数:

名称 必填 类型 说明
key string 应用的key
item_id int 规格id,《查看规格列表》

返回参数:

名称 类型 说明
code int 状态码
msg string 返回说明
data array 数据集

JSON返回示例:

{
    "data": {
        "id": "1",
        "name": "一寸",
        "color": "['blue','white','red','tint','grey','gradient','dark_blue']",
        "width_px": "295",
        "height_px": "413",
        "width_mm": "25",
        "height_mm": "35",
        "sort": "100",
        "file_size_msg": "",
        "dpi": "300",
        "file_size_min": "0",
        "file_size_max": "0",
        "category": "1",
        "category_id": "0"
    },
    "code": 0,
    "msg": "提交成功"
}

获取账号信息

接口地址:https://api.zheyings.cn/user/info

请求方式:POST(application/x-www-form-urlencoded)

返回格式:json

接口费用:调用免费,数据有10分钟延迟。

请求参数:

名称 必填 类型 说明
access_token string 用户中心/账户信息获取

返回参数:

名称 类型 说明
code int 状态码
msg string 返回说明
data array 数据集

JSON返回示例:

{
    "data": {
        "mobile": "17600000000", #登录账号
        "money": "74.966",       #余额
        "app_num": "26"          #应用数量
        "day_make": "5"          #今日调用
    },
    "code": 0,
    "msg": "提交成功"
}

获取应用信息

接口地址:https://api.zheyings.cn/user/app

请求方式:POST(application/x-www-form-urlencoded)

返回格式:json

接口费用:调用免费,数据有10分钟延迟。

请求参数:

名称 必填 类型 说明
access_token string 用户中心/账户信息获取
key string 应用的key

返回参数:

名称 类型 说明
code int 状态码
msg string 返回说明
data array 数据集

JSON返回示例:

{
    "data": {
        "name": "v5",       #应用名称
        "type": 3,          #应用权限:1=证件照v3,2=证件照v5,3=支持全部,4=证件照回执
        "status": 1,        #状态:0=已停用,1=启用中
        "make_num": "224"   #调用次数
    },
    "code": 0,
    "msg": "提交成功"
}