Generates analytical reports using data from UT Austin's Canvas LMS Instance
Go to https://yourcanvasinstance.instructure.com/profile/settings
From there, generate a new access token. You should see the following modal:
Fill in the information to your liking.
Next, modify the following line of code with your newly generated authentication token in the canvas_analytics.py script:
# authentication token for testing
auth_token = "<Your authentication token>"
However, this approach is a little slow. A closer examination of the script shows that we make way to many API calls to get information. This can be easily circumvented if we make one API call to download a CSV file containing all the information we are querying for. From here, we can read the information directly from the file in memory.
This is more efficient because getting information from the Canvas servers has a lot of overhead. Grabbing information from memory is much cheaper.