能够在Google :: Apis :: ClassroomV1 :: CourseWork类中使用CRUD主题属性吗?

时间:2017-03-13 15:11:36

标签: ruby rest google-classroom

我想知道是否有办法通过Ruby API文档修改以下类的主题: Google::Apis::ClassroomV1::CourseWork

据我所知,2016年8月引入的主题是教师组织他们的流的一种方式: https://support.google.com/edu/classroom/answer/6149237?hl=en

有谁知道某种方式?如果有必要的话,我也可以进行REST调用。

谢谢!

1 个答案:

答案 0 :(得分:0)

查看JSON响应https://developers.google.com/classroom/reference/rest/v1/courses.courseWork。 看起来他们没有添加通过课程更新主题的功能。课程工作

JSON representation
{
  "courseId": string,
  "id": string,
  "title": string,
  "description": string,
  "materials": [
    {
      object(Material)
    }
  ],
  "state": enum(CourseWorkState),
  "alternateLink": string,
  "creationTime": string,
  "updateTime": string,
  "dueDate": {
    object(Date)
  },
  "dueTime": {
    object(TimeOfDay)
  },
  "maxPoints": number,
  "workType": enum(CourseWorkType),
  "associatedWithDeveloper": boolean,
  "submissionModificationMode": enum(SubmissionModificationMode),

  // Union field details can be only one of the following:
  "assignment": {
    object(Assignment)
  },
  "multipleChoiceQuestion": {
    object(MultipleChoiceQuestion)
  },
  // End of list of possible types for union field details.
}