|
24 | 24 | use BigBlueButton\Parameters\EndMeetingParameters; |
25 | 25 | use BigBlueButton\Parameters\GetMeetingInfoParameters; |
26 | 26 | use BigBlueButton\Parameters\GetRecordingsParameters; |
| 27 | +use BigBlueButton\Parameters\HooksCreateParameters; |
| 28 | +use BigBlueButton\Parameters\HooksDestroyParameters; |
27 | 29 | use BigBlueButton\Parameters\IsMeetingRunningParameters; |
28 | 30 | use BigBlueButton\Parameters\JoinMeetingParameters; |
29 | 31 | use BigBlueButton\Parameters\PublishRecordingsParameters; |
|
36 | 38 | use BigBlueButton\Responses\GetMeetingInfoResponse; |
37 | 39 | use BigBlueButton\Responses\GetMeetingsResponse; |
38 | 40 | use BigBlueButton\Responses\GetRecordingsResponse; |
| 41 | +use BigBlueButton\Responses\HooksCreateResponse; |
| 42 | +use BigBlueButton\Responses\HooksDestroyResponse; |
| 43 | +use BigBlueButton\Responses\HooksListResponse; |
39 | 44 | use BigBlueButton\Responses\IsMeetingRunningResponse; |
40 | 45 | use BigBlueButton\Responses\JoinMeetingResponse; |
41 | 46 | use BigBlueButton\Responses\PublishRecordingsResponse; |
@@ -351,6 +356,66 @@ public function updateRecordings($recordingParams) |
351 | 356 | return new UpdateRecordingsResponse($xml); |
352 | 357 | } |
353 | 358 |
|
| 359 | + /* ____________________ WEB HOOKS METHODS ___________________ */ |
| 360 | + |
| 361 | + /** |
| 362 | + * @param $hookCreateParams HooksCreateParameters |
| 363 | + * @return string |
| 364 | + */ |
| 365 | + public function getHooksCreateUrl($hookCreateParams) |
| 366 | + { |
| 367 | + return $this->urlBuilder->buildUrl(ApiMethod::HOOKS_CREATE, $hookCreateParams->getHTTPQuery()); |
| 368 | + } |
| 369 | + |
| 370 | + /** |
| 371 | + * @param $hookCreateParams |
| 372 | + * @return HooksCreateResponse |
| 373 | + */ |
| 374 | + public function hooksCreate($hookCreateParams) |
| 375 | + { |
| 376 | + $xml = $this->processXmlResponse($this->getHooksCreateUrl($hookCreateParams)); |
| 377 | + |
| 378 | + return new HooksCreateResponse($xml); |
| 379 | + } |
| 380 | + |
| 381 | + /** |
| 382 | + * @return string |
| 383 | + */ |
| 384 | + public function getHooksListUrl() |
| 385 | + { |
| 386 | + return $this->urlBuilder->buildUrl(ApiMethod::HOOKS_LIST); |
| 387 | + } |
| 388 | + |
| 389 | + /** |
| 390 | + * @return HooksListResponse |
| 391 | + */ |
| 392 | + public function hooksList() |
| 393 | + { |
| 394 | + $xml = $this->processXmlResponse($this->getHooksListUrl()); |
| 395 | + |
| 396 | + return new HooksListResponse($xml); |
| 397 | + } |
| 398 | + |
| 399 | + /** |
| 400 | + * @param $hooksDestroyParams HooksDestroyParameters |
| 401 | + * @return string |
| 402 | + */ |
| 403 | + public function getHooksDestroyUrl($hooksDestroyParams) |
| 404 | + { |
| 405 | + return $this->urlBuilder->buildUrl(ApiMethod::HOOKS_DESTROY, $hooksDestroyParams->getHTTPQuery()); |
| 406 | + } |
| 407 | + |
| 408 | + /** |
| 409 | + * @param $hooksDestroyParams |
| 410 | + * @return HooksDestroyResponse |
| 411 | + */ |
| 412 | + public function hooksDestroy($hooksDestroyParams) |
| 413 | + { |
| 414 | + $xml = $this->processXmlResponse($this->getHooksDestroyUrl($hooksDestroyParams)); |
| 415 | + |
| 416 | + return new HooksDestroyResponse($xml); |
| 417 | + } |
| 418 | + |
354 | 419 | /* ____________________ SPECIAL METHODS ___________________ */ |
355 | 420 | /** |
356 | 421 | * @return string |
|
0 commit comments