文档中心 > API类目 > 淘宝互动平台开放招募

taobao.interaction.tblife.user.figure.get (获取(当前)用户形象)

获取(当前)用户形象

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述

响应参数

名称 类型 示例值 描述
output OpenResponse 响应信息
  • └ trace_id
  • String
  • xxx
  • 追踪id
  • └ msg
  • String
  • xxx
  • 响应信息(通常用于请求报错时,返回报错信息)
  • └ code
  • String
  • xxx
  • 响应码
  • data
  • OpenUserFigureDTO
  • 业务数据
  • └ user_id
  • String
  • xxx
  • 用户id
  • └ sex
  • String
  • MALE
  • 性别
  • └ half_pic
  • String
  • https://xxx
  • 半身照
  • clothes
  • OpenClothesDTO []
  • 衣服
  • └ id
  • Number
  • 123
  • 衣服id
  • └ type
  • String
  • coat
  • 衣服类型
  • mesh_info
  • OpenMeshInfoDTO
  • 衣服换装信息
  • └ sex
  • Number
  • 1
  • 衣服模型的性别信息,只有男女,男 1 女 0
  • └ mesh_id
  • String
  • xxx
  • 模型id
  • └ material_id
  • String
  • xxx
  • 材质id
  • └ high_toe
  • Number
  • 1
  • 高跟鞋(1代表开启高跟鞋,0或不填代表关闭高跟鞋)
  • └ sub_type
  • String
  • xxx
  • 子类型,目前是手持物相关
  • └ bone
  • String
  • xxx
  • 骨骼信息,目前只有手持物才有
  • └ uuid
  • String
  • xxx
  • 新美术流程资源唯一标识
  • └ is_new
  • Boolean
  • true
  • 是否是新美术流程
  • └ art_extras
  • String
  • {}
  • 新美术流程相关属性 gltf
  • └ cocos_support
  • Boolean
  • true
  • 是否支持cocos引擎
  • └ ue_support
  • Boolean
  • true
  • 是否支持ue引擎
  • └ meta_support
  • Boolean
  • true
  • 是否支持meta引擎
  • motion_info
  • OpenMotionInfoDTO []
  • 模型数据
  • └ name
  • String
  • xxx
  • 名称
  • └ uuid
  • String
  • xxx
  • 新美术流程资源唯一标识
  • └ is_new
  • Boolean
  • true
  • 是否是新美术流程
  • └ art_extras
  • String
  • {}
  • 新美术流程相关属性 gltf
  • face
  • OpenFaceDTO
  • 脸型
  • └ names
  • String []
  • 控制杆名称
  • └ value
  • String []
  • makeup
  • OpenMakeupDTO []
  • 妆容
  • └ id
  • Number
  • 1
  • 妆容id
  • └ cid
  • Number
  • 1
  • 颜色id
  • └ type
  • String
  • xxx
  • 妆容类型
  • color_info
  • OpenColorInfoDTO
  • 颜色数据
  • └ id
  • Number
  • 1
  • 用来关联的业务id
  • └ icon_url
  • String
  • https://xxx
  • 图标地址
  • └ rgb_img
  • String
  • https://xxx
  • rgb图片
  • └ range_r
  • Number []
  • 颜色数组(r)
  • └ range_g
  • Number []
  • 颜色数组(g)
  • └ range_b
  • Number []
  • 颜色数组(b)
  • └ uuid
  • String
  • xxx
  • 新美术流程资源唯一标识
  • └ is_new
  • Boolean
  • xxx
  • 是否是新美术流程
  • └ art_extras
  • String
  • {}
  • 新美术流程相关属性 gltf
  • shape_info
  • OpenShapeInfoDTO
  • 形状数据
  • └ mesh_id
  • String
  • xxx
  • 模型id
  • └ texture_id
  • String
  • xxx
  • 贴图id
  • └ uuid
  • String
  • xxx
  • 新美术流程资源唯一标识
  • └ is_new
  • Boolean
  • true
  • 是否是新美术流程
  • └ art_extras
  • String
  • {}
  • 新美术流程相关属性 gltf
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ server_time
  • Number
  • 1669352100137
  • 服务器时间

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
InteractionTblifeUserFigureGetRequest req = new InteractionTblifeUserFigureGetRequest();
InteractionTblifeUserFigureGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<interaction_tblife_user_figure_get_response>
    <output>
        <trace_id>xxx</trace_id>
        <msg>xxx</msg>
        <code>xxx</code>
        <data>
            <user_id>xxx</user_id>
            <sex>MALE</sex>
            <half_pic>https://xxx</half_pic>
            <clothes>
                <open_clothes_d_t_o>
                    <id>123</id>
                    <type>coat</type>
                    <mesh_info>
                        <sex>1</sex>
                        <mesh_id>xxx</mesh_id>
                        <material_id>xxx</material_id>
                        <high_toe>1</high_toe>
                        <sub_type>xxx</sub_type>
                        <bone>xxx</bone>
                        <uuid>xxx</uuid>
                        <is_new>true</is_new>
                        <art_extras>{}</art_extras>
                        <cocos_support>true</cocos_support>
                        <ue_support>true</ue_support>
                        <meta_support>true</meta_support>
                    </mesh_info>
                    <motion_info>
                        <open_motion_info_d_t_o>
                            <name>xxx</name>
                            <uuid>xxx</uuid>
                            <is_new>true</is_new>
                            <art_extras>{}</art_extras>
                        </open_motion_info_d_t_o>
                    </motion_info>
                </open_clothes_d_t_o>
            </clothes>
            <face>
            </face>
            <makeup>
                <open_makeup_d_t_o>
                    <id>1</id>
                    <cid>1</cid>
                    <type>xxx</type>
                    <color_info>
                        <id>1</id>
                        <icon_url>https://xxx</icon_url>
                        <rgb_img>https://xxx</rgb_img>
                        <uuid>xxx</uuid>
                        <is_new>xxx</is_new>
                        <art_extras>{}</art_extras>
                    </color_info>
                    <shape_info>
                        <mesh_id>xxx</mesh_id>
                        <texture_id>xxx</texture_id>
                        <uuid>xxx</uuid>
                        <is_new>true</is_new>
                        <art_extras>{}</art_extras>
                    </shape_info>
                </open_makeup_d_t_o>
            </makeup>
        </data>
        <success>true</success>
        <server_time>1669352100137</server_time>
    </output>
</interaction_tblife_user_figure_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部