.. meta:: :description: Wired Zak API read guests :keywords: api, pms, zak, kapi, booking, bookings, reservation, reservations, guest, guests Zak API to get Syms ******************* | These APIs allow you to get useful parameters that are needed in other calls .. _123456: ../kapi/introduction.html#authentication | On each examples `123456`_ is used as **api-key** which is sent as *user*. Documents ========= | This method will return information regarding documents of a given country .. code-block:: html Url: https://kapi.wubook.net/kp/syms/doc_types | Usage example ------------- At least one of the following parameters is required: .. table:: :widths: auto +--------------------------+-----------------------------------------------------------------------------------------+ | **Field name** | **Description** | +==========================+=========================================================================================+ | *country* | str ('italy', 'spain' ...) | +--------------------------+-----------------------------------------------------------------------------------------+ .. tabs:: .. code-tab:: bash curl $ curl --location --request POST 'https://kapi.wubook.net/kp/syms/doc_types' \ --header 'x-api-key: wb_yyyyyyyyyyy' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'country=italy' .. code-tab:: py >>> import requests >>> headers = {'x-api-key':'123456', 'x-api-provider-key':654321} >>> data = { 'country': 'italy' } >>> response= requests.post('https://kapi.wubook.net/kp/syms/doc_types', headers = headers, data = data) >>> print(response.text) | Response Example ---------------- .. code-block:: shell ${ "data": { "p": "PASSPORT", "i": "IDENTITY CARD", "d": "DRIVING LICENSE", "h": "HEALTH CARD", "s": "SAILOR CERTIFICATE", "a": "CREW MEMBER CERTIFICATE", "b": "BIRTH CERTIFICATE", "c": "GREEN CARD", }; |