Class CanvasService
java.lang.Object
edu.ucsb.cs156.frontiers.services.CanvasService
-
Constructor Summary
ConstructorsConstructorDescriptionCanvasService(com.fasterxml.jackson.databind.ObjectMapper mapper, org.springframework.web.client.RestClient.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptiongetCanvasRoster(Course course) Fetches the roster of students from Canvas for the given course.
-
Constructor Details
-
CanvasService
public CanvasService(com.fasterxml.jackson.databind.ObjectMapper mapper, org.springframework.web.client.RestClient.Builder builder)
-
-
Method Details
-
getCanvasRoster
Fetches the roster of students from Canvas for the given course.- Parameters:
course- the Course entity containing canvasApiToken and canvasCourseId- Returns:
- list of RosterStudent objects from Canvas
-