This project demonstrates a Python-based UI webhook integration. The project includes several Python scripts that handle different aspects of the webhook functionality.
uiapp.py
: The UI app which runs the UI listening for webhook to respond.userverify.py
: Which will make the webhook call to the ui, when some one calls the POST /user_verify .
- Python 3.8 or higher
- Flask
- Requests
python3 -m venv .
source ./bin/activate
pip install flask
pip install requests
- Clone the repository:
git clone https://github.com/yourusername/python-ui-webhook-demo.git
- Navigate to the project directory:
cd python-ui-webhook-demo
- Install the required dependencies:
pip install -r requirements.txt
- Start the Flask server:
python uiapp.py
- Open your web browser and navigate to
http://localhost:5001
to view the application.
- Start the Flask server:
python userverify.py
- Open your web browser and navigate to
http://localhost:5000
to view the application.
- The application listens for incoming webhook requests at
/webhook
.
Contributions are welcome! Please open an issue or submit a pull request for any changes.