文档中心 > API类目 > 飞猪商家平台

alitrip.merchant.galaxy.page.pc.render (星河-PC页面渲染)

星河产品=页面渲染服务

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tenant_key String 必须 1234 租户身份信息
path String 必须 123 页面path
extras String 可选 {"spm":"a.b.c"} 前端透传参数,后端接口反序列化之后,在global_data的map之中直接透传出来

响应参数

名称 类型 示例值 描述
result PageRenderDto 渲染内容
  • └ global_data
  • String
  • 全局数据
  • layouts
  • LayoutVo []
  • 页面布局列表
  • └ id
  • String
  • ID
  • └ is_root
  • String
  • 是否是根节点
  • └ childrens
  • String []
  • 子节点
  • └ components
  • String
  • 页面模块数据
  • └ module_specs
  • String
  • 页面模块依赖前端资源集合

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripMerchantGalaxyPagePcRenderRequest req = new AlitripMerchantGalaxyPagePcRenderRequest();
req.setTenantKey("1234");
req.setPath("123");
req.setExtras("{\"spm\":\"a.b.c\"}");
AlitripMerchantGalaxyPagePcRenderResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_merchant_galaxy_page_pc_render_response>
    <result>
        <global_data></global_data>
        <layouts>
            <layout_vo>
                <id></id>
                <is_root></is_root>
                <childrens>
                    <string></string>
                </childrens>
            </layout_vo>
        </layouts>
        <components></components>
        <module_specs></module_specs>
    </result>
</alitrip_merchant_galaxy_page_pc_render_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>

错误码解释

错误码 错误描述 解决方案
RENDER_ERROR::1000 渲染错误 人工排查

API工具

如何获得此API

FAQ

返回
顶部