We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ae8f690 + 85cc676 commit 02bcfc7Copy full SHA for 02bcfc7
src/Entity/Attendee.php
src/Webinar.php
@@ -107,13 +107,11 @@ public function getWebinarAttendees($webinarKey)
107
}
108
109
110
- public function registerAttendee($webinarKey, $params)
+ public function registerAttendee($webinarKey, $params = [])
111
{
112
$url = 'organizers/' . $this->getOrganizerKey() . '/webinars/' . $webinarKey . '/registrants';
113
114
- $attendeeObject = new Attendee($params);
115
-
116
- $this->setHttpMethod('POST')->setUrl($url)->setParams($attendeeObject->toArray())->sendRequest();
+ $this->setHttpMethod('POST')->setUrl($url)->setParams($params)->sendRequest();
117
118
return $this->getResponse();
119
0 commit comments