From 3a2a44ae047c25bc68f8af9b3701c3315c7d83ca Mon Sep 17 00:00:00 2001 From: Jesse Date: Mon, 20 Nov 2017 16:51:15 -0500 Subject: [PATCH] Added a few methods to help complete the API These methods are required for us to make this package production ready. --- src/Webinar.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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(); + } }