Updated Yottaa api class for better handling response.