Learncube-Python is available on PyPI:
$ pip install learncube
Note: For more information visit the Learncube documentation
from learncube import Classroom
public_key = "..."
private_key = "..."
v_c = Classroom(public_key=public_key, private_key=private_key)
response = v_c.list_virtual_classroom(room_token="...")
Note: you can pass any information into the **kwargs`
data = {
'room_token': randint(0, 100),
'cancelled': False,
'description': "This is a test",
'start': datetime.now().isoformat(),
'end': datetime.now().isoformat(),
'max_participants': 2,
'audio_only': False,
'return_url': "",
'record_class': False
}
response = v_c.create_virtual_classroom(
room_token=data['room_token'],
cancelled=data['cancelled'],
description=data['description'],
start=data['start'],
end=data['end'],
max_participants=data['max_participants'],
audio_only=data['audio_only'],
return_url=data['return_url'],
record_class=data['record_class']
)
response = v_c.read_virtual_classroom(uuid='...')
Note: you can pass any information into the **kwargs
data = {
'room_token': randint(0, 100),
'cancelled': False,
'description': "This is a test",
'start': datetime.now().isoformat(),
'end': datetime.now().isoformat(),
'max_participants': 2,
'audio_only': False,
'return_url': "",
'record_class': False
}
response = v_c.update_virtual_classroom(uuid=uuid,
room_token=data['room_token'],
cancelled=data['cancelled'],
description=data['description'],
start=data['start'],
end=data['end'],
max_participants=data['max_participants'],
audio_only=data['audio_only'],
return_url=data['return_url'],
record_class=data['record_class']
)
response = v_c.delete_virtual_classroom(uuid=uuid)
from learncube import Participants
public_key = "..."
private_key = "..."
p_c = Participants(public_key=public_key, private_key=private_key)
response = p_c.read_participant(uuid='...')
Note: you can pass any information into the **kwargs
response = p_c.list_participants(room_token="...")
from learncube import Logs
public_key = "..."
private_key = "..."
logs = Logs(public_key=public_key, private_key=private_key)
response = logs.read_logs(uuid='...')
Note: you can pass any information into the **kwargs
response = logs.list_logs(room_token="...")
Besides the public_key
and private_key
you can provide an api_base_path
attribute, which will overwrite the default endpoint.