Template OAuth project with Fyle
fyle-oauth-flask is an OAuth2 template to show how to implement OAuth2 in your flask application to access fyle APIs .
FyleSDK is a Python SDK for accessing Fyle APIs. Read more about FyleSDK from this .
You can install all the dependencies using :
$pip install -r requirements.txt
- Install all the dependencies if you haven't done yet.
- Set Environment variables for CLIENT_ID,CLIENT_SECRET,BASE_URL using :
export CLIENT_ID='<Your Client id>'
export CLIENT_SECRET='<Your Client Secret>'
export BASE_URL='<Your BASE URL>'
- Here REDIRECT_URI is http://localhost:8080/refresh_token .You can change it if you want.
- Run the application using :
python run.py
- Visit http://localhost:8080/ to login .