車票100–火車票介面開發文件
文件地址:http://www.chepiao100.com/open.html
火車餘票介面
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: [機型大小]