Method: courses.courseWorkMaterials.get
コースの課題の資料を返します。
このメソッドは、次のエラーコードを返します。
PERMISSION_DENIED
リクエストしているユーザーに、リクエストされたコースやコース教材へのアクセスを許可されていない場合、またはアクセスエラー。
INVALID_ARGUMENT
: リクエストの形式が正しくない場合。
NOT_FOUND
: リクエストされたコースまたはコースの資料が存在しない場合は表示されます。
HTTP リクエスト
GET https://classroom.googleapis.com/v1/courses/{courseId}/courseWorkMaterials/{id}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
courseId |
string
コースの ID。この ID は、Classroom で割り当てられた ID または alias のいずれかです。
|
id |
string
コースの教材の ID。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には CourseWorkMaterial
のインスタンスが含まれます。
認証スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/classroom.courseworkmaterials
https://www.googleapis.com/auth/classroom.courseworkmaterials.readonly
詳しくは、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":"その他"
}]