空间H5游戏-后台接口

/v3/pet/get_my_pets

pf=qzone pf=wanba_ts

拉取用户“我的”宠物数据。

URL

https://api.urlshare.cn/v3/pet/get_my_pets

返回参数说明

参数名称 描述
account
candy 用户糖果数
pets
id 宠物id
avatar_file 宠物缩略图信息。可通过url拉取
model_file 宠物当前阶段的模型文件,可通过url获得spine模型zip包。将.zip替换为.json、.png、.atlas可拉取zip包中对应模型文件
model_images 宠物装扮列表,key为模型中需要替换的附件名,value为目标图片文件信息,可通过url拉取
uuid 用户领养的宠物的全局唯一id
name 宠物名字
birth_time 宠物出生(领养)时间戳
level 宠物等级
score 宠物经验值
phase 宠物当前成长阶段
food_amount 宠物食物量
user
score 用户经验值
level 用户等级
titleV2 用户称号

正确返回示例

{
    "code":0,
    "subcode":0,
    "message":"",
    "default":0,
    "data":{
        "account": {
            "candy": 135038
        },
        "pets": [
            {
                "avatar_file": {
                    "file_id": 6649,
                    "file_type": 10,
                    "height": 80,
                    "md5": "eed61de14dcd5d5df272583efbc6125c",
                    "name": "Yshaonian.png",
                    "size": 2964,
                    "url": "http://qzonestyle.gtimg.cn/qzone/space_item/qzone_pet/PetUniverse/org/2/12402/Yshaonian.png",
                    "width": 80
                },
                "birth_time": 1498472582,
                "food_amount": 60,
                "id": 12402,
                "level": 1,
                "model_file": {
                    "file_id": 6650,
                    "file_type": 20,
                    "height": 0,
                    "md5": "5ca26fff2dee05b66bec69d7831e0ef4",
                    "name": "sheep_phase1_20170524.zip",
                    "size": 104487,
                    "url": "http://qzonestyle.gtimg.cn/qzone/space_item/qzone_pet/PetUniverse/org/2/12402/sheep_phase1_20170524.zip",
                    "width": 0
                },
                "model_images": {
                    "skin_body01": {
                        "file_id": 5828,
                        "file_type": 10,
                        "height": 270,
                        "md5": "ff4e85c5c9ecf5657830a5882721697e",
                        "name": "skin_body01_1129.png",
                        "size": 138,
                        "url": "http://qzonestyle.gtimg.cn/qzone/space_item/qzone_pet/PetSkin/org/6/12022/skin_body01_1129.png",
                        "width": 430
                    }
                },
                "model_key": "sheep_phase1_20170524",
                "name": "咩咩",
                "phase": 1,
                "score": 10,
                "uuid": "A890B93771034A3CBCB4CB136B8A4FB1"
            }
        ],
        "user": {
            "level": 14,
            "score": 69905,
            "titleV2": "驯宠萌新I"
        }
    }
}