Skip to content

dnsge/java-powerschool-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-powerschool-api

Interact with a Powerschool System and view user information

GitHub

Example that lists joey05's assignments in math, and their grades if applicable:

PowerschoolClient client = new DefaultPowerschoolClient("https://url.of.powerschoolinstall");
User joey = client.authenticate("joey05", "joey's_password");

Course mathCourse = joey.newCourseGetter().containsByName("Math").first();

for (Assignment a : mathCourse.getAssignments(GradingPeriod.F1)) {

  System.out.println("Assignment name: " + a.getName());
  
  if (!a.isMissingDetails()) {
    System.out.println(" - Grade:  " + a.getScorePercent() + " (" + a.getScoreLetterGrade() + ")");
  }
  
}

Note

The requests aren't using an actual API, but rather parsing HTML from a webpage retrieved. Results could might vary, but shouldn't if your Powerschool System is a typical install.