google-classroom

How to convert enrollment code to course id?

半世苍凉 提交于 2019-12-13 04:25:54
问题 Is there a way to get a course identifier ( id , course object itself .etc) from an enrollment code with an HTTP request? I don't see any way to do so in the classroom REST API documentation. Similar to scripting a join screen, how do I convert an enrollment code obtained from a GoogleTeacher to a classroom id which I can then use with an API call like GET https://classroom.googleapis.com/v1/courses/id ( Classroom.Courses.get() )? 回答1: there might be no direct way to query courses by the

How to determine if a signed in user is a teacher in google classroom?

家住魔仙堡 提交于 2019-12-13 02:55:23
问题 For the app I am building for elementary schools, teachers can access it by logging into their classroom account, but students cannot. How do I determine if a particular user is a teacher? I noticed that the test teacher account has the permission CREATE_COURSE, but the student does not. Can I assume that is universally true... that if someone has a CREATE_COURSE permission, they are a teacher for some course. 回答1: As you mentioned above, if you send request to userProfiles, with userId, if

Google Apps Script to turn in, grade, and return a Google Classroom Assignment

狂风中的少年 提交于 2019-12-12 12:42:16
问题 As mentioned in the comments below, if only students can turn something in, then I would need to be able to grade and return the assignment even though it had not been turned in yet. To clarify, the assignment was made with the API and I have control over the class and the student. As mentioned in additional comments below, even if you do not return the assignment, the student will still see the assigned grade, which fulfills the goal of this question. Thus, turn-ins and returns are not

New Feature - Update Responses

自作多情 提交于 2019-12-12 03:17:49
问题 We have an internal database ID for each course we have. When using the batch function to create courses, the returned information doesn’t not give us any way to get this ID back so we cannot update our database and let it know that the course has been created. Also updating the deletion response for the same reason would also be handy. The response for a batch of deletes looks like: --batch_123456 {} --batch_123456 --batch_123456 {} --batch_123456 --batch_123456 {} --batch_123456 If they are

Pub Sub Topic not associated with Project error

自闭症网瘾萝莉.ら 提交于 2019-12-11 17:07:55
问题 I'm trying to subscribe to push notifications from Google Classroom using this link and getting the following error. I have created the project, the topic and subscription under the same project and added the service account permissions as noted in the docs. Right now I'm working on this in the API Explorer on this page. I can verify that the topic lives under the developer console project. Are there any other issues that would cause the topic to not be visible in this project? { "error": {

Google Classroom API to get a course details using JavaScript

风流意气都作罢 提交于 2019-12-11 15:43:50
问题 I am new with Google Classroom API and I am trying to get course details on local machine using JavaScript. In my code, I am using function getCourse(course_id) and this is access when I click a button from list of courses. But when I try to run this then there is error occurred with message : Required path parameter id is missing. <!DOCTYPE html> <html> <body> <button id="authorize-button" style="display: none;">Authorize</button> <button id="signout-button" style="display: none;">Sign Out<

Student Submissions - Google Classroom API Apps Script

谁都会走 提交于 2019-12-11 07:58:35
问题 So, I'm trying to use the new StudentSubmissions section of the API to search for student submissions in a particular course. When I try using the "Try It!" portion of the resource page, it works fine, but when I run it in my script, I get the following error: "The caller does not have permission (line 6, file "silo test")" I have also gotten the error "The requested identity does not exist" I am a Super Admin on the domain, this is my course that I am the teacher of, and it should be noted

Accessing Classroom Guardian email addresses

我的未来我决定 提交于 2019-12-11 05:57:08
问题 I am a teacher trying to access guardian emails through the Classroom API to send out periodic progress reports and warnings. It appears that guardian email addresses are only available to domain administrators. Is this true? 回答1: Yes, here is the documentation that answers your question. Who can manage guardians The following table describes the actions that can be performed with respect to guardians, according to the type of user currently authenticated: See the note: Guardian's email

Google Classroom API Create Material

a 夏天 提交于 2019-12-06 15:07:54
问题 I am aware that there are multiple questions essentially asking the same thing, but part of the problem I've identified is a lack of detail in the questions, so I'm going to try here, since I think I've exhausted all possibilities. In the newer Google Classroom, there is a Classwork Tab/Page. This is new, and replaced an older "About" page. In this page, as a regular web user, you can create various materials, including one simply called "Material." This is done by clicking the create button

Google Classroom API Create Material

你说的曾经没有我的故事 提交于 2019-12-04 21:33:25
I am aware that there are multiple questions essentially asking the same thing, but part of the problem I've identified is a lack of detail in the questions, so I'm going to try here, since I think I've exhausted all possibilities. In the newer Google Classroom, there is a Classwork Tab/Page. This is new, and replaced an older "About" page. In this page, as a regular web user, you can create various materials, including one simply called "Material." This is done by clicking the create button and choosing "Material". These materials contain any combination of title, description, and attached