Copyright | (c) 2015-2025 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <[email protected]> Toni Cebrián <[email protected]> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | GHC2021 |
Gogol.Classroom.Courses.List
Contents
Description
Returns a list of courses that the requesting user is permitted to view, restricted to those that match the request. Returned courses are ordered by creation time, with the most recently created coming first. This method returns the following error codes: * PERMISSION_DENIED
for access errors. * INVALID_ARGUMENT
if the query argument is malformed. * NOT_FOUND
if any users specified in the query arguments do not exist.
See: Google Classroom API Reference for classroom.courses.list
.
Synopsis
- type ClassroomCoursesListResource = "v1" :> ("courses" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "access_token" Text :> (QueryParam "callback" Text :> (QueryParams "courseStates" CoursesListCourseStates :> (QueryParam "pageSize" Int32 :> (QueryParam "pageToken" Text :> (QueryParam "studentId" Text :> (QueryParam "teacherId" Text :> (QueryParam "uploadType" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListCoursesResponse))))))))))))
- data ClassroomCoursesList = ClassroomCoursesList {}
- newClassroomCoursesList :: ClassroomCoursesList
Resource
type ClassroomCoursesListResource = "v1" :> ("courses" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "access_token" Text :> (QueryParam "callback" Text :> (QueryParams "courseStates" CoursesListCourseStates :> (QueryParam "pageSize" Int32 :> (QueryParam "pageToken" Text :> (QueryParam "studentId" Text :> (QueryParam "teacherId" Text :> (QueryParam "uploadType" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListCoursesResponse)))))))))))) Source #
A resource alias for classroom.courses.list
method which the
ClassroomCoursesList
request conforms to.
Constructing a Request
data ClassroomCoursesList Source #
Returns a list of courses that the requesting user is permitted to view, restricted to those that match the request. Returned courses are ordered by creation time, with the most recently created coming first. This method returns the following error codes: * PERMISSION_DENIED
for access errors. * INVALID_ARGUMENT
if the query argument is malformed. * NOT_FOUND
if any users specified in the query arguments do not exist.
See: newClassroomCoursesList
smart constructor.
Constructors
ClassroomCoursesList | |
Fields
|
Instances
newClassroomCoursesList :: ClassroomCoursesList Source #
Creates a value of ClassroomCoursesList
with the minimum fields required to make a request.