Dodatki do Google Classroom są teraz ogólnie dostępne dla programistów. Więcej informacji znajdziesz w
dokumentacji dodatków.
REST Resource: courses.students
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zasób: Student
Zapis JSON |
{
"courseId": string,
"userId": string,
"profile": {
object (UserProfile )
},
"studentWorkFolder": {
object (DriveFolder )
}
} |
Pola |
courseId |
string
Identyfikator kursu. Tylko do odczytu.
|
userId |
string
Identyfikator użytkownika. Gdy jest określony jako parametr żądania, ten identyfikator może być jednym z tych elementów:
- identyfikator liczbowy użytkownika.
- adres e-mail użytkownika.
- ciąg znaków
"me" wskazujący użytkownika, który wysłał żądanie;
|
profile |
object (UserProfile )
Ogólne informacje o użytkowniku dotyczące ucznia. Tylko do odczytu.
|
studentWorkFolder |
object (DriveFolder )
Informacje o folderze Dysku, w którym znajdują się zadania tego ucznia na potrzeby tego kursu. Jest widoczny tylko dla ucznia i administratorów domeny. Tylko do odczytu.
|
Metody |
|
Dodaje użytkownika jako ucznia zajęć. |
|
Usuwa ucznia z zajęć. |
|
Zwraca ucznia na zajęciach. |
|
Zwraca listę uczniów tego kursu, których dane może wyświetlić osoba przesyłająca żądanie. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],[],null,["# REST Resource: courses.students\n\n- [Resource: Student](#Student)\n - [JSON representation](#Student.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Student\n-----------------\n\nStudent in a course.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"courseId\": string, \"userId\": string, \"profile\": { object (/workspace/classroom/reference/rest/v1/userProfiles#UserProfile) }, \"studentWorkFolder\": { object (/workspace/classroom/reference/rest/v1/DriveFolder) } } ``` |\n\n| Fields ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `courseId` | `string` Identifier of the course. Read-only. |\n| `userId` | `string` Identifier of the user. When specified as a parameter of a request, this identifier can be one of the following: - the numeric identifier for the user - the email address of the user - the string literal `\"me\"`, indicating the requesting user |\n| `profile` | `object (`[UserProfile](/workspace/classroom/reference/rest/v1/userProfiles#UserProfile)`)` Global user information for the student. Read-only. |\n| `studentWorkFolder` | `object (`[DriveFolder](/workspace/classroom/reference/rest/v1/DriveFolder)`)` Information about a Drive Folder for this student's work in this course. Only visible to the student and domain administrators. Read-only. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------|------------------------------------------------------------------------------------|\n| ### [create](/workspace/classroom/reference/rest/v1/courses.students/create) | Adds a user as a student of a course. |\n| ### [delete](/workspace/classroom/reference/rest/v1/courses.students/delete) | Deletes a student of a course. |\n| ### [get](/workspace/classroom/reference/rest/v1/courses.students/get) | Returns a student of a course. |\n| ### [list](/workspace/classroom/reference/rest/v1/courses.students/list) | Returns a list of students of this course that the requester is permitted to view. |"]]