public function createEvent() {
        $event = new Event($this->getContext(),null);
        $this->addChild($event);
        $qry = new CreateEntityQuery($event);
        $this->getContext()->addQuery($qry, $event);
        return $event;
    }
public function createEvent() {
        $event = new Event($this->getContext(),null);
        $this->addChild($event);
        $qry = new CreateEntityQuery($event);
        $this->getContext()->addQuery($qry, $event);
        return $event;
    }
public function createEvent ( ) { $ event = new Event ( $ this -> getContext ( ) , null ) ; $ this -> addChild ( $ event ) ; $ qry = new CreateEntityQuery ( $ event ) ; $ this -> getContext ( ) -> addQuery ( $ qry , $ event ) ; return $ event ; }
Create an event in the user's primary calendar or a specific calendar by posting to the calendar's events endpoint.
@return Event
Create an event in the user s primary calendar or a specific calendar by posting to the calendar s events endpoint .