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

文档中心 > API类目 > 天猫家装API

taobao.jzfx.lkl.upload (taobao.jzfx.lkl.upload)

taobao.jzfx.lkl.upload

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
data byte[] 必须 [-1, -40, -1, -32, 0] 二进制内容

响应参数

名称 类型 示例值 描述
result LklErpOssUploadResponse 响应结果
  • └ oss_url
  • String
  • 20200-21010-000
  • 文件上传路径
  • └ success
  • Boolean
  • true
  • 接口返回结果
  • └ error_code
  • String
  • error
  • 错误码
  • └ message
  • String
  • 参数非法
  • 错误文案

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
JzfxLklUploadRequest req = new JzfxLklUploadRequest();
req.setData(new FileItem("/tmp/file.txt"));
JzfxLklUploadResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<jzfx_lkl_upload_response>
    <result>
        <oss_url>20200-21010-000</oss_url>
        <success>true</success>
        <error_code>error</error_code>
        <message>参数非法</message>
    </result>
</jzfx_lkl_upload_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

返回
顶部