This test harness demonstrates how to log into the Bambu Labs API using multi-factor authentication (MFA) or email verification codes when required and displays basic print information.
- User Authentication: Prompts for username and password for login.
- Multi-factor Authentication Support: Handles both email verification codes and MFA (Two-Factor Authentication).
- Task Retrieval: Once logged in, retrieves details about your tasks including model title, weight, cost time, device name, and more.
- Python 3.x
- Requests Library: Install via
pip install requests
-
Clone this repository or copy the script.
-
Run the script:
python auth.py