public async Task <Courses> GetAllCoursesAsync(ApiParameters p = null)
 {
     _request.Method   = Method.GET;
     _request.Resource = $"/courses/";
     _oneRosterApi.AddRequestParameters(_request, p);
     return(await _oneRosterApi.ExecuteAsync <Courses>(_request, p));
 }
 public async Task <AcademicSessions> GetAllGradingPeriodsAsync(ApiParameters p = null)
 {
     _request.Method   = Method.GET;
     _request.Resource = $"/gradingPeriods/";
     _oneRosterApi.AddRequestParameters(_request, p);
     return(await _oneRosterApi.ExecuteAsync <AcademicSessions>(_request, p));
 }
Example #3
0
 public async Task <Demographicss> GetAllDemographicsAsync(ApiParameters p = null)
 {
     _request.Method   = Method.GET;
     _request.Resource = $"/demographics/";
     _oneRosterApi.AddRequestParameters(_request, p);
     return(await _oneRosterApi.ExecuteAsync <Demographicss>(_request, p));
 }
Example #4
0
 public async Task <Enrollments> GetAllEnrollmentsAsync(ApiParameters p = null)
 {
     _request.Method   = Method.GET;
     _request.Resource = $"/enrollments/";
     _oneRosterApi.AddRequestParameters(_request, p);
     return(await _oneRosterApi.ExecuteAsync <Enrollments>(_request, p));
 }