Page Summary
-
The Classroom service in Apps Script allows you to use the Google Classroom API to manage courses and rosters.
-
This is an advanced service that requires enabling before use.
-
The Classroom service utilizes the same objects, methods, and parameters as the public Google Classroom API.
-
Sample code is provided to demonstrate listing courses using the service.
manage courses and rosters.
The Classroom service lets you use the Google Classroom API in Google Apps Script. This API gives admins, teachers, and students the ability to view and manage their courses and rosters.
This is an advanced service that must be enabled before use. Follow along with the quickstart for step-by-step instructions on how to get started.
Reference
For detailed information on this service, see the reference documentation for the Classroom API. Like all advanced services in Apps Script, the Classroom service uses the same objects, methods, and parameters as the public API. For more information, see How method signatures are determined.
To report issues and find other support, see the Classroom support guide.
Sample code
The following sample code uses version 1 of the API.
List courses
This sample lists the first ten courses the user has access to.