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

Commit

Permalink
Merge pull request #2 from upwebdesign/patch-1
Browse files Browse the repository at this point in the history
Added a few methods to help complete the API
  • Loading branch information
slakbal authored Nov 20, 2017
2 parents 02bcfc7 + 3a2a44a commit 570ab84
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 570ab84

Please sign in to comment.