Last active
May 24, 2024 17:51
-
-
Save kevinlin1/7f6ddcc763c95826ea99f9ac86823d84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from canvasapi import Canvas | |
import os | |
if __name__ == "__main__": | |
canvas = Canvas("https://canvas.uw.edu", os.getenv("TOKEN")) | |
course = canvas.get_course(os.getenv("COURSE_ID")) | |
groups = course.get_groups() | |
print("Pre-assign Room Name,Email Address") | |
for group in groups: | |
for user in group.get_users(): | |
print(group.name + "," + user.login_id + "@uw.edu") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment