车票100–火车票接口开发文档
车票100–火车票接口开发文档
文档地址:http://www.chepiao100.com/open.html
QQ: 2994273988
火车余票接口
URL: http://www.chepiao100.com/api/yupiao
POST:
userid: [用户名邮箱]
seckey: [授权密钥]
date: [yyyy-mm-dd]
startStation: [发站 中文 UTF8]
arriveStation: [到站 中文 UTF8]
FAILE:
Invalid License: [没有授权使用]
Expired authorization: [授权使用过期]
Invalid request: [无效请求或参数]
SUCC:
trainCode: [车次]
startStation: [发站]
startTime: [发时]
arriveStation: [到站]
endTime: [到时]
startType: [shi|guo]
arriveType: [shi|guo]
mileage: [里程]
takeTime: [历时]
trainGrade: [等级]
day_diff: [天数]
business: [商务座-余票]
best-seat: [特等座-余票]
one-seat: [一等座-余票]
two-seat: [二等座-余票]
vag-sleeper: [高级软座-余票]
soft-sleeper: [软卧-余票]
hard-sleeper: [硬卧-余票]
soft-seat: [软座-余票]
hard-seat: [硬座-余票]
none-seat: [无座-余票]
business-prc:[商务座-价格]
one-seat-prc: [一等座-价格]
two-seat-prc: [二等座-价格]
vag-sleeper1-prc: [高级软座上-价格]
vag-sleeper2-prc: [高级软座下-价格]
soft-sleeper1-prc: [软卧下-价格]
soft-sleeper2-prc: [软卧下-价格]
hard-sleeper1-prc: [硬卧上-价格]
hard-sleeper2-prc: [硬卧中-价格]
hard-sleeper3-prc: [硬卧下-价格]
soft-seat-prc: [软座-价格]
hard-seat-prc: [硬座-价格]
火车车次接口
URL: http://www.chepiao100.com/api/checi
POST:
userid: [用户名邮箱]
seckey: [授权密钥]
trainCode: [车次 字母+数字]
FAILE:
Invalid License: [没有授权使用]
Expired authorization: [授权使用过期]
Invalid request: [无效请求或参数]
SUCC:
info: [车次简要]
takeTime: [历时]
mileage: [里程]
price: [价格]
head: [站名,到时,发时,停留,里程...]
item: [车次详细]
火车车站接口
URL: http://www.chepiao100.com/api/chezhan
POST:
userid: [用户名邮箱]
seckey: [授权密钥]
stationName: [车站名称 中文 UTF8]
FAILE:
Invalid License: [没有授权使用]
Expired authorization: [授权使用过期]
Invalid request: [无效请求或参数]
SUCC:
trainCode: [车次]
startStation: [发站]
startType: [shi|guo]
arriveStation: [到站]
arriveType: [shi|guo]
startTime: [发时]
endTime: [到时]
takeTime: [历时]
trainGrade: [等级]
mileage: [里程]
business-prc:[商务座-价格]
one-seat-prc: [一等座-价格]
two-seat-prc: [二等座-价格]
vag-sleeper1-prc: [高级软座上-价格]
vag-sleeper2-prc: [高级软座下-价格]
soft-sleeper1-prc: [软卧下-价格]
soft-sleeper2-prc: [软卧下-价格]
hard-sleeper1-prc: [硬卧上-价格]
hard-sleeper2-prc: [硬卧中-价格]
hard-sleeper3-prc: [硬卧下-价格]
soft-seat-prc: [软座-价格]
火车代售点接口
URL: http://www.chepiao100.com/api/daishoudian
POST:
userid: [用户名邮箱]
seckey: [授权密钥]
province: [省份 中文 UTF8]
city: [城市 中文 UTF8]
county: [区县 中文 UTF8]
FAILE:
Invalid License: [没有授权使用]
Expired authorization: [授权使用过期]
Invalid request: [无效请求或参数]
SUCC:
city_code: [城市编号]
province: [省份]
city: [城市]
county: [县区]
agency_name: [代理商]
address: [地址]
phone_no: [电话]
start_time_am: [上午开始营业时间]
stop_time_am: [上午结束营业时间]
start_time_pm: [下午开始营业时间]
stop_time_pm: [下午开始营业时间]
汽车票接口
URL: http://www.chepiao100.com/api/qichepiao
POST:
userid: [用户名邮箱]
seckey: [授权密钥]
startStation: 发站[中文 UTF8]
arriveStation: 到站[中文 UTF8]
FAILE:
Invalid License: [没有授权使用]
Expired authorization: [授权使用过期]
Invalid request: [无效请求或参数]
SUCC:
startStation: [发站]
startTime: [发时]
grade: [车型]
mileage: [里程]
price: [票价]
机票接口
URL: http://www.chepiao100.com/api/jipiao
POST:
userid: [用户名邮箱]
seckey: [授权密钥]
date: [yyyy-mm-dd]
departureAirport: [出发 中文 UTF8]
arrivalAirport: [到达 中文 UTF8]
FAILE:
Invalid License: [没有授权使用]
Expired authorization: [授权使用过期]
Invalid request: [无效请求或参数]
SUCC:
companyNo: [航空公司标识]
planeType: [机型]
planeMemo: [标准价格]
flightCode: [航班号]
correctness: [准点率]
departureTime: [起飞时间]
arrivalTime: [降落时间]
costTime: [飞行时间]
departureAirport: [起飞机场]
arrivalAirport: [降落机场]
departureBuildingID: [起飞机场航站楼号]
arrivalBuildingID: [降落机场航站楼号]
carrierCom: [航空公司]
planeSize: [机型大小]