export BROWSER=google-chrome
https://quizlet.com/api-dashboard
Need client_id
and client_secret
from API homepage, stored in tmp/config.yaml
client_id: "#{client_id}"
client_secret: "#{client_secret}"
redirect_uri: "https://www.mozilla.org/en-US/"
justin@justin-XPS-13-9360:~/work$ python3 authorize.py
Open your browser and navigate to new tab
Paste the full redirect URL here - Opening in existing browser session.
https://www.mozilla.org/en-US/?code=XXXXXX&state=XXXXXX
{'access_token': 'XXXXXX', 'token_type': 'bearer', 'scope': ['XXXXXX']}
- script should fire up your webbrowser, open a new tab and navigate to the URL specified by `redirect_uri`
- note args appended to end of redirect URL
- *copy/paste that URL from the browser into the terminal to complete the flow and get the token*