Skip to content

Looks within Google Spreadsheets located in a specific Google Drive folder to retrieve and parse Chinese Club attendance data.

Notifications You must be signed in to change notification settings

randofan/AttendanceReport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AttendanceReport

Each semester, Chinese Club must determine which club members have attended the three meetings required to maintain member status. Each meeting's attendance is tracked in Google Sheets located in a Google Drive folder.

Built with Maven, this Java project uses both the Google Drive and Google Sheets API to first get all the file IDs of the Google Sheets from the folder and then individually go into each sheets file and parse the member's names. From there, it stores each member in a HashMap, with their values corresponding to how many meetings they've attended. Afterwards, it tallies which members have attended the minimum requirement and prints their names into a text file.

Usage

Run the .jar file. It will first ask you to sign into the Chinese Club Gmail account and request authorization to access the Google Drive. Once authorized, the program will create a new text file named "Attendance.txt" in the parent directory containing a list of all the members who've attended at least three meetings. In addition, a tokens folders will also be created; this will allow you to reuse this program without needing to re-log into the Chinese Club Gmail account.

Cloning Repository

To run this project locally, you will need to:

  1. Log into the Chinese Club Google account on Google Cloud Platforms.
  2. Open the AttendanceTally project -> Expand in upper-left corner -> APIs & Services -> Credentials -> OAuth 2.0 Client IDs -> download JSON.
  3. Create a new resources folder in project main folder -> move JSON into folder.
  4. Upon first running, it will ask you to log in to the Chinese Club account and allow it to use the APIs. Agree to everything and it will run in your IDE.

About

Looks within Google Spreadsheets located in a specific Google Drive folder to retrieve and parse Chinese Club attendance data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages