Site Tools


Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
New release available: 2020-07-29 "Hogfather". upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
start

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
start [2018/11/28 16:04]
223.207.6.67
start [2024/12/19 13:09] (current)
188.165.146.197
Line 1: Line 1:
 +====== ​ ======
  
-**Avia Booking API v1.0 Manual** +[title]Кусок дсп[title]Привет! Я недавно заказала кусок ДСП в интернет-магазине Fanwood.by и осталась очень довольна качеством товараЦена на [[https://fanwood.by/shop/dsp200/|кусок ДСП]] меня приятно удивила,​ да и доставка была быстрой. Если вам нужен недорогой и качественный материал,​ советую заглянуть на сайт Fanwood и купить ДСП! Качество продукции приятно удивит вас. Анна К.
- +
-To use an API, you have to get an API key from the back office system ([[http://​zimmu.com/​booking]]) and set a domain origin that call an API. +
- +
- +
-**API Authentication** +
- +
-In version 1.0 API make authentication via API’s key and domain origin. +
- +
- +
-**API Request Method** +
- +
-API can use both POST and GET method, then it can pass parameter from JQuery.post() or JQuery.get() or Web form. +
- +
- +
-**API output format** +
- +
-API will output a data in JSON format as shown below: +
- +
-{{ :​รูป_1.jpg?​nolink |}} +
- +
-The sample output from GET_PROVINCE_LIST method, to make the JSON data readable in the browser use a Chrome extension called JSONView +
- +
-Then you can reproduce an output from JSON data to be a web form or show in data table. A code can write in **PHP Curl** or **JQuery Ajax.** +
- +
- +
-__**Method Definition**__ +
- +
-**1. GET_PROVINCE_LIST** +
- +
-get a province list to do a select box for source and destination. +
-parameter: {key}&​{method} +
- +
-**2. GET_STATION** +
- +
-after select source or destination province, use this method to get a list of station for source | destination +
-parameter: {key}&​{method}&​{provinceID}&​{type} +
-{type} = source | destination +
- +
-**3. GET_TIME_TABLE** +
- +
-get a list of trip schedule when we know a source | destination station and date +
-parameter: {key}&​{method}&​{from}&​{to}&​{date} +
-{from} | {to} = source | destination station ID +
-{date} format in Y-m-d such as 2018-03-29 +
- +
-**4PUT_BOOKING** +
- +
-when user completed a booking data this method will be use to put a booking data back to datacenter +
-parameter: {key}&​{method}&​{serviceID}&​{passengerName}&​{telNo}&​ +
-{passportNo}&​{amoutOfSeat} +
- +
-{serviceID} = user selected, {passportNo} is optional +
-{amoutOfSeat} = total number of seat that booking +
-*** this method will output a booking number to use for reference** +
- +
-**5. GET_BOOKING** +
- +
-you can get a booking data via use of booking number to produce a ticket or QR code or send to an user email +
-parameter: {key}&​{method}&​{bookingNo} +
- +
- +
-__**Example code by PHP Curl**__ +
- +
-Code with get_province_list method: +
-{{ :api.jpg?nolink |}} +
- +
-To work with other method you can modify a code in line 19 with new method and it’s parameter. +
- +
- +
-get_station method: +
-{{ :​รูป_3.jpg?​nolink |}} +
- +
- +
- +
- +
-get_time_table method: +
-{{ :​x.jpg?​nolink |}}{{ :​a.jpg?​nolink |}} +
- +
- +
- +
- +
- +
-put_booking method: +
-{{ :​รูป_5.jpg?​nolink |}} +
-* Note that we will use 1 passenger data for all seats in same booking. If you need passenger data separate to each seat you must put in difference booking number +
-{{ :​รูป_6.jpg?​nolink |}} +
- +
-get_booking method: +
-{{ :​รูป_7.jpg?​nolink |}} +
- +
- +
- +
- +
- +
-**API registration requirement please follow the link below** +
- +
-__[[https://zimmu.com/api/manual/register]]__ +
-                            ​+
  
start.1543395862.txt.gz · Last modified: 2020/04/10 08:33 (external edit)