文档中心 > API类目 > 阿里健康医生

alibaba.alihealth.recommend.cardinfo.get (快应用卡片信息)

快应用卡片信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
card_request QuickAppRequest 必须 请求入参
  • └ scene_id
  • String
  • 必须
  • 111
  • 场景id
  • └ show_time
  • String
  • 必须
  • 6
  • 卡片当前展示的时间
  • └ channel
  • String
  • 可选
  • huawei
  • 渠道标识
  • └ app_version
  • String
  • 可选
  • 1.0.0
  • 应用版本
  • └ city_code
  • String
  • 可选
  • 130100
  • 城市信息编码
  • └ latitude
  • String
  • 可选
  • 40.0
  • 纬度
  • └ longitude
  • String
  • 可选
  • 115.9
  • 经度

响应参数

名称 类型 示例值 描述
card_result ServiceResult alinkappserver系统返回的通用结果类
  • └ success
  • Boolean
  • true
  • success
  • └ err_code
  • String
  • NOT_PASSED_PERMISSION_CHECK
  • errCode
  • └ err_message
  • String
  • 未通过权限校验
  • errMessage
  • data
  • QuickAppCardInfoVo []
  • data
  • 返回投放数据
  • └ bg_img
  • String
  • 111
  • 背景图
  • └ bg_right_icon
  • String
  • 111
  • 背景图右侧图标
  • └ logo_img
  • String
  • 111
  • logo图标
  • └ title
  • String
  • 111
  • 标题
  • └ title_color
  • String
  • 111
  • 标题颜色
  • └ title_size
  • String
  • 111
  • 标题字体大小
  • └ sub_title
  • String
  • 111
  • 副标题
  • └ sub_title_color
  • String
  • 111
  • 副标题颜色
  • └ sub_title_size
  • String
  • 111
  • 副标题大小
  • └ button_bg_color
  • String
  • 111
  • 按钮背景颜色
  • └ button_text
  • String
  • 111
  • 按钮文案
  • └ button_text_color
  • String
  • 111
  • 按钮字体颜色
  • └ button_text_size
  • String
  • 111
  • 按钮字体大小
  • └ jump_url
  • String
  • 111
  • 跳转链接

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthRecommendCardinfoGetRequest req = new AlibabaAlihealthRecommendCardinfoGetRequest();
AlibabaAlihealthRecommendCardinfoGetRequest.QuickAppRequest obj1 = new AlibabaAlihealthRecommendCardinfoGetRequest.QuickAppRequest();
obj1.setSceneId("111");
obj1.setShowTime("6");
obj1.setChannel("huawei");
obj1.setAppVersion("1.0.0");
obj1.setCityCode("130100");
obj1.setLatitude("40.0");
obj1.setLongitude("115.9");
req.setCardRequest(obj1);
AlibabaAlihealthRecommendCardinfoGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_recommend_cardinfo_get_response>
    <card_result>
        <success>true</success>
        <err_code>NOT_PASSED_PERMISSION_CHECK</err_code>
        <err_message>未通过权限校验</err_message>
        <data>
            <quick_app_card_info_vo>
                <bg_img>111</bg_img>
                <bg_right_icon>111</bg_right_icon>
                <logo_img>111</logo_img>
                <title>111</title>
                <title_color>111</title_color>
                <title_size>111</title_size>
                <sub_title>111</sub_title>
                <sub_title_color>111</sub_title_color>
                <sub_title_size>111</sub_title_size>
                <button_bg_color>111</button_bg_color>
                <button_text>111</button_text>
                <button_text_color>111</button_text_color>
                <button_text_size>111</button_text_size>
                <jump_url>111</jump_url>
            </quick_app_card_info_vo>
        </data>
    </card_result>
</alibaba_alihealth_recommend_cardinfo_get_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

返回
顶部