飞行达人API 返回乘机人报告相关分值,文档:
https://www.juhe.cn/docs/api/id/262
接口地址:http://op.juhe.cn/fly/index
支持格式:json/xml
请求方式:get/post
请求示例:http://op.juhe.cn/fly/index?key=key&passName=张三&pid=身份证号码
接口备注:查询指定用户的乘机数据
调用样例及调试工具:
API测试工具
请求参数说明: 名称 类型 必填 说明
key | string | 是 | 应用APPKEY(应用详细页查询) | |
dtype | string | 否 | 返回数据的格式,xml或json,默认json | |
passName | string | 是 | 乘机人姓名 | |
pid | string | 是 | 身份证号 |
返回参数说明: 名称 类型 说明
error_code | int | 返回码 | |
reason | string | 返回说明 | |
result | string | 返回结果集 |
JSON返回示例:
/* 覆盖率70%,查询即扣费 */
{
"reason": "成功的返回",
"result": {
"commplace": "哈尔滨", * 常住地(飞行记录得到的被查询人常出发的城市) *
"rankibusinessCount": "0", * 商务活动分(商务活动的排名) *
"rankitravelcount": "8", * 旅游分(旅游飞行的排名) *
"ranktotalscore": "1", * 综合分数排名(该客户的综合分在系统中的排名) *
"airline": "南航,1次", * 最爱航空公司 *
"itime": "上午", * 最爱出行时间 *
"imonth": "08", * 最爱出行月份 *
"rankavgdelay": "52",* 航延分(平局航班延误时间的排名) *
"ranktotalflight": "18", * 频率分(飞行次数的排名) *
"rankavgdiscount": "40",* 平均折扣分(平均折扣的排名) *
"rankcitycount": "0",* 飞行范围分(所到城市+省份的排名) *
"rankFCcount": "0"* 两舱分(两舱比例的排名) *
},
"error_code": 0
}
XML返回示例:
<?xml version="1.0" encoding="utf-8"?>
<root>
<reason>成功的返回</reason>
<result>
<commplace>哈尔滨</commplace>
<rankibusinessCount>0</rankibusinessCount>
<rankitravelcount>8</rankitravelcount>
<ranktotalscore>1</ranktotalscore>
<airline>南航,1次</airline>
<itime>上午</itime>
<imonth>08</imonth>
<rankavgdelay>52</rankavgdelay>
<ranktotalflight>18</ranktotalflight>
<rankavgdiscount>40</rankavgdiscount>
<rankcitycount>0</rankcitycount>
<rankFCcount>0</rankFCcount>
</result>
<error_code>0</error_code>