Method: courses.teachers.get
コースの教師を返します。
このメソッドは、次のエラーコードを返します。
PERMISSION_DENIED
: リクエスト元のユーザーが、このコースの教師またはアクセスエラーに関する教師の設定を閲覧することを許可されていない場合。
NOT_FOUND
: リクエストした ID がこのコースの教師にない場合、またはコースが存在しない場合。
HTTP リクエスト
GET https://classroom.googleapis.com/v1/courses/{courseId}/teachers/{userId}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
courseId |
string
コースの ID。この ID は、Classroom で割り当てられた ID または alias のいずれかです。
|
userId |
string
返される教師の ID。ID は次のいずれかです。
- ユーザーの数値識別子
- ユーザーのメールアドレス
- リクエスト元のユーザーを示す文字列リテラル
"me"
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には Teacher
のインスタンスが含まれます。
認証スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/classroom.rosters
https://www.googleapis.com/auth/classroom.rosters.readonly
https://www.googleapis.com/auth/classroom.profile.emails
https://www.googleapis.com/auth/classroom.profile.photos
詳しくは、OAuth 2.0 の概要をご覧ください。
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-03-21 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"必要な情報がない"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"複雑すぎる / 手順が多すぎる"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"最新ではない"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"サンプル / コードに問題がある"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]