Topic: Python : error 4 on create Order
Hi,
got this code :
params = {
'n' : str(name),
'p' : {},
'u' : int(unit_id),
'tf': tf,
'tt': tt,
'callMode' : 'create',
'x' : float(x),
'y' : float(y),
'itemId' : 123456789,
'id': 0
}
logger.info("%s", pprint.pformat(params))
result = wialon_api.call('order/update',params)
1. token is good and i can login
2. calling result = wialon_api.avl_evts() gives the last events
3. 123456789 is my driver Id
i always get :
WialonError(Invalid input order/update (4))
how to know which value is wrong?
how to know which params are necessary and which one are optionals?
Thanks
Said Lokhat