From e8cbf505a911424192b937337d12c6d24e0f99b7 Mon Sep 17 00:00:00 2001 From: Marc Michalsky forumZFD Date: Wed, 30 Sep 2020 15:29:31 +0200 Subject: [PATCH] edit API_Exeption message -> probably api key is missing or wrong --- api/v3/TwingleSync/models/TwingleApiCall.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/v3/TwingleSync/models/TwingleApiCall.php b/api/v3/TwingleSync/models/TwingleApiCall.php index 65e0ce0..b634ce8 100644 --- a/api/v3/TwingleSync/models/TwingleApiCall.php +++ b/api/v3/TwingleSync/models/TwingleApiCall.php @@ -40,7 +40,9 @@ class TwingleApiCall { curl_close($curl); if (empty($response)) { - throw new \API_Exception("Twingle API call failed"); + throw new \API_Exception( + "Twingle API call failed" . PHP_EOL . + "Please check your api key."); } $this->organisationId = array_column($response, 'id');