Zak API to get Syms
These APIs allow you to get useful parameters that are needed in other calls
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
Url: https://kapi.wubook.net/kp/syms/doc_types
Usage example
At least one of the following parameters is required:
Field name  | 
Description  | 
|---|---|
country  | 
str (‘italy’, ‘spain’ …)  | 
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'
>>> 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
{ "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",
   };