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

alibaba.decoration.design.housetype.image.product (创建方案及户型图)

创建方案及户型图

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
owner_type Number 必须 2 业务归属 1:佳装 2:线下工作台 3:智造
request_id String 必须 122222223333 业务唯一请求ID,UUID
name String 可选 我的家 方案名称
origin_json_url String 必须 https://22222.json 户型json

响应参数

名称 类型 示例值 描述
result Result result
  • └ message_info
  • String
  • 程序发生异常
  • 错误信息
  • └ message_code
  • Number
  • 100399999
  • 错误码
  • data
  • CreateDesignHouseImgResp
  • 返回结果
  • └ task_id
  • Number
  • 133456
  • 本次任务的唯一id,之后根据这个唯一id获取异步结果
  • └ message_flag
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDecorationDesignHousetypeImageProductRequest req = new AlibabaDecorationDesignHousetypeImageProductRequest();
req.setOwnerType(2L);
req.setRequestId("122222223333");
req.setName("我的家");
req.setOriginJsonUrl("https://22222.json");
AlibabaDecorationDesignHousetypeImageProductResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_decoration_design_housetype_image_product_response>
    <result>
        <message_info>程序发生异常</message_info>
        <message_code>100399999</message_code>
        <data>
            <task_id>133456</task_id>
        </data>
        <message_flag>true</message_flag>
    </result>
</alibaba_decoration_design_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

返回
顶部