finished getCourseEvents, see testGetCourseEvents.php demo