文档中心 > API类目 > 阿里健康-CRM

alibaba.alihealth.landing.page.content.recommend (推荐内容)

推荐内容

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query MaterialRecommendPageQuery 可选 查询条件
  • └ page_index
  • Number
  • 可选
  • 1
  • 页码
  • └ recommend_type
  • String
  • 必须
  • hm_card
  • 推荐类型
  • └ page_size
  • Number
  • 可选
  • 10
  • 条数
  • └ device_code
  • String
  • 可选
  • 111
  • 设备标识
  • └ category_code
  • String
  • 可选
  • code1
  • 分类code
  • └ user_id
  • Number
  • 可选
  • 11
  • 用户ID

响应参数

名称 类型 示例值 描述
model PageResponse 分页结果
  • data
  • MaterialContentDTO []
  • 结果
  • └ code
  • String
  • content_code_1
  • 唯一标识
  • feature
  • HashMap
  • 扩展信息
  • └ tags
  • String
  • tag
  • 标识
  • └ pic
  • String
  • https://img.alicdn.com/imgextra/i3/O1CN01Su9G4G1KIAHIGsItD_!!6000000001140-2-tps-165-165.png
  • 图片
  • category
  • MaterialCategoryDTO
  • 分类
  • └ category_code
  • String
  • code5
  • 分类code
  • └ category_name
  • String
  • 宝宝抚触
  • 分类名称
  • └ title
  • String
  • 测试视频title_1
  • 内容名称
  • user
  • MaterialUserDTO
  • 用户信息
  • └ work_unit
  • String
  • 北京
  • 工作地
  • └ job_title
  • String
  • 营销师
  • 职称
  • └ name
  • String
  • 苞子欣
  • 姓名
  • └ avatar
  • String
  • https://yilucomm.ali-health.com/community-pre/71a4ec8eb73172611118133b85410d02
  • 头像
  • └ jump_url
  • String
  • //www.taobao.com
  • 跳转地址
  • └ url
  • String
  • https://vod.alihealth-ugc-community.ali-health.com/sv/1c277afe-17b3e9534e9/1c277afe-17b3e9534e9.mp4?auth_key=1660343218-0-0-f9b30711e5017ce887c8b76fd98a90c9
  • 内容地址
  • └ type_code
  • String
  • VIDEO
  • 内容类型
  • └ page_index
  • Number
  • 1
  • 页码
  • └ total_page
  • Number
  • 1
  • 总页数
  • └ total_count
  • Number
  • 1
  • 总数量
http_status_code Number 200 响应code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthLandingPageContentRecommendRequest req = new AlibabaAlihealthLandingPageContentRecommendRequest();
AlibabaAlihealthLandingPageContentRecommendRequest.MaterialRecommendPageQuery obj1 = new AlibabaAlihealthLandingPageContentRecommendRequest.MaterialRecommendPageQuery();
obj1.setPageIndex(1L);
obj1.setRecommendType("hm_card");
obj1.setPageSize(10L);
obj1.setDeviceCode("111");
obj1.setCategoryCode("code1");
obj1.setUserId(11L);
req.setQuery(obj1);
AlibabaAlihealthLandingPageContentRecommendResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_landing_page_content_recommend_response>
    <model>
        <data>
            <material_content_d_t_o>
                <code>content_code_1</code>
                <feature>
                    <tags>tag</tags>
                </feature>
                <pic>https://img.alicdn.com/imgextra/i3/O1CN01Su9G4G1KIAHIGsItD_!!6000000001140-2-tps-165-165.png</pic>
                <category>
                    <category_code>code5</category_code>
                    <category_name>宝宝抚触</category_name>
                </category>
                <title>测试视频title_1</title>
                <user>
                    <work_unit>北京</work_unit>
                    <job_title>营销师</job_title>
                    <name>苞子欣</name>
                    <avatar>https://yilucomm.ali-health.com/community-pre/71a4ec8eb73172611118133b85410d02</avatar>
                </user>
                <jump_url>//www.taobao.com</jump_url>
                <url>https://vod.alihealth-ugc-community.ali-health.com/sv/1c277afe-17b3e9534e9/1c277afe-17b3e9534e9.mp4?auth_key=1660343218-0-0-f9b30711e5017ce887c8b76fd98a90c9</url>
                <type_code>VIDEO</type_code>
            </material_content_d_t_o>
        </data>
        <page_index>1</page_index>
        <total_page>1</total_page>
        <total_count>1</total_count>
    </model>
    <http_status_code>200</http_status_code>
</alibaba_alihealth_landing_page_content_recommend_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

返回
顶部