diff --git a/src/Webinar.php b/src/Webinar.php index 967747f..e619718 100644 --- a/src/Webinar.php +++ b/src/Webinar.php @@ -156,6 +156,14 @@ public function getOrganizerSessions() return $this->getResponse(); } + public function getWebinarSessions($webinarKey) + { + $url = 'organizers/' . $this->getOrganizerKey() . '/webinars/' . $webinarKey . '/sessions'; + + $this->setHttpMethod('GET')->setUrl($url)->sendRequest(); + + return $this->getResponse(); + } public function getWebinarSessionAttendees($webinarKey, $sessionKey) { @@ -175,4 +183,22 @@ public function getWebinarSessionAttendee($webinarKey, $sessionKey, $registrantK return $this->getResponse(); } + + public function getWebinarSessionPolls($webinarKey, $sessionKey) + { + $url = 'organizers/' . $this->getOrganizerKey() . '/webinars/' . $webinarKey . '/sessions/' . $sessionKey . '/polls'; + + $this->setHttpMethod('GET')->setUrl($url)->sendRequest(); + + return $this->getResponse(); + } + + public function getAttendeePollAnswers($webinarKey, $sessionKey, $registrantKey) + { + $url = 'organizers/' . $this->getOrganizerKey() . '/webinars/' . $webinarKey . '/sessions/' . $sessionKey . '/attendees/' . $registrantKey . '/polls'; + + $this->setHttpMethod('GET')->setUrl($url)->sendRequest(); + + return $this->getResponse(); + } }