Google Classroom API R library

Manages classes, rosters, and invitations in Google Classroom. This is an R package autogenerated via googleAuthR’s Discovery API builder.

The Google Documentation for this API is here.

Authentication

Set the appropriate Google API scopes:

library(googleAuthR)
library(googleclassroom)
options(googleAuthR.scopes.selected = c(
        'https://www.googleapis.com/auth/classroom.push-notifications',
        'https://www.googleapis.com/auth/classroom.rosters', 'https://www.googleapis.com/auth/classroom.topics',
        'https://www.googleapis.com/auth/classroom.topics.readonly',
        'https://www.googleapis.com/auth/classroom.student-submissions.students.readonly',
        'https://www.googleapis.com/auth/classroom.guardianlinks.students.readonly',
        'https://www.googleapis.com/auth/classroom.courses',
        'https://www.googleapis.com/auth/classroom.courses.readonly',
        'https://www.googleapis.com/auth/classroom.announcements',
        'https://www.googleapis.com/auth/classroom.profile.photos',
        'https://www.googleapis.com/auth/classroom.rosters.readonly',
        'https://www.googleapis.com/auth/classroom.announcements.readonly',
        'https://www.googleapis.com/auth/classroom.guardianlinks.students',
        'https://www.googleapis.com/auth/classroom.student-submissions.me.readonly',
        'https://www.googleapis.com/auth/classroom.coursework.students',
        'https://www.googleapis.com/auth/classroom.coursework.students.readonly',
        'https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly',
        'https://www.googleapis.com/auth/classroom.coursework.me.readonly',
        'https://www.googleapis.com/auth/classroom.profile.emails',
        'https://www.googleapis.com/auth/classroom.coursework.me'
        )
)

gar_auth()

See the documentation for the package starting at ?googleclassroom

Useage

The intention is for these auto-generated packages to be used as a basis for proper R packages suitable for CRAN. Fork this package, and then use the generated functions and objects to make what you need. Things you may want to do are:

  • Create parsing functions to make the API responses into more user-friendly forms
  • Create wrapper functions and objects around the API calls into more user-friendly forms
  • Create documentation, vignette’s and examples