This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Tool to extract token for hyundai api authorization | |
| # - Can use on any terminal without GUI (like SSH on remote computer). | |
| # - Run with python. Tested with python3.9. Only requires packages "request and sys" (very common). | |
| # - Start script as: python3 HyundaiTokenTerminal.py. | |
| # - Script is self explaining. It provides some url's to paste into the address-bar of a browser on your main computer and requires you to paste back the response in the script. Script finalises with providing refresh-token (to be used as password in the api) and access-token (not necessary to use). | |
| # - Be sure to set the user-agent of the browser as per instruction of the script. Without correct user-agent the script does not work. | |
| import requests | |
| import sys |