文档中心 > API类目 > 飞猪服务平台

alibaba.fliggy.pushcenter.intention.query (飞猪意图查询)

飞猪意图查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
harmony_intention_request HarmonyIntentionRequest 可选 request
  • pagination
  • Pagination
  • 可选
  • pagination
  • └ max_total
  • Number
  • 可选
  • 1
  • max_total
  • └ limit
  • Number
  • 可选
  • 1
  • limit
  • └ start
  • String
  • 可选
  • test
  • start
  • └ user_auth
  • String
  • 可选
  • {}
  • user_auth
  • └ version
  • String
  • 可选
  • test
  • version
  • └ device_info
  • String
  • 可选
  • {}
  • device_info
  • content
  • Content
  • 可选
  • content
  • └ keywords
  • String
  • 可选
  • test
  • keywords
  • └ city
  • String
  • 可选
  • test
  • city
  • location
  • Location
  • 可选
  • location
  • └ location_system
  • String
  • 可选
  • test
  • location_system
  • └ location_name
  • String
  • 可选
  • test
  • location_name
  • └ address
  • String
  • 可选
  • test
  • address
  • └ latitude
  • String
  • 可选
  • test
  • latitude
  • └ longitude
  • String
  • 可选
  • test
  • longitude
  • └ travel_guides_type
  • String
  • 必须
  • test
  • travel_guides_type

响应参数

名称 类型 示例值 描述
result HarmonyIntentionResult result
  • └ error_message
  • String
  • 操作成功
  • msg
  • └ error_code
  • String
  • SUCCESS
  • code
  • reply
  • TravelGuidesQueryReplyDTO
  • data
  • items
  • SceneTourPoiDTO []
  • 条目
  • └ brief
  • String
  • 刷爆朋友圈
  • brief
  • └ image
  • String
  • https://img.alicdn.com/tfscom/TB1ZgzcicnI8KJjSsziSuv8QpXa
  • 图片地址
  • └ entity_name
  • String
  • TravelGuides
  • 实体名称
  • └ name
  • String
  • 全国网红打卡榜
  • 名称
  • └ entity_id
  • String
  • 2104748917266624608028245e3103
  • 实体ID
  • └ update_time
  • String
  • Wed Sep 18 20:27:41 CST 2024
  • 更新时间
  • detail_url
  • InteractionDTO
  • detailUrl
  • execute_intent
  • ExecuteIntentDTO
  • executeIntent
  • └ execute_mode
  • String
  • foreground
  • executeMode
  • └ intent_name
  • String
  • ViewTravelGuides
  • intentName
  • └ intent_param
  • String
  • {"clickUrl":"xxxx"}
  • intentParam
  • └ bundle_name
  • String
  • com.fliggy.hmos
  • bundleName
  • └ title
  • String
  • 全国网红打卡榜
  • 标题
  • └ content
  • String
  • 颜值与实力并存旅行地
  • content
  • └ success
  • Boolean
  • true
  • success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFliggyPushcenterIntentionQueryRequest req = new AlibabaFliggyPushcenterIntentionQueryRequest();
AlibabaFliggyPushcenterIntentionQueryRequest.HarmonyIntentionRequest obj1 = new AlibabaFliggyPushcenterIntentionQueryRequest.HarmonyIntentionRequest();
AlibabaFliggyPushcenterIntentionQueryRequest.Pagination obj2 = new AlibabaFliggyPushcenterIntentionQueryRequest.Pagination();
obj2.setMaxTotal(1L);
obj2.setLimit(1L);
obj2.setStart("test");
obj1.setPagination(obj2);
obj1.setUserAuth("{}");
obj1.setVersion("test");
obj1.setDeviceInfo("{}");
AlibabaFliggyPushcenterIntentionQueryRequest.Content obj3 = new AlibabaFliggyPushcenterIntentionQueryRequest.Content();
obj3.setKeywords("test");
obj3.setCity("test");
AlibabaFliggyPushcenterIntentionQueryRequest.Location obj4 = new AlibabaFliggyPushcenterIntentionQueryRequest.Location();
obj4.setLocationSystem("test");
obj4.setLocationName("test");
obj4.setAddress("test");
obj4.setLatitude("test");
obj4.setLongitude("test");
obj3.setLocation(obj4);
obj3.setTravelGuidesType("test");
obj1.setContent(obj3);
req.setHarmonyIntentionRequest(obj1);
AlibabaFliggyPushcenterIntentionQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_fliggy_pushcenter_intention_query_response>
    <result>
        <error_message>操作成功</error_message>
        <error_code>SUCCESS</error_code>
        <reply>
            <items>
                <scene_tour_poi_d_t_o>
                    <brief>刷爆朋友圈</brief>
                    <image>https://img.alicdn.com/tfscom/TB1ZgzcicnI8KJjSsziSuv8QpXa</image>
                    <entity_name>TravelGuides</entity_name>
                    <name>全国网红打卡榜</name>
                    <entity_id>2104748917266624608028245e3103</entity_id>
                    <update_time>Wed Sep 18 20:27:41 CST 2024</update_time>
                    <detail_url>
                        <execute_intent>
                            <execute_mode>foreground</execute_mode>
                            <intent_name>ViewTravelGuides</intent_name>
                            <intent_param>{&quot;clickUrl&quot;:&quot;xxxx&quot;}</intent_param>
                            <bundle_name>com.fliggy.hmos</bundle_name>
                        </execute_intent>
                    </detail_url>
                    <title>全国网红打卡榜</title>
                    <content>颜值与实力并存旅行地</content>
                </scene_tour_poi_d_t_o>
            </items>
        </reply>
        <success>true</success>
    </result>
</alibaba_fliggy_pushcenter_intention_query_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

返回
顶部