This application helps to process company data by fetching information from ares and then using this information to update corresponding company information on pipedrive.
The application is built using Flask and uses pipedrive API to interact with pipedrive data.
- Fetches and processes company data.
- Updates the corresponding company information on Pipedrive based on the newly fetched data.
- Utilizes webhooks to trigger the process asynchronously upon receiving the post request.
- The application logs all requests received along with their IP addresses for tracing and troubleshooting.
- Python 3.8 or later
- Flask
- API_TOKEN for pipedrive API access
-
Clone the repository:
git clone <repository-url>
-
Change into the directory:
cd <repository-folder>
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
source venv/bin/activate # for linux venv\Scripts\activate # for windows
-
Install the necessary dependencies:
pip install -r requirements.txt
-
Set the necessary environment variables:
export WEBHOOK_URL=<your_webhook_url> export API_TOKEN=<your_api_token>
├── Dockerfile ├── api_my_ares.py ├── app.py ├── helper.py ├── pipedrive.py └── requirements.txt
- To start the server, run:
python app.py
- GET
/
: Returns 'ok' and logs the IP address of the requester. - POST
/<webhook_url>
: Triggers the processing of the company data. The webhook URL is read from the environment variableWEBHOOK_URL
.
Please ensure to handle the security aspects carefully when deploying this application. Also, ensure to use secure and unique values for WEBHOOK_URL
and API_TOKEN
environment variables to prevent unauthorized access.
For any queries or issues, please contact [email protected].
This project is licensed under MIT License.