This is a simple tutorial to connect to external API's using OAuth 2.0
- Python
- Flask
- Requests
- Create a .env file and add the following variables:
CLIENT_ID=your_client_id
CLIENT_SECRET=your_client_secret
REDIRECT_URI=your_redirect_uri
QB_BASE_URL=your_qb_base_url
REDIRECT_URI="your-redirect-url"
QB_BASE_URL="your-qb-base-url"
QB_TOKEN_URL="https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer"
QB_COMPANY_ID="your-company-id"
QB_ENV="sandbox"
AUTHORIZATION_URL="your-auth-url"
TOKEN_URL="your-token-url"
- Install the required packages:
pip install -r requirements.txt
- Run the app:
python app.py
- Open http://localhost:5500 in your browser
- Click on Connect to Quickbooks
- Login to your Quickbooks account
- Allow the app to access your Quickbooks account
- You should now see your Quickbooks company info