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...
TravelDragon is working on an API for third parties to integrate our travel catalog and web services into their site.
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?).
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
Method calls to the TravelDragon web service require an API Key that you can add in your Profile Settings or email api@traveldragon.com. This API is currently under public review. Once you have an approved API Key, you can call the following methods using this syntax:
http://traveldragon.com/api/[method_name]?api_key=[your api key]
Some methods will have additional required or optional parameters as specified below. Authentication is done via HTTP authentication. The methods that require authentication, can be done in two different ways authenticate.
This gets URLS for a member ID or for a membername.
Note, the above methods are the only ones under active development. We have a standard approach to all of our APIs outlined here, so if you like or would need any of these particular email us to woot @traveldragon.com with any details on what you need and what mad creation you are going to create.
The next set of things to be implemented is hooking up the URL service to an excellent web stat service we've built, so soon we'll be returning all kinds of interesting trips on a URL for you as well.
As a final note, anyone interested in being able to AUTO create shorturls for other URL shortening services, such as tinyurl and urltea, our ears are open. With a WOOT! or two we'll probably get that done. woot @traveldragon.com to give us some encouragement.