Skip to content

EventID filter doesn't run #258

@Lutice

Description

@Lutice

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);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions