The following solution is not recommended thing to do since there has been made some modifications in original Zabbix API.