This sample application demonstrates how to use the GoHighLevel Python SDK and use webhooks to manage INSTALL and UNINSTALL events. If you are using any storage to store tokens and use webhooks, based on the event it will automatically generate token for you and will store it. If the token is store, SDK will refresh it automatically.
This is a Python/Flask application that shows how to:
- Implement OAuth 2.0 flow with GoHighLevel
- Handle OAuth callbacks and token management using SQL
- Use OAuth tokens to access the GHL API
- Display token information and make authenticated API calls
-
Navigate to this directory
cd python/sample-app-webhook -
Install dependencies
pip install -r requirements.txt
-
Set up environment variables
Create a
.envfile in the root directory and copy.env.exampleand add values.
- Start the server
python app.py