Example #1
0
 /**
  * Post event body to event API
  * @param Event $event
  * @return bool
  */
 public function postEvent(Event $event)
 {
     try {
         $response = $this->_client->restPost(sprintf('/event/%s', $event->getSubject()), $event->toArray());
         $this->_eventLogger->logApiCall($this->_client, $response);
     } catch (\Zend_Http_Client_Exception $e) {
         $this->_eventLogger->logApiCallException($this->_client, $e);
     }
     return true;
 }