This shows you the differences between two versions of the page.
Last revision Both sides next revision | |||
ors-soap-api:public:book [2015/01/24 16:40] 127.0.0.1 external edit |
ors-soap-api:public:book [2019/11/07 11:23] admin [Examples] |
||
---|---|---|---|
Line 444: | Line 444: | ||
</code> | </code> | ||
+ | ===== JSON Examples ===== | ||
+ | @see [[ors-soap-api:public:json_api]] how to post request. | ||
+ | |||
+ | <code php> | ||
+ | { | ||
+ | "requestType" : "book", | ||
+ | "action": "book", | ||
+ | "search": { | ||
+ | "typ": "hotel", | ||
+ | "hsc": "509fd42d2fe71bc3396830b207d4bb92", | ||
+ | "toc": "PALM", | ||
+ | "epc": "2", | ||
+ | "eml": "gregor.flajs@ors.si", | ||
+ | "zip": "3310", | ||
+ | "str": "ulica", | ||
+ | "cty": "zalec", | ||
+ | "sur1": "Flajs", | ||
+ | "sur2": "Test", | ||
+ | "pre1": "Gregor", | ||
+ | "pre2": "ORS", | ||
+ | "anrede1": "H", | ||
+ | "anrede2": "H", | ||
+ | "rmk": "THIS IS A REAL BOOKING" | ||
+ | }, | ||
+ | "header": { | ||
+ | "lang": "[lang]", | ||
+ | "usr" : "[usr]", | ||
+ | "pass": "[pass]", | ||
+ | "agid": "[agid]" | ||
+ | } | ||
+ | } | ||
+ | </code> | ||
===== Examples (Extras) ===== | ===== Examples (Extras) ===== | ||