Google Classroom

Google for Education

Go to site
Explore
/
Apps
/
Google Classroom

Google Classroom API Integrations

Build and run workflows using the Google Classroom API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

With the Google Classroom API, you can manage your Google Classroom classes and coursework. You can also use the API to create and manage announcements, assignments, and student submissions.

Here are some example applications you could build with the Google Classroom API:

  • A course management system that allows teachers to create and manage their courses online
  • An announcement system that allows teachers to post announcements to their classes
  • An assignment management system that allows teachers to create and manage assignments for their classes
  • A student submission system that allows teachers to view and grade student submissions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    google_classroom: {
      type: "app",
      app: "google_classroom",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://www.googleapis.com/oauth2/v1/userinfo`,
      headers: {
        Authorization: `Bearer ${this.google_classroom.$auth.oauth_access_token}`,
      },
    })
  },
})
Get Assignment with Google Classroom API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Google Classroom
 
Try it
Send Message (Advanced) with Discord Webhook API on Assignment Done from Google Classroom API
Google Classroom + Discord Webhook
 
Try it
Get Assignment with Google Classroom API on New Submission from Typeform API
Typeform + Google Classroom
 
Try it
Get Assignment with Google Classroom API on Custom Events from Zoom API
Zoom + Google Classroom
 
Try it
Get Film with SWAPI - Star Wars API on Assignment Done from Google Classroom API
Google Classroom + SWAPI - Star Wars
 
Try it
Assignment Done from the Google Classroom API

Emit new event when an assignment in a course is marked as done.

 
Try it
New Assignment from the Google Classroom API

Emit new event when an assignment is added to a course.

 
Try it
New Due Date from the Google Classroom API

Emit new event when an assignment's due date is created or updated'.

 
Try it
Get Assignment with the Google Classroom API

Retrieve information about an assignment. See the docs here

 
Try it

Authentication

Google Classroom uses OAuth authentication. When you connect your Google Classroom account, Pipedream will open a popup window where you can sign into Google Classroom and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Google Classroom API.

Pipedream requests the following authorization scopes when you connect your account:

https://www.googleapis.com/auth/userinfo.profilehttps://www.googleapis.com/auth/userinfo.emailhttps://www.googleapis.com/auth/classroom.courses.readonlyhttps://www.googleapis.com/auth/classroom.coursework.studentshttps://www.googleapis.com/auth/classroom.coursework.me
OAuth Request Configurations:
  1. authorization
    GEThttps://accounts.google.com/o/oauth2/auth?client_id={{oauth.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=code&scope={{oauth.space_separated_scopes}}&prompt=consent&access_type=offline
  2. accessToken
    POSThttps://oauth2.googleapis.com/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}
  3. refreshToken
    POSThttps://oauth2.googleapis.com/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&grant_type=refresh_token&refresh_token={{oauth.refresh_token}}