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

alitrip.futurehotel.content.agreement.list.app (APP查询协议列表)

飞猪-菲住联盟,APP查询协议列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_list_agreements_for_app_req ListAgreementsForAppReq 可选 入参
  • get_agreement_r_q
  • QueryAgreementDomainReq []
  • 可选
  • 查询协议入参
  • └ id
  • Number
  • 可选
  • 1
  • 协议ID
  • └ login_user_id
  • String
  • 可选
  • 1
  • 用户ID
  • └ type
  • byte
  • 可选
  • 1
  • 协议类型
  • └ login_user_id
  • String
  • 可选
  • 1
  • 用户ID

响应参数

名称 类型 示例值 描述
result QueryAgreementDomainRsList APP查询协议列表出参
  • └ fh_code
  • String
  • 系统错误码
  • └ fh_msg
  • String
  • 系统错误信息
  • └ fh_success
  • Boolean
  • true
  • 接口是否成功
  • query_agreement_domain_r_s_list
  • QueryAgreementDomainRs []
  • 协议信息模型
  • └ content
  • String
  • <p>新建协议协议</p><p>新建协议协议</p><p>新建协议协议</p>
  • 协议内容
  • contents
  • AgreementApiContentRs []
  • 解决方案内容拆解
  • └ content
  • String
  • 内容
  • └ type
  • String
  • 类型
  • └ fh_code
  • String
  • 系统错误码
  • └ fh_msg
  • String
  • 系统错误信息
  • └ fh_success
  • Boolean
  • 接口是否成功
  • └ id
  • Number
  • 2
  • 协议版本id
  • └ id_string
  • String
  • 1854752154100734
  • 协议主键String
  • └ title
  • String
  • 202012031126366
  • 协议标题
  • └ type
  • Number
  • 2
  • 类型
  • └ version
  • String
  • 20201203112636
  • 协议版本

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFuturehotelContentAgreementListAppRequest req = new AlitripFuturehotelContentAgreementListAppRequest();
AlitripFuturehotelContentAgreementListAppRequest.ListAgreementsForAppReq obj1 = new AlitripFuturehotelContentAgreementListAppRequest.ListAgreementsForAppReq();
List<AlitripFuturehotelContentAgreementListAppRequest.QueryAgreementDomainReq> list3 = new ArrayList<AlitripFuturehotelContentAgreementListAppRequest.QueryAgreementDomainReq>();
AlitripFuturehotelContentAgreementListAppRequest.QueryAgreementDomainReq obj4 = new AlitripFuturehotelContentAgreementListAppRequest.QueryAgreementDomainReq();
list3.add(obj4);
obj4.setId(1L);
obj4.setLoginUserId("1");
obj4.setType("1");
obj1.setGetAgreementRQ(list3);
obj1.setLoginUserId("1");
req.setParamListAgreementsForAppReq(obj1);
AlitripFuturehotelContentAgreementListAppResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_futurehotel_content_agreement_list_app_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>&lt;p&gt;新建协议协议&lt;/p&gt;&lt;p&gt;新建协议协议&lt;/p&gt;&lt;p&gt;新建协议协议&lt;/p&gt;</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>2</id>
                <id_string>1854752154100734</id_string>
                <title>202012031126366</title>
                <type>2</type>
                <version>20201203112636</version>
            </query_agreement_domain_rs>
        </query_agreement_domain_r_s_list>
    </result>
</alitrip_futurehotel_content_agreement_list_app_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

返回
顶部