diff --git a/proxy/callback.functions.php b/proxy/callback.functions.php new file mode 100644 index 0000000..7f43fba --- /dev/null +++ b/proxy/callback.functions.php @@ -0,0 +1,102 @@ +"; @@ -124,3 +129,19 @@ $rest_allowed_actions = array( ), ), ); + + +/**************************************************************** + ** ALLOWED CALLBACKS ** + ****************************************************************/ + +// defines the callbacks that are to be forwarded to the target system +// make sure $callbacks_enabled is TRUE for this to work +$callbacks = array( + 'sparkpost_example' => array( + 'secret' => '85c573b980c3c248f083f9ca6a175659', + 'request_method' => 'POST', // single value or array + 'content_type' => 'application/json', + 'target_path' => 'civicrm/sparkpost/callback' + ) +);