Skip to content
This repository has been archived by the owner on Feb 12, 2018. It is now read-only.

Commit

Permalink
Added a few methods to help complete the API
Browse files Browse the repository at this point in the history
These methods are required for us to make this package production ready.
  • Loading branch information
upwebdesign authored Nov 20, 2017
1 parent 02bcfc7 commit 3a2a44a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/Webinar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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();
}
}

0 comments on commit 3a2a44a

Please sign in to comment.