In this video I connect my Bambu Labs P1s 3D printer to the Magic mirror. I'm using MQTT since the Rest Api calls does not seem to work, but the solution actually ends up better than polling with Rest APIs
Using Postman to test the connection
Programming in Python and using Flask web server to show the result
MQTT Library for Python
https://pypi.org/project/paho-mqtt/