This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ors-soap-api:public:register [2016/05/23 15:05] admin [Examples] |
ors-soap-api:public:register [2019/11/12 09:46] (current) admin [JSON Examples] |
||
---|---|---|---|
Line 412: | Line 412: | ||
| | ||
} | } | ||
+ | </code> | ||
+ | ===== JSON Examples ===== | ||
+ | @see [[ors-soap-api:public:json_api]] how to post request. | ||
+ | |||
+ | <code php> | ||
+ | { | ||
+ | "requestType" : "book", | ||
+ | "action": "register", | ||
+ | "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", | ||
+ | "anrede2": "K", | ||
+ | "age3": "2005-06-11", | ||
+ | "rmk": "TEST REGISTRAION" | ||
+ | }, | ||
+ | "booking": true, | ||
+ | "header": { | ||
+ | "lang": "[lang]", | ||
+ | "usr" : "[usr]", | ||
+ | "pass": "[pass]", | ||
+ | "agid": "[agid]" | ||
+ | } | ||
+ | } | ||
</code> | </code> | ||