10 lines
305 B
Python
10 lines
305 B
Python
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'])) |