create TwingleEvent.sync api

This commit is contained in:
Marc Michalsky forumZFD 2021-01-29 17:50:00 +01:00
parent 7a520e850c
commit ccd2d90984
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
4 changed files with 535 additions and 108 deletions

View file

@ -93,7 +93,7 @@ function _civicrm_api3_twingle_event_Get_spec(array &$spec) {
* @return array
* API result descriptor
*
* @throws CiviCRM_API3_Exception|API_Exception
* @throws CiviCRM_API3_Exception
* @see civicrm_api3_create_success
*
*/
@ -147,7 +147,7 @@ function civicrm_api3_twingle_event_Get(array $params): array {
TwingleEvent::formatValues($returnValues[$event['id']], TwingleEvent::OUT);
}
catch (Exception $e) {
throw new API_Exception($e->getMessage());
throw new CiviCRM_API3_Exception($e->getMessage());
}
}