Skip to content

Instantly share code, notes, and snippets.

View jbdammeier's full-sized avatar

Justin Dammeier jbdammeier

  • Westfield, IN
View GitHub Profile
@jbdammeier
jbdammeier / sample_get_canvas_grades.py
Last active March 16, 2023 15:51
This is a sample Python program demonstrating how to use the Canvas API to pull a list of active courses with total score information. Produces CSV with Percent & Letter Grade.
import requests, json
from pprint import pprint
from urllib.request import Request, urlopen
import csv
import os
import timeit
def getInput(file):
'''Opens the file, produces list of lines in the file, removes the header row, and returns the list'''
inFile = open(file)
@jbdammeier
jbdammeier / canvas_api_demo.py
Last active September 26, 2017 01:20
Demo of setting up basic API call
#-------------------------------------------------------------------------------
# Name: canvas_api_demo.py
#
# Purpose: Sample Program to use Python 3.6 to make Canvas API calls
#
# Author: jdammeier
#-------------------------------------------------------------------------------
import requests, json
from pprint import pprint
from urllib.request import Request, urlopen
@jbdammeier
jbdammeier / canvas_api_demo.py
Created September 26, 2017 01:17
Demo of setting up basic API call
#-------------------------------------------------------------------------------
# Name: canvas_api_demo.py
# Purpose: Sample Program to use Pyhton 3.6 to make Canvas API call
#
# Author: jdammeier
#
# Created: 9/24/2017
# Copyright: (c) jdammeier 2017
# Licence: <your licence>
#-------------------------------------------------------------------------------