.......... [ZBXNEXT-686] changed the interface of CApiWrapper to match the interface of the client, removed duplicate code