| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
A simple Flask application that demonstrates integration with QuickBooks Online API to fetch dimensions and attach those dimensions to invoices.
Clone the Repository
git clone <your repository url>
cd SampleApp_Dimensions_PythonCreate Virtual Environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activateInstall Dependencies
pip3 install -r FlaskApp/requirements.txt4.Set environment variables Create a .env file in the root directory of the project with your QuickBooks credentials: Update the environment variables with your app credentials(Note:In case the .env file doesn't pick your app credentials, you can directly update the values in the codebase at config.py):
QB_CLIENT_ID=your_client_id QB_CLIENT_SECRET=your_client_secret QB_REDIRECT_URI=your_redirect_uri # e.g., https://your-ngrok-url.ngrok-free.app/callback QB_ENVIRONMENT=sandbox # or production
ngrok http 5002cd FlaskApp
python3 app.pySampleApp_Demensions_Python/ ├── FlaskApp/ │ ├── app.py # Main Flask application │ ├── config.py # Configuration settings │ ├── requirements.txt # Python dependencies │ ├── .env.template # Template for environment variables │ ├── static/ # Static assets (CSS, images) │ │ ├── styles.css │ │ ├── graphql/ # GraphQL queries and mutations │ │ └── images/ │ └── templates/ # HTML templates │ └── index.html ├── README.md ├── .gitignore └── LICENSE.txt
Authentication Issues
Environment Setup Issues
API Errors
Feel free to submit issues and enhancement requests. For major changes, please open an issue first to discuss what you would like to change.
| Back | FazBrowse Home | New Git URL |