src/Entity/XiboSchedule.php
public function getById(array $params = [], $id)
    {
        $this->getLogger()->info('Getting event with ID ' . $id);
        $entries = [];
        # need at least display group (always events) and to, from (other dayparts)
        $response = $this->doGet('/schedule/data/events', $params);

        foreach ($response['result'] as $item) {
            if($item['id'] === $id){
            $entries[] = clone $this->hydrate($item);
        }
            else
                throw new XiboApiException('Provided eventId not found ' . $id);
        }
        return $entries;
    }
public function getById(array $params = [], $id)
    {
        $this->getLogger()->info('Getting event with ID ' . $id);
        $entries = [];
        # need at least display group (always events) and to, from (other dayparts)
        $response = $this->doGet('/schedule/data/events', $params);

        foreach ($response['result'] as $item) {
            if($item['id'] === $id){
            $entries[] = clone $this->hydrate($item);
        }
            else
                throw new XiboApiException('Provided eventId not found ' . $id);
        }
        return $entries;
    }
public function getById ( array $ params = [ ] , $ id ) { $ this -> getLogger ( ) -> info ( 'Getting event with ID ' . $ id ) ; $ entries = [ ] ; # need at least display group (always events) and to, from (other dayparts) $ response = $ this -> doGet ( '/schedule/data/events' , $ params ) ; foreach ( $ response [ 'result' ] as $ item ) { if ( $ item [ 'id' ] === $ id ) { $ entries [ ] = clone $ this -> hydrate ( $ item ) ; } else throw new XiboApiException ( 'Provided eventId not found ' . $ id ) ; } return $ entries ; }
Get a list of scheduled events for the specified display Group.

@param array $params
@param int $id The Event ID
@return array $entries require displayGroupId additionally to and from can be added for dayparts other than always
@throws XiboApiException
Get a list of scheduled events for the specified display Group .