def METHOD_NAME(self, zabbix_user, zabbix_pass, zabbix_api):
    req_data = json.dumps(
        {
            'jsonrpc': '2.0',
            'method': 'user.login',
            'params': {'user': zabbix_user, 'password': zabbix_pass},
            'id': 1,
        }
    )
    self.log.debug("Logging in with params user=%s api=%s", zabbix_user, zabbix_api)
    response = self.request(zabbix_api, req_data)
    token = response.get('result')
    if token is None:
        raise Exception(
            'Unable to login with params user={} api={}: {}'.format(zabbix_user, zabbix_api, response.get('error'))
        )
    return token