dangdang.item.delete

删除商品信息

  • 此接口用于删除商品信息

    支持的数据格式:XML

    HTTP请求方式:GET

    版本:3.0

  • 系统级输入参数:

    请参考系统级输入参数

    应用级输入参数:

    参数名称
    参数类型
    是否必填
    示例值
    参数说明
    item_id Number 38382934 商品数字ID
    gShopID Number 489 店铺id
  • XML数据格式:

    01 <?xml version="1.0" encoding="GBK"?>
    02 <response>
    03     <functionId>item-delete</functionId>
    04     <result>true</result>
    05     <resultCode>0</resultCode>
    06     <resultMessage>操作成功</resultMessage>
    07     <time>2014-12-30 10:35:03</time>
    08     <item>
    09         <item_id>1012083224</item_id>
    10     </item>
    11 </response>

    JSON数据格式:

    01 {
    02     "response": {
    03         "result"true,
    04         "time""2014-12-30 10:41:56",
    05         "item": {
    06             "item_id": 1012083224
    07         },
    08         "resultCode": 0,
    09         "resultMessage""操作成功",
    10         "functionId""item-delete"
    11     }
    12 }

  • java版

    SdkClient sdkClient= new SdkClient(appKey, appSecret, session, version) ;
    PublicationItemDeleteRequest request=new PublicationItemDeleteRequest();
    PublicationItemDelete itemDelete=new PublicationItemDelete();
    itemDelete.setItem_id("1386392503");
    request.setItemDeleteReq(itemDelete);
    PublicationItemDeleteResponse response =sdkClient.excute(request);
    System.out.println(response.toString());


    php版
    $sdkClient = new DDHttpClient(appKey,appSecret,session)
    $publicationItemDeleteRequest = new PublicationItemDeleteRequest();
    $publicationItemDeleteRequest->setItemId("25054224");
    $sdkResponse = $sdkClient->execute($publicationItemDeleteRequest);