added commonly used code to get id and auth token when ZabbixAPIEmulator receives the request.