Skip to content

Commit 0b73b00

Browse files
committed
Collect registrant parameters
This allows for additional default and custom fields per GoToWebinar’s API documentation when registering an attendee, such as phone, city and state. The use of the collect helper eliminates the need for the Attendee Entity class.
1 parent 825b56e commit 0b73b00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Webinar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function registerAttendee($webinarKey, $params)
111111
{
112112
$url = 'organizers/' . $this->getOrganizerKey() . '/webinars/' . $webinarKey . '/registrants';
113113

114-
$attendeeObject = new Attendee($params);
114+
$attendeeObject = collect($params);
115115

116116
$this->setHttpMethod('POST')->setUrl($url)->setParams($attendeeObject->toArray())->sendRequest();
117117

0 commit comments

Comments
 (0)