This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ors-soap-api:public:book [2015/01/24 16:40] 127.0.0.1 external edit |
ors-soap-api:public:book [2019/11/12 09:50] (current) admin [JSON 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", | ||
+ | "eml": "gregor.flajs@ors.si", | ||
+ | "zip": "3310", | ||
+ | "str": "ulica", | ||
+ | "cty": "zalec", | ||
+ | "sur1": "Flajs", | ||
+ | "sur2": "Test", | ||
+ | "sur3": "Child", | ||
+ | "pre1": "Gregor", | ||
+ | "pre2": "Lady", | ||
+ | "pre3": "Kid", | ||
+ | "anrede1": "H", | ||
+ | "anrede2": "D", | ||
+ | "anrede3": "K", | ||
+ | "age": "2005-06-11", | ||
+ | "rmk": "THIS IS A REAL BOOKING" | ||
+ | }, | ||
+ | "header": { | ||
+ | "lang": "[lang]", | ||
+ | "usr" : "[usr]", | ||
+ | "pass": "[pass]", | ||
+ | "agid": "[agid]" | ||
+ | } | ||
+ | } | ||
+ | </code> | ||
===== Examples (Extras) ===== | ===== Examples (Extras) ===== | ||