bigbluebutton-api-php icon indicating copy to clipboard operation
bigbluebutton-api-php copied to clipboard

EventID filter doesn't run

Open Lutice opened this issue 1 year ago • 0 comments

In file src/Parameters/HooksCreateParameters.php in method

public function getHTTPQuery(): string
    {
        $queries = [
            'callbackURL' => $this->callbackUrl,
            'meetingID'   => $this->meetingId,
            'getRaw'      => !is_null($this->getRaw) ? ($this->getRaw ? 'true' : 'false') : $this->getRaw,
        ];

        return $this->buildHTTPQuery($queries);
    }

You must add the eventId filter like this else the hook return all events, even if you set eventid filter on create parameter:

public function getHTTPQuery(): string
    {
        $queries = [
            'callbackURL' => $this->callbackUrl,
            'meetingID'   => $this->meetingId,
            'eventID'     => $this->eventId,
            'getRaw'      => !is_null($this->getRaw) ? ($this->getRaw ? 'true' : 'false') : $this->getRaw,
        ];

        return $this->buildHTTPQuery($queries);
    }

Lutice avatar Jul 17 '24 14:07 Lutice