Vollständige Advoware-EspoCRM Integration implementiert

- Advoware API Proxy für alle HTTP-Methoden (GET/POST/PUT/DELETE)
- EspoCRM Webhook-Receiver für Beteiligte CRUD-Operationen
- Redis-basierte Deduplikation für Webhook-Events
- Event-driven Synchronisations-Handler (Placeholder)
- Detaillierte README.md mit Setup und Verwendungsanleitung
- Fehlerbehebungen für Context-Attribute und Redis-Verbindungen
This commit is contained in:
root
2025-10-20 11:42:52 +00:00
parent 1f893812b2
commit 805d8c7362
11 changed files with 611 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ config = {
'path': '/advoware/proxy',
'method': 'DELETE',
'emits': [],
'flows': ['advoware']
'flows': ['basic-tutorial', 'advoware']
}
async def handler(req, context):
@@ -23,7 +23,10 @@ async def handler(req, context):
json_data = None
context.logger.info(f"Proxying request to Advoware: {method} {endpoint}")
context.logger.info(f"Query params: {params}")
result = await advoware.api_call(endpoint, method=method, params=params, json_data=json_data)
context.logger.info(f"Advoware API response received, length: {len(str(result)) if result else 0}")
context.logger.info(f"Response preview: {str(result)[:500] if result else 'None'}")
return {'status': 200, 'body': {'result': result}}
except Exception as e:

View File

@@ -7,7 +7,7 @@ config = {
'path': '/advoware/proxy',
'method': 'GET',
'emits': [],
'flows': ['advoware']
'flows': ['basic-tutorial', 'advoware']
}
async def handler(req, context):
@@ -23,7 +23,10 @@ async def handler(req, context):
json_data = None
context.logger.info(f"Proxying request to Advoware: {method} {endpoint}")
context.logger.info(f"Query params: {params}")
result = await advoware.api_call(endpoint, method=method, params=params, json_data=json_data)
context.logger.info(f"Advoware API response received, length: {len(str(result)) if result else 0}")
context.logger.info(f"Response preview: {str(result)[:500] if result else 'None'}")
return {'status': 200, 'body': {'result': result}}
except Exception as e:

View File

@@ -7,7 +7,7 @@ config = {
'path': '/advoware/proxy',
'method': 'PUT',
'emits': [],
'flows': ['advoware']
'flows': ['basic-tutorial', 'advoware']
}
async def handler(req, context):
@@ -23,7 +23,11 @@ async def handler(req, context):
json_data = req.get('body')
context.logger.info(f"Proxying request to Advoware: {method} {endpoint}")
context.logger.info(f"Query params: {params}")
context.logger.info(f"Request body: {json_data}")
result = await advoware.api_call(endpoint, method=method, params=params, json_data=json_data)
context.logger.info(f"Advoware API response received, length: {len(str(result)) if result else 0}")
context.logger.info(f"Response preview: {str(result)[:500] if result else 'None'}")
return {'status': 200, 'body': {'result': result}}
except Exception as e: