Rezgo will once again be participating in THack, the travel hack-a-thon developed by Tnooz.com. On June 28th, 2012 developers from around the globe will convene in London to present their creations to a live audience.
From the Tnooz website
[quote style=”boxed”]THack London will follow a similar path to the first THack in February 2011 – developers will have TWO WEEKS to create something using the APIs we are making available, as well as using any other freely available API on the web (such as Facebook, Twitter, Google Maps, Wikipedia, et al).[/quote]
Developers interested in using the Rezgo XML API can use the following resources. Developers are also encouraged to contact us should you have any questions or need assistance.
Amazing Tours Rezgo Site
This is live vendor account with about 450 available products. The vendor account uses a live payment gateway, so real booking requests should not be committed to the account. You are free to take the booking to the point of payment. The following link is the live front-end booking engine for the Amazing Tours site.
The following credentials will be required to authenticate your requests to the XML API. You will find the credentials used in the sample queries below.
Company Code / CID: p103
API Key: 2D8-F3V0-X7C0-C6I
For complete documentation on all the calls available through the XML API, refer to the following section on the Rezgo support site.
Downloadable Source Code
If you are looking for a place to start, download this open source package. The PHP code provided in this package is a complete working version of the front-end booking engine available on Rezgo.com. To use the PHP code, you will need the CID and API Key specified above.
Support for Developers
If you require any assistance, feel free to contact us through any of the following methods:
Email – firstname.lastname@example.org
Skype – rezgo.support
Phone – +1 (604) 983-0083
When contacting us, please be sure to mention that you are part of THack 2012.
Sample XML Queries
Company About Information
This query returns the company profile details. In this case, the information returned will be for Amazing Tours.
Get Available Tags
Search Items with specific tag
This query searches the account for items that match based on specific tag (or tags). In this case, the API will return all tours that are tagged with “sightseeing”.
Search Items with Date (Availability)
This query searches all tours for items that have availability on a given date. The API will return a list of every tour in the account along with corresponding availability. To display only tours that are available, you will need to parse through the results and show only those that have availability. Note: This is a large result set.
Retrieve Availability for a Specific Tour
This query returns availability for a specific item. In this case, the availability for item SKU 28170 on August 1, 2012.
Retrieve Monthly Availability for a Specific Tour
This query will return a list of daily availability for a specific tour in a specific month. The results are shown as a breakdown of each option for the tour along with availability for each.
Retrieve Monthly Availability for a Specific Tour Option
This query will return a list of daily availability for a specific tour option. The query is identical to the previous one with the exception that the This examples returns one of the two options for the tour specified in the previous query.
Commit a Booking
This query will commit a booking to the XML API. You can use this query if you want to simulate a booking. You’ll be provided with a successful booking that is “Payment Pending”.