公共API调用来获取PNR状态 [英] Public API call to get PNR Status
问题描述
我要整合获取PNR状态功能在我的应用程序,但不要有任何的API调用来得到它。是否有任何公开的API调用可用来获取当前印度铁路PNR状态。如果有,请提供呼叫和呼叫模式。
I want to integrate Get PNR status feature in my application but dont have any api call to get it. Is there any public api call available to get current Indian Railways PNR status. If yes please provide that call and calling pattern.
推荐答案
正是在那里,你可以使用这个网址 http://pnrapi.appspot.com/+ tenDigitPNRNumber
It is there you can use this url http://pnrapi.appspot.com/+ tenDigitPNRNumber
您可以检查 这里 了解
you can check here for more
或者你可以去 erail
or you can go for erail
查找列车 - >请求URL:<一个href="http://erail.in/rail/getTrains.aspx?Station_From=GWL&Station_To=NDLS&DataSource=0&Language=0">http://erail.in/rail/getTrains.aspx?Station_From=GWL&Station_To=NDLS&DataSource=0&Language=0
Find trains--> request URL: http://erail.in/rail/getTrains.aspx?Station_From=GWL&Station_To=NDLS&DataSource=0&Language=0
---培养模式
---火车项目
//Use this regex to get the value
reg=re.compile(r'\^\d+\~[A-Za-z0-9 ]+')
---train numbers from train items
reg=re.compile(r'\d+')
---train names from train items
reg=re.compile(r'[A-Za-z0-9 ]+')
查看供应情况 - >请求URL:<一个href="http://indiatrain.in/Rail/getAvailabilityMMT2.aspx?Train_No=11077&Station_From=GWL&Station_To=NDLS&mDay=10&mMonth=10&mYear=2011&mClass=3A&mQuota=GN&temp=1318195420696">http://indiatrain.in/Rail/getAvailabilityMMT2.aspx?Train_No=11077&Station_From=GWL&Station_To=NDLS&mDay=10&mMonth=10&mYear=2011&mClass=3A&mQuota=GN&temp=1318195420696
这篇关于公共API调用来获取PNR状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!