Dodatki do Google Classroom są teraz ogólnie dostępne dla programistów. Więcej informacji znajdziesz w
dokumentacji dodatków.
REST Resource: courses.teachers
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zasób: Nauczyciel
Nauczyciel prowadzący zajęcia.
Zapis JSON |
{
"courseId": string,
"userId": string,
"profile": {
object (UserProfile )
}
} |
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 dla nauczyciela. Tylko do odczytu.
|
Metody |
|
tworzy nauczyciela kursu. |
|
powoduje usunięcie określonego nauczyciela z określonych zajęć; |
|
Zwraca nauczyciela zajęć. |
|
Zwraca listę nauczycieli prowadzących te zajęcia, których dane może wyświetlić osoba przesyłająca prośbę. |
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.teachers\n\n- [Resource: Teacher](#Teacher)\n - [JSON representation](#Teacher.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Teacher\n-----------------\n\nTeacher of a course.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"courseId\": string, \"userId\": string, \"profile\": { object (/workspace/classroom/reference/rest/v1/userProfiles#UserProfile) } } ``` |\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 teacher. Read-only. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------|------------------------------------------------------------------------------------|\n| ### [create](/workspace/classroom/reference/rest/v1/courses.teachers/create) | Creates a teacher of a course. |\n| ### [delete](/workspace/classroom/reference/rest/v1/courses.teachers/delete) | Removes the specified teacher from the specified course. |\n| ### [get](/workspace/classroom/reference/rest/v1/courses.teachers/get) | Returns a teacher of a course. |\n| ### [list](/workspace/classroom/reference/rest/v1/courses.teachers/list) | Returns a list of teachers of this course that the requester is permitted to view. |"]]