Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Returns course work. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or course work does not exist.
See: Google Classroom API Reference for classroom.courses.courseWork.get
.
Synopsis
- type CoursesCourseWorkGetResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("courseWork" :> (Capture "id" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] CourseWork))))))))))
- coursesCourseWorkGet :: Text -> Text -> CoursesCourseWorkGet
- data CoursesCourseWorkGet
- ccwgXgafv :: Lens' CoursesCourseWorkGet (Maybe Xgafv)
- ccwgUploadProtocol :: Lens' CoursesCourseWorkGet (Maybe Text)
- ccwgCourseId :: Lens' CoursesCourseWorkGet Text
- ccwgAccessToken :: Lens' CoursesCourseWorkGet (Maybe Text)
- ccwgUploadType :: Lens' CoursesCourseWorkGet (Maybe Text)
- ccwgId :: Lens' CoursesCourseWorkGet Text
- ccwgCallback :: Lens' CoursesCourseWorkGet (Maybe Text)
REST Resource
type CoursesCourseWorkGetResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("courseWork" :> (Capture "id" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] CourseWork)))))))))) Source #
A resource alias for classroom.courses.courseWork.get
method which the
CoursesCourseWorkGet
request conforms to.
Creating a Request
Creates a value of CoursesCourseWorkGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CoursesCourseWorkGet Source #
Returns course work. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or course work does not exist.
See: coursesCourseWorkGet
smart constructor.
Instances
Request Lenses
ccwgUploadProtocol :: Lens' CoursesCourseWorkGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ccwgCourseId :: Lens' CoursesCourseWorkGet Text Source #
Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.
ccwgAccessToken :: Lens' CoursesCourseWorkGet (Maybe Text) Source #
OAuth access token.
ccwgUploadType :: Lens' CoursesCourseWorkGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ccwgCallback :: Lens' CoursesCourseWorkGet (Maybe Text) Source #
JSONP