Beispiel #1
0
 /**
  * Register consumer for a webinar
  * 
  * @param \Citrix\Entity\Consumer $consumer
  * @return \Citrix\GoToWebinar
  */
 public function registerConsumer(\Citrix\Entity\Consumer $consumer)
 {
     $goToWebinar = new GoToWebinar($this->getClient());
     $goToWebinar->register($this->getId(), $consumer->toArray());
     return $goToWebinar;
 }
 public function register($webinar_key, $registrantData)
 {
     $goToWebinar = new GoToWebinar($this->client);
     $response = $goToWebinar->register($webinar_key, $registrantData);
     if ($goToWebinar->hasErrors()) {
         $response = array('has_errors' => true, 'errors' => $goToWebinar->getErrors());
     } else {
         $response = array('has_errors' => false, 'joinUrl' => $goToWebinar->joinUrl);
     }
     return $response;
 }