文档中心 > API类目 > 闲鱼电商SAAS

alibaba.idle.isv.item.cpv.recommend.property.search (类目预测-属性值搜索接口)

类目预测-属性值搜索接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param PublishPropertySearchParamDO 必须 入参
  • └ input_text
  • String
  • 必须
  • 苹果
  • 关键词
  • └ scene
  • String
  • 必须
  • test
  • 场景,开发定义
  • └ channel_cat_id
  • String
  • 必须
  • 123
  • 闲鱼渠道类目id
  • └ property_id
  • String
  • 必须
  • 123
  • 要搜索的属性id

响应参数

名称 类型 示例值 描述
result IdleCommonResult 返回结果
  • result
  • CategoryPropertyValueDO []
  • 数据结果
  • └ channel_cat_id
  • String
  • 123123
  • 闲鱼渠道类目id
  • └ property_id
  • String
  • 123
  • 属性id
  • └ property_name
  • String
  • 品牌
  • 属性名称
  • └ value_id
  • String
  • 123
  • 属性值id
  • └ value_name
  • String
  • 苹果
  • 属性值名称
  • └ is_user_click
  • String
  • 1
  • 是否用户选择 1 是 0 否
  • └ from
  • String
  • test
  • 数据来源
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ errors
  • String
  • {"errorMsg" : ["错误信息"] }
  • 错误明细

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleIsvItemCpvRecommendPropertySearchRequest req = new AlibabaIdleIsvItemCpvRecommendPropertySearchRequest();
AlibabaIdleIsvItemCpvRecommendPropertySearchRequest.PublishPropertySearchParamDO obj1 = new AlibabaIdleIsvItemCpvRecommendPropertySearchRequest.PublishPropertySearchParamDO();
obj1.setInputText("苹果");
obj1.setScene("test");
obj1.setChannelCatId("123");
obj1.setPropertyId("123");
req.setParam(obj1);
AlibabaIdleIsvItemCpvRecommendPropertySearchResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_isv_item_cpv_recommend_property_search_response>
    <result>
        <result>
            <category_property_value_d_o>
                <channel_cat_id>123123</channel_cat_id>
                <property_id>123</property_id>
                <property_name>品牌</property_name>
                <value_id>123</value_id>
                <value_name>苹果</value_name>
                <is_user_click>1</is_user_click>
                <from>test</from>
            </category_property_value_d_o>
        </result>
        <success>true</success>
        <errors>{&quot;errorMsg&quot; : [&quot;错误信息&quot;] }</errors>
    </result>
</alibaba_idle_isv_item_cpv_recommend_property_search_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

返回
顶部