in order to use this example you need to have installed python3
once installed python open a command window and type
python --version
unzip the python3-ionapi file in a folder
create a folder in your drive and unzip the chromedriver.zip file open the oauth2.py file and replace the path in the command
chrome_driver = 'E:/chromedriver_win32/chromedriver.exe'
with the path of the created folder
open a command window and go to the folder where you have unzipped the python3-ionapi file
pip install selenium
after selenium has been installed type python oauth2.py
provide a folder that contains files with extension .ionapi
type a number corrisponding to the file you want to use if the file doesn't contain the redirect URL you are prompted to enter it
the script reads the file and display the details and open a browser
provide your credential
allow
the script makes the authentication and call the api for displaying the user details and close the browser