您所在位置: 首页 > > 商品API
  • gome.goods.itemProps.getPropsValueGetBySku根据商品编码获得类目属性信息

  • 简要描述
  • 系统级输入参数
  • 应用级输入参数
  • 请求示例
  • 返回结果参数
  • 返回示例
  • 异常码
  • 系统级异常码
  • API工具
  • 名称 类型 必须 描述
    $app String 应用的app_key
    $method String API接口名称
    $sign String 签名
    $token String 采用OAuth授权方式为必填参数
    $v String API协议版本,可选值:1.0.0
  • 名称 类型 必须 示例值 描述
    itemId String 商品编码
    fields String propsId,propValue 商家希望返回的商品类目属性的信息字段,每个字段以逗号分隔,实际必须用英文逗号才行
    propTempletId String 0001 商品模板ID
    attrId String 10941 属性ID
  • Java


    GmosClient client = new DefaultGmosClient(url, appKey, secret, token);
    GomeGoodsItemPropsGetPropsValueGetBySkuRequest request = new GomeGoodsItemPropsGetPropsValueGetBySkuRequest();
      //详细参数信息请参考API详情页面。
        request.setItemId("");
        request.setFields("propsId,propValue");
        request.setPropTempletId("0001");
        request.setAttrId("10941");
    GomeGoodsItemPropsGetPropsValueGetBySkuResponse response = client.execute(request);
    System.out.println(response.getBody());


    PHP


    require_once('GmosSdk.php');
    
    $client = new GmosClient;
      $client -> appkey = "";
      $client -> secretKey = "";
      $client -> session = "";
      $client -> gatewayUrl = "";
    
      $request = new GomeGoodsItemPropsGetPropsValueGetBySkuRequest;
      //详细参数信息请参考API详情页面。
        $request -> setItemId("");
        $request -> setFields("propsId,propValue");
        $request -> setPropTempletId("0001");
        $request -> setAttrId("10941");
    $response = $client -> execute($request);


    Net


    IGmosClient client = new DefaultGmosClient(url, appKey, secret, token);
    GomeGoodsItemPropsGetPropsValueGetBySkuRequest request = new GomeGoodsItemPropsGetPropsValueGetBySkuRequest();
    
    request.ItemId="";
    request.Fields="propsId,propValue";
    request.PropTempletId="0001";
    request.AttrId="10941";
    
    GomeGoodsItemPropsGetPropsValueGetBySkuResponse response = client.Execute(request);
  • 错误码 错误消息
  • 错误码 错误消息
    10001 系统错误
    10002 方法调用次数超限
    10003 当前版本的方法不存在,请检查
    10004 缺少版本参数,请指定服务方法的版本号
    10005 该应用在当前IP下禁止访问
    8224 缺少签名参数,请添加签名请求参数
    8999 存在重复的请求,请在90秒之后再请求第二次
    8225 签名无效,请按正确的算法对请求数据进行签名
    9000 字段%s不能为空
    8249 超过上传限制
    8223 无效的appKey,请使用合法的appKey(由服务提供商授予你)
    8239 需要传递accessToken参数
    8222 缺少appKey,请向服务端获取合法的appKey
    20001 令牌已过期