How gohighlevel/ghl-sdk-examples works
This repository is a collection of HighLevel SDK sample applications in Node.js, PHP, and Python, rather than one shared application. The examples demonstrate OAuth installation and callbacks, session-backed contact retrieval, token refresh, and webhook handling, with MongoDB, SQL, and Redis storage variants. The clearest end-to-end evidence is in the Node Redis, Python SQL/Mongo, PHP SQL, and Python webhook excerpts; several other sample entry points are indexed but not excerpted, so their internal flows are not expanded here.
Main entry points: sample-app-mongo/app.py Mongo sample app · index.js Redis sample app · redis-storage.js Redis sessions · sample-app-sql/app.py SQL sample app
Components 22
Node.js samples
- Redis sample app
node/sample-app-redis/index.js - Mongo sample app
node/sample-app-mongo/index.js - OAuth sample app
node/sample-app-oauth/index.js - PIT sample app
node/sample-app-pit/index.js - Webhook sample app
node/sample-app-webhook/index.js
PHP samples
- Mongo sample app
php/sample-app-mongo/public/index.php - OAuth sample app
php/sample-app-oauth/public/index.php - SQL sample app
php/sample-app-sql/public/index.php - Webhook sample app
php/sample-app-webhook/public/index.php
Python samples
- Mongo sample app
python/sample-app-mongo/app.py - OAuth sample app
python/sample-app-oauth/app.py - PIT sample app
python/sample-app-pit/app.py - SQL sample app
python/sample-app-sql/app.py - Webhook server
python/sample-app-webhook/app.py - ASGI entry
python/sample-app-webhook/config/asgi.py - Webhook routes
python/sample-app-webhook/config/urls.py - Webhook handlers
python/sample-app-webhook/config/views.py
Session storage
- Redis sessions
node/sample-app-redis/storage/redis-storage.js - SQL sessions
php/sample-app-sql/storage/SqlStorage.php - SQL sessions
python/sample-app-sql/storage/sql_storage.py
Other components
- Browser user
- Redis
Connections 17
- Browser user → Redis sample app: requests routes
node/sample-app-redis/index.js - Redis sample app → Redis sessions: configures storage
node/sample-app-redis/index.js - Redis sessions → Redis: reads and writes
node/sample-app-redis/storage/redis-storage.js - Redis sample app → Redis sessions: stores tokens
node/sample-app-redis/index.js - Redis sample app → Redis sessions: checks sessions
node/sample-app-redis/index.js - Browser user → Mongo sample app: requests routes
python/sample-app-mongo/app.py - Mongo sample app → Mongo sample app: starts OAuth
python/sample-app-mongo/app.py - Mongo sample app → Mongo sample app: fetches contacts
python/sample-app-mongo/app.py - Mongo sample app → Mongo sample app: refreshes tokens
python/sample-app-mongo/app.py - Browser user → SQL sample app: requests routes
python/sample-app-sql/app.py - SQL sample app → SQL sessions: stores sessions
python/sample-app-sql/app.py - SQL sample app → SQL sessions: checks sessions
python/sample-app-sql/app.py - Browser user → SQL sample app: requests routes
php/sample-app-sql/public/index.php - SQL sample app → SQL sessions: configures storage
php/sample-app-sql/public/index.php - Browser user → Webhook server: starts server
python/sample-app-webhook/app.py - Webhook server → ASGI entry: runs application
python/sample-app-webhook/app.py - Webhook routes → Webhook handlers: routes requests
python/sample-app-webhook/config/urls.py