Retrieving the schedule
You can retrieve a list of a business’s scheduled classes using the ClassListModel endpoint. This endpoint filters classes by using the start and end dates. Additional filters can be applied on the client side.
// Retrieve the class list. $o_classlist_model = new \WellnessLiving\Wl\Schedule\ClassList\ClassListModel($o_config); $o_classlist_model->is_tab_all=true; // Return classes from all class tabs. $o_classlist_model->k_business='3'; $o_classlist_model->dt_date = '2023-03-27'; $o_classlist_model->dt_end = '2023-03-31'; $o_classlist_model->get(); foreach($o_classlist_model->a_session as $a_session) { echo $a_session['k_class_period']; echo ' '.$a_session['dt_date']; echo ' '.$a_session['k_location']; echo ' '.$a_session['s_title']."\n"; }