dnsge / java-powerschool-api

Java interface with a Powerschool website
https://dnsge.github.io/java-powerschool-api/
MIT License
0 stars 0 forks source link
powerschool powerschool-api

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.