dangdang.item.imgspace.getImgColumn(图片空间)

获取图片空间的图片分类信息

  • 获取图片空间的图片分类信息

    支持的数据格式:XML

    HTTP请求方式:GET

    版本:1.0

  • 系统级输入参数:

    请参考系统级输入参数

    应用级输入参数:

    参数名称
    参数类型
    是否必填
    示例值
    参数说明
    shopId Number 489 商家id

  • XML数据格式:

    01 <?xml version="1.0" encoding="gbk"?>
    02 <response>
    03     <result>true</result>
    04     <resultCode>200</resultCode>
    05     <resultMessage>请求成功</resultMessage>
    06     <functionID>getImgColumn</functionID>
    07     <time>2015-09-12 21:26:46</time>
    08     <columnTreeNode>
    09         <columnTreeNodeList>
    10             <columnTreeNode>
    11                 <imgColumn>
    12                     <id>1</id>
    13                     <pid>0</pid>
    14                     <shopId>489</shopId>
    15                     <name>商品主图</name>
    16                     <level>1</level>
    17                 </imgColumn>
    18                 <columnTreeNodeList>
    19                     <columnTreeNode>
    20                         <imgColumn>
    21                             <id>3</id>
    22                             <pid>1</pid>
    23                             <shopId>489</shopId>
    24                             <name>二级菜单1</name>
    25                             <level>2</level>
    26                         </imgColumn>
    27                     </columnTreeNode>
    28                 </columnTreeNodeList>
    29             </columnTreeNode>
    30             <columnTreeNode>
    31                 <imgColumn>
    32                     <id>1</id>
    33                     <pid>0</pid>
    34                     <shopId>489</shopId>
    35                     <name>商品主图</name>
    36                     <level>1</level>
    37                 </imgColumn>
    38                 <columnTreeNodeList>
    39                     <columnTreeNode>
    40                         <imgColumn>
    41                             <id>3</id>
    42                             <pid>1</pid>
    43                             <shopId>489</shopId>
    44                             <name>二级菜单1</name>
    45                             <level>2</level>
    46                         </imgColumn>
    47                     </columnTreeNode>
    48                 </columnTreeNodeList>
    49             </columnTreeNode>
    50         </columnTreeNodeList>
    51     </columnTreeNode>
    52 </response>

    JSON数据格式:

    1  

  • java版

    SdkClient sdk= new SdkClient(appKey, appSecret, session, version) ;
    ImgSpaceColumnGetRequest request = new ImgSpaceColumnGetRequest();
    request.setShopId(489L);
    ImgSpaceColumnGetResponse response=sdk.excute(request);
    System.out.println( response.toString());


    php版

    $sdkClient = new DDHttpClient(appkey,appSecret,session);
    $ItemImgspaceGetImgColumnRequest = new ItemImgspaceGetImgColumnRequest();
    $ItemImgspaceGetImgColumnRequest->setShopId("489");
    $sdkResponse = $sdkClient->execute($ItemImgspaceGetImgColumnRequest);