文档中心 > API类目 > 飞猪-菲住联盟

alitrip.futurehotel.content.agreement.list (小程序端-查询协议)

小程序端-查询协议 1、id 和 type 都为空,查询【1,2,3】类型的协议 2、否则 根据 id or type 查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_list_agreements4_chat_req ListAgreements4ChatReq 可选 小程序端查询协议入参
  • └ id
  • Number
  • 可选
  • 1
  • 协议ID
  • └ login_user_id
  • String
  • 可选
  • 1
  • 用户ID
  • └ type
  • byte
  • 可选
  • 1
  • 类型

响应参数

名称 类型 示例值 描述
result QueryAgreementDomainRsList 小程序端查询协议出参
  • └ fh_code
  • String
  • 服务错误码
  • └ fh_msg
  • String
  • 服务错误信息
  • └ fh_success
  • Boolean
  • true
  • 服务是否成功
  • query_agreement_domain_r_s_list
  • QueryAgreementDomainRs []
  • 协议模型
  • └ content
  • String
  • 《巴拉巴拉小魔仙》
  • 协议内容
  • contents
  • AgreementApiContentRs []
  • 解决方案内容拆解
  • └ content
  • String
  • 内容
  • └ type
  • String
  • 类型
  • └ fh_code
  • String
  • 服务错误码
  • └ fh_msg
  • String
  • 服务错误信息
  • └ fh_success
  • Boolean
  • 服务是否成功
  • └ id
  • Number
  • 116
  • 协议版本ID
  • └ id_string
  • String
  • 5913962129100786
  • 协议ID
  • └ title
  • String
  • 会员卡续费协议
  • 协议标题
  • └ type
  • Number
  • 6
  • 类型
  • └ version
  • String
  • 20210305115227
  • 协议版本

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
1
2
3
4
5
6
7
8
9
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFuturehotelContentAgreementListRequest req = new AlitripFuturehotelContentAgreementListRequest();
AlitripFuturehotelContentAgreementListRequest.ListAgreements4ChatReq obj1 = new AlitripFuturehotelContentAgreementListRequest.ListAgreements4ChatReq();
obj1.setId(1L);
obj1.setLoginUserId("1");
obj1.setType("1");
req.setParamListAgreements4ChatReq(obj1);
AlitripFuturehotelContentAgreementListResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<alitrip_futurehotel_content_agreement_list_response>
    <result>
        <fh_code></fh_code>
        <fh_msg></fh_msg>
        <fh_success>true</fh_success>
        <query_agreement_domain_r_s_list>
            <query_agreement_domain_rs>
                <content>《巴拉巴拉小魔仙》</content>
                <contents>
                    <agreement_api_content_rs>
                        <content></content>
                        <type></type>
                    </agreement_api_content_rs>
                </contents>
                <fh_code></fh_code>
                <fh_msg></fh_msg>
                <fh_success></fh_success>
                <id>116</id>
                <id_string>5913962129100786</id_string>
                <title>会员卡续费协议</title>
                <type>6</type>
                <version>20210305115227</version>
            </query_agreement_domain_rs>
        </query_agreement_domain_r_s_list>
    </result>
</alitrip_futurehotel_content_agreement_list_response>

异常示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
<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

返回
顶部