=========================================== Tesla API - Access Token Helper =========================================== To use the Tesla API, you need an access token. Here are your options: OPTION 1 - Use Tesla Token Generator (Easiest) ---------------------------------------------- 1. Visit: https://tesla-info.com/tesla-token.php 2. Log in with your Tesla account 3. Copy the 'Access Token' that appears 4. Paste it into example_usage.php where it says YOUR_ACCESS_TOKEN_HERE OPTION 2 - Use TeslaPy (Python tool) ------------------------------------- If you have Python installed: 1. Install TeslaPy: pip install teslapy 2. Run this Python code to get your token: from teslapy import Tesla tesla = Tesla('your-email@example.com') tesla.fetch_token() print(tesla.token) OPTION 3 - Manual OAuth Flow (Advanced) --------------------------------------- This requires setting up a complete OAuth flow. See: https://tesla-api.timdorr.com/api-basics/authentication =========================================== Once you have your token: =========================================== 1. Open example_usage.php 2. Replace 'YOUR_ACCESS_TOKEN_HERE' with your actual token 3. Run: php example_usage.php IMPORTANT NOTES: - Keep your token secure and private - Tokens expire after some time (usually a few weeks) - Never share your token or commit it to version control Would you like to test a token now? (y/n): Done!