Downloads all submissions to an assignment from Google Classroom.
- Downloads
only image filesand names them using the student name Has no special way to handle multiple submissions or non-image files
Add options for files other than imagesIf there are multiple submissions, create a file named after the student and place them there, retaining the original file namesAdd way to download files such as Google Docs or Slides, probably using the .export() functionAdd options to export as something other than PDF
- Go to console.developers.google.com and make sure you are logged in with an account that has Google Apps for Education enabled. Basically, if it's your school issued account or the one you log into Google Classroom with, you're good.
- Select the button that says "Enable API". It's blue.
- A list of APIs will pop up. Choose the one called "Google Drive API". You might have to search for it.
- Click it and make sure that it's enabled. If it is, the big blue button near the top will say "DISABLE". If it tells you "A project is needed to enable APIs", click "Create Project and follow the instructions.
- Do steps 3 and 4 for the Google Classroom API. It's called "Google Classroom API".
- Navigate to the credentials tab. On the sidebar on the right, click "Credentials". There's a key next to it.
- Click "Create Credentials". This will open a little drop down tab. Select "OAuth Client ID"
- You should now be in a screen labeled "Create Client ID" and there should be a series of radio buttons labeled "Application Type". If the radio buttons are greyed out and there is a message saying "To create an OAuth client ID, you must first set a product name on the consent screen", click "Configure consent screen" and enter a Product Name.
- Select "Other" and enter a name.
- Hit "Create"
- A dialog will pop up titled "OAuth Client" with boxes for client ID and client secret. Dismiss it by clicking "OK"
- You should be back to the Credentials tab now but there should be something underneath a title that says "OAuth 2.0 client IDs"
- Move the file downloaded in the previous step to the file where this Read Me is located.