Table of contents
-
- Search methods
- Check methods
- Booking methods
- Info methods
Data export
- Methods
Table of contents
Data export
This is an old revision of the document!
Almost all SOAP calls require $header array. Here you enter your licence information, default language code and session id.
Parameters:
lang : a return language that API returns. If you leave blank than a default language set on your ORS account is used.usr : ORS account usernamepass : ORS account passwordagid : ORS account IDibeid : partner ID (affiliate)sid : session ID. This ID must be unique for each user on your page because it is used for filtering and sorting of returned resultslimits : to set maximum number of search results per page. Use 'p' for limit offers and 't' to limit trips (see example to understand the usage)xuser : user id for data export credentialsxpass : user password for data export credentialsUsage:
Here is an example for setting $header array with demo licence information.
// ORSXML header information $header = array( 'lang' => 'en', // a return language 'usr' => 'xmldemo102', // ORSXML user 'pass' => 'orsdemogh1', // ORSXML password 'agid' => '5780', // agency ID (or account id) 'sid' => session_id(), // this is required so that filtering and sorting works correctly! 'limits' => 'p:6,t:50', // set limits (6 offers per page and 50 trips per page) );