注意:以下文档只适用于TOP接口,请谨慎使用!

alibaba.decoration.housetype.image.product (生成户型图)

生成户型图

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
owner_type Number 必须 1 业务归属 1:佳装 2:线下工作台
type String 必须 2 户型图类型 2 彩图 12 黑白图 0 全部
design_id String 必须 21111111dw3e3 方案id
template_code String 必须 233 模板编码
app_user_id String 必须 23344 外部系统用户唯一id

响应参数

名称 类型 示例值 描述
result Result result
  • └ message_code
  • Number
  • 100399999
  • 返回错误码
  • data
  • ProductHouseTypeImageResp
  • 返回结果
  • └ design_id
  • String
  • xxxx
  • 方案id
  • └ request_id
  • String
  • xxx
  • 出图任务id
  • └ message_info
  • String
  • 程序发生异常
  • 错误message
  • └ message_flag
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDecorationHousetypeImageProductRequest req = new AlibabaDecorationHousetypeImageProductRequest();
req.setOwnerType(1L);
req.setType("2");
req.setDesignId("21111111dw3e3");
req.setTemplateCode("233");
req.setAppUserId("23344");
AlibabaDecorationHousetypeImageProductResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_decoration_housetype_image_product_response>
    <result>
        <message_code>100399999</message_code>
        <data>
            <design_id>xxxx</design_id>
            <request_id>xxx</request_id>
        </data>
        <message_info>程序发生异常</message_info>
        <message_flag>true</message_flag>
    </result>
</alibaba_decoration_housetype_image_product_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

返回
顶部