From 8b8f96cff7d21968409b43b47622a5eefa9a4271 Mon Sep 17 00:00:00 2001 From: Marc Michalsky forumZFD Date: Wed, 7 Oct 2020 15:33:33 +0200 Subject: [PATCH] changed sync process from Get to Post call to meet REST specification --- api/v3/TwingleSync/{Get.php => Post.php} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename api/v3/TwingleSync/{Get.php => Post.php} (91%) diff --git a/api/v3/TwingleSync/Get.php b/api/v3/TwingleSync/Post.php similarity index 91% rename from api/v3/TwingleSync/Get.php rename to api/v3/TwingleSync/Post.php index 17eb1da..0b214dc 100644 --- a/api/v3/TwingleSync/Get.php +++ b/api/v3/TwingleSync/Post.php @@ -6,14 +6,14 @@ use CRM\TwingleCampaign\BAO\TwingleApiCall as TwingleApiCall; include_once E::path() . '/api/v3/TwingleSync/BAO/TwingleApiCall.php'; /** - * TwingleSync.Get API specification (optional) + * TwingleSync.Post API specification (optional) * This is used for documentation and validation. * * @param array $spec description of fields supported by this API call * * @see https://docs.civicrm.org/dev/en/latest/framework/api-architecture/ */ -function _civicrm_api3_twingle_sync_Get_spec(&$spec) { +function _civicrm_api3_twingle_sync_Post_spec(&$spec) { $spec['twingle_api_key'] = [ 'name' => 'twingle_api_key', 'title' => E::ts('Twingle API key'), @@ -31,7 +31,7 @@ function _civicrm_api3_twingle_sync_Get_spec(&$spec) { } /** - * TwingleSync.Get API + * TwingleSync.Post API * * @param array $params * @@ -42,7 +42,7 @@ function _civicrm_api3_twingle_sync_Get_spec(&$spec) { * @see civicrm_api3_create_success * */ -function civicrm_api3_twingle_sync_Get($params) { +function civicrm_api3_twingle_sync_Post($params) { $result_values = []; // Is this call a test?