Discover, Plan & Go!

Welcome to TravelDragon

TravelDragon has created a one-stop travel research center featuring exceptional toursand accomodations for discriminating travelers. Through partnerships with these resources. TravelDragon gives you the ability...

API

TravelDragon is working on an API for third parties to integrate our travel catalog and web services into their site.

TravelDragon Web Service API

Generalizations on the TravelDragon API

All API usage is tied to an actual account. So you need to create one. When you do, check the box in your profile to get your new key. Otherwise things don't work so well.

The most basic thing you can do is programmatically send a travel search and get search returns for those trips.

These are some basic access methods so that you can add us to your toolbar, your site, your blog (someone interested in doing a Wordpress plugin?).

Easy as opus example

Supports both GET and POST methods

http://traveldragon.com/api/[method_name]?api_key=[your api key]

such as....

http://traveldragon.com/api/search/italy

returns

TravelDragon travel search engine returns page

Or similar. Before you send the URL over, encode it! PHP uses something called url_encodes, particularly when it has ampersands which many massive URLs do. The joys of URL programming.

The TravelDragon API tries to stick to the design ofREST. Methods exposed by the TravelDragon API require a GET request. Methods that post updates or direct messages require a POST.

Basic Authorization is done via whatever method your library requires. This could be the simple use of a URL such as: http://traveldragon.com/api/public_timeline?api_key=APIkeyofyoursFromYourProfile