WebinarPress API
Developers can use our internal API to perform the following tasks:
- Get a list of all webinars
- Get a list of upcoming sessions for a recurring webinar
- Register an attendee for a webinar
Getting a list of webinars
// Return a list of webinars $webinars = WebinarPress::get_webinars(); foreach ($webinars as &$webinar) { // Get the webinar id $webinar_id = $webinar->id; // Get the webinar name $name = $webinar->get_name(); }
Register an attendee
WebinarPress::register_attendee([ 'webinar_id' => 123, 'name' => 'Example Attendee', 'email' => '[email protected]' ]);
Get a list of upcoming webinar sessions
$sessions = WebinarPress::get_upcoming_sessions(123); foreach ($sessions as &$session) { $date = $session->date; $day = $session->day; // mon/tue/wed $time = $session->time; // 10:00/12:00/13:00 }