from config import CONFIG from api.moodle import Moodle moodle = Moodle(CONFIG['moodle']['username'], CONFIG['moodle']['password']) if moodle.status: for c in moodle.getCourses("1092"): print(c) for e in moodle.getUpcomingEvents(): print(e) print(moodle.getEvent(e['id'])) for work in moodle.getWeekWorkInCourse('47562'): print(work)