Pre-optimization commit: Calendar sync implementation with hub design
This commit is contained in:
@@ -7,7 +7,7 @@ config = {
|
||||
'path': '/advoware/proxy',
|
||||
'method': 'DELETE',
|
||||
'emits': [],
|
||||
'flows': ['basic-tutorial', 'advoware']
|
||||
'flows': ['advoware']
|
||||
}
|
||||
|
||||
async def handler(req, context):
|
||||
@@ -23,10 +23,7 @@ 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:
|
||||
|
||||
@@ -7,7 +7,7 @@ config = {
|
||||
'path': '/advoware/proxy',
|
||||
'method': 'GET',
|
||||
'emits': [],
|
||||
'flows': ['basic-tutorial', 'advoware']
|
||||
'flows': ['advoware']
|
||||
}
|
||||
|
||||
async def handler(req, context):
|
||||
@@ -23,10 +23,7 @@ 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:
|
||||
|
||||
@@ -7,7 +7,7 @@ config = {
|
||||
'path': '/advoware/proxy',
|
||||
'method': 'PUT',
|
||||
'emits': [],
|
||||
'flows': ['basic-tutorial', 'advoware']
|
||||
'flows': ['advoware']
|
||||
}
|
||||
|
||||
async def handler(req, context):
|
||||
@@ -23,11 +23,7 @@ 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:
|
||||
|
||||
Reference in New Issue
Block a user