From 2207a95c2b811256dd45f2db2bb799078d8dc4a8 Mon Sep 17 00:00:00 2001 From: "B. Endres" Date: Fri, 4 Jan 2019 17:28:52 +0100 Subject: [PATCH] [#32] implementing webhook2api --- proxy/webhook2api.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxy/webhook2api.php b/proxy/webhook2api.php index 7579223..df93aa3 100644 --- a/proxy/webhook2api.php +++ b/proxy/webhook2api.php @@ -153,6 +153,9 @@ function webhook2api_processConfiguration($configuration, $post_input) { civiproxy_log("Webhook2API[{$configuration['name']}]: Missing api_key."); return ["Configuration error", 403]; } + $params['api_key'] = $configuration['api_key']; + + // run API call $result = civicrm_api3($configuration['entity'], $configuration['action'], $params); // process result