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

alitrip.merchant.galaxy.share.get (星河-获取小程序分享文案和图片)

获取 雅高微信小程序分享素材文案和图片。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tenant_key String 必须 1234 租户ID

响应参数

名称 类型 示例值 描述
result Response 默认描述
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • String
  • demo
  • 错误编码
  • content
  • ShareMaterialVo
  • 返回分享素材
  • └ text
  • String
  • 基本文案
  • 分享的文案
  • └ picture
  • String
  • https://fm-unicorn-hotel.oss-cn-beijing.aliyuncs.com/10006373010/facility/24%E5%B0%8F%E6%97%B6%E5%A4%A7%E5%A0%82%E7%BB%8F%E7%90%86.png
  • 分享的图片
  • └ error_msg
  • String
  • demo
  • 错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripMerchantGalaxyShareGetRequest req = new AlitripMerchantGalaxyShareGetRequest();
req.setTenantKey("1234");
AlitripMerchantGalaxyShareGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_merchant_galaxy_share_get_response>
    <result>
        <success>true</success>
        <error_code>demo</error_code>
        <content>
            <text>基本文案</text>
            <picture>https://fm-unicorn-hotel.oss-cn-beijing.aliyuncs.com/10006373010/facility/24%E5%B0%8F%E6%97%B6%E5%A4%A7%E5%A0%82%E7%BB%8F%E7%90%86.png</picture>
        </content>
        <error_msg>demo</error_msg>
    </result>
</alitrip_merchant_galaxy_share_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

返回
顶部