Search code examples
google-classroom

Are there any watch endpoints for the Google Classroom api?


In the Google Drive API there are "watch" endpoints that allow 3rd parties be notified when there are changes via push notifications.

In particular, I'm trying to keep my service's class roster in sync with Google Classroom, and would like to avoid polling if possible. Are there any such endpoints in Classroom API, or any other way to be notified without polling?


Solution

  • In September 2017, Google introduced push notifications for roster changes. You can now listen to these notifications to get notified when student/teachers are added/removed from the class roster.

    Google 09/2017 update on introducing the feature - https://support.google.com/edu/classroom/answer/6149237?hl=en

    Google Classroom API documentation about Push notifications- https://developers.google.com/classroom/guides/push-notifications