User Tools

Site Tools


ors-soap-api:public:trips

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
ors-soap-api:public:trips [2017/11/07 09:45]
admin [Description]
ors-soap-api:public:trips [2019/07/15 10:00]
admin [Return Values]
Line 183: Line 183:
                         (                         (
                             [AI] => all inclusive                             [AI] => all inclusive
-                        ) 
- 
-                ) 
- 
-            [ppc] => Array 
-                ( 
-                    [selected] => 0 
-                    [val] => Array 
-                        ( 
-                            [192] => 192 
-                            [1015] => 1015 
                         )                         )
  
Line 210: Line 199:
         )         )
  
 +    [rfilters] => Array
 +        (
 +          [ppc] => "​192-1015"​
 +        )
 +        ​
     [sorts] => Array     [sorts] => Array
         (         (
Line 294: Line 288:
       * **0** : trip is cancelled       * **0** : trip is cancelled
       * **3** : trip is almost guaranteed       * **3** : trip is almost guaranteed
 +      * **4** : trip is finished
       * else : trip has no status       * else : trip has no status
     * ''​url''​ : a suggested URL with search parameters for [[check|check method]]     * ''​url''​ : a suggested URL with search parameters for [[check|check method]]
Line 402: Line 397:
  
 $trips = $soapClient->​orsxml_hotel_api_call( '​trips',​ $searchParams,​ $header ); $trips = $soapClient->​orsxml_hotel_api_call( '​trips',​ $searchParams,​ $header );
 +</​code>​
 +
 +===== JSON Examples =====
 +
 +@see [[ors-soap-api:​public:​json_api]] how to post request.
 +
 +<code php>
 +{
 +  "​requestType"​ : "​search",​
 +  "​action":​ "​trips",​
 +  "​search":​ {
 +    "​typ":​ "​hotel",​
 +    "​vnd":​ "​2018-01-10",​
 +    "​bsd":​ "​2018-03-10",​
 +    "​tdc":​ "​1-5",​
 +    "​gid":​ "​15257",​
 +    "​epc":​ "​2"​
 +  },
 +  "​top" ​ : {
 +    "​toc"​ : "​FTI"​
 +  },
 +  "​header":​ {
 +    "​lang":​ "​[lang]",​
 +    "​usr"​ : "​[usr]",​
 +    "​pass":​ "​[pass]",​
 +    "​agid":​ "​[agid]"​
 +  }
 +}
 </​code>​ </​code>​
ors-soap-api/public/trips.txt ยท Last modified: 2019/07/15 10:01 by admin