文档中心 > API类目 > 天猫互动接口

taobao.interact.shop.content.banner.update (店铺内容更新接口)

店铺内容更新接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
banner Banner 可选 banner对象
  • └ description
  • String
  • 可选
  • 这是一个banner
  • 描述
  • └ width
  • Number
  • 可选
  • 10
  • 宽度
  • └ height
  • Number
  • 可选
  • 10
  • 高度
  • array
  • ImageWithLink []
  • 可选
  • [{"image_url":"http://www.taobao.com","link": "http://www.taobao.com"}]
  • 图片链接数组
  • └ link
  • String
  • 可选
  • http://www.taobao.com
  • 链接
  • └ image_url
  • String
  • 可选
  • http://www.taobao.com
  • 图片地址
selector String 可选 default_selector
  • 默认值:default_selector
  • 渠道中额外的扩展分发字段
    location String 可选 main
  • 默认值:main
  • 渠道中位置标识
    channel String 必须 detail 渠道标识
    extend_params Json 可选 {} 扩展参数

    响应参数

    名称 类型 示例值 描述
    data Boolean true 是否更新成功

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    InteractShopContentBannerUpdateRequest req = new InteractShopContentBannerUpdateRequest();
    InteractShopContentBannerUpdateRequest.Banner obj1 = new InteractShopContentBannerUpdateRequest.Banner();
    obj1.setDescription("这是一个banner");
    obj1.setWidth(10L);
    obj1.setHeight(10L);
    List<InteractShopContentBannerUpdateRequest.ImageWithLink> list3 = new ArrayList<InteractShopContentBannerUpdateRequest.ImageWithLink>();
    InteractShopContentBannerUpdateRequest.ImageWithLink obj4 = new InteractShopContentBannerUpdateRequest.ImageWithLink();
    list3.add(obj4);
    obj4.setLink("http://www.taobao.com");
    obj4.setImageUrl("http://www.taobao.com");
    obj1.setArray(list3);
    req.setBanner(obj1);
    req.setSelector("default_selector");
    req.setLocation("main");
    req.setChannel("detail");
    req.setExtendParamsString("{}");
    InteractShopContentBannerUpdateResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <interact_shop_content_banner_update_response>
        <data>true</data>
    </interact_shop_content_banner_update_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

    返回
    顶部