在PHP RedBus订票API集成 [英] RedBus ticket booking API integration in php

查看:255
本文介绍了在PHP RedBus订票API集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的客户之一,问我要红色巴士API中他的网站整合...我不知道,如果是RedBus提供他们的API进行整合。
如果有人对这个API的想法,以及如何整合它,我会很高兴到这里吧。

one of my client asked me to integrate Red Bus API in his website...i am not sure if the RedBus is providing their API for integration. If anyone have idea about this API and how to integrate it, i would be glad to here it.

推荐答案

RedBus Webservice的

这是一个很好的选择,如果他们有一个。但看他们的门户他们没有对他们的API / web服务公开提及。所以挖进一步与他们夫妇的Web服务上来(他们允许谷歌抓取到他们的WSDL)

This is a good option if they have one. But looking at their portal they haven’t mentioned about their API/Webservice publicly. So digged in further and came up with couple of their Webservices (they allowed google to crawl into their WSDL)

1) http://www.redbus.in/WS2/BookingService.asmx? WSDL

CancelTentativeBooking
API取消定暂定预订号码。

CancelTentativeBooking API to cancel the given tentative booking reference number.

ConfirmTicket
API为确认初步订机票

ConfirmTicket API to give confirm the tentatively booked ticket

DoTentativeBooking
在付款后,才能确认API来预订机票tentatively.This票。这里的座位只阻塞指定的时间后,然后无法确认。

DoTentativeBooking API to book a ticket tentatively.This ticket may be confirmed after the payment is made. Here the seats are blocked only for a specified time after which then cannot be confirmed.

GetAvailableRoutes
API为路线从指定的源城要到目的地城市和座椅可在指定日期的列表。

GetAvailableRoutes API to give the list of routes going from the specified source city to the destination city and seats available on the specified date.

GetBoardingPoints
API为上客点,时间,lcation,地址,contactnumber和位置指定的路线

GetBoardingPoints API to give the list of boarding points , times,lcation,address,contactnumber and location for the specified route

GetDroppingPoints
API为滴点,时间,lcation,地址,contactnumber和位置指定的路线

GetDroppingPoints API to give the list of dropping points , times,lcation,address,contactnumber and location for the specified route

GetRouteDetails
API为途径的详细信息指定的路由

GetRouteDetails API to give the route details for the specified route

GetSeatLayout
API给座位布局为指定的路线

GetSeatLayout API to give the seat layout for the specified route

TicketRequest
API采取指定的路线和DateofJourney

TicketRequest API to take ticket request for the specified route and DateofJourney

2) http://www.redbus.in/WS2/LocationInformationService.asmx? WSDL

GetAllCities
API给城市的所有列表与他们的城市IDS一起。

GetAllCities API to give all the list of cities along with their city ids.

GetAllOperators
API给运营商的所有名单。

GetAllOperators API to give all the list of Operators .

GetAllSourceDestinationPairs
API让所有的源 - 目的对到巴士服务的列表。

GetAllSourceDestinationPairs API to give list of all source-destination pairs to which bus services are available.

以上应该可以帮助你增色不少。

The above should help you considerably.

这篇关于在PHP RedBus订票API集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆