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 a list of students of this course that the requester is permitted to view. This method returns the following error codes: * `NOT_FOUND` if the course does not exist. * `PERMISSION_DENIED` for access errors.
See: Google Classroom API Reference for classroom.courses.students.list
.
Synopsis
- type CoursesStudentsListResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("students" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListStudentsResponse)))))))))))
- coursesStudentsList :: Text -> CoursesStudentsList
- data CoursesStudentsList
- cslXgafv :: Lens' CoursesStudentsList (Maybe Xgafv)
- cslUploadProtocol :: Lens' CoursesStudentsList (Maybe Text)
- cslCourseId :: Lens' CoursesStudentsList Text
- cslAccessToken :: Lens' CoursesStudentsList (Maybe Text)
- cslUploadType :: Lens' CoursesStudentsList (Maybe Text)
- cslPageToken :: Lens' CoursesStudentsList (Maybe Text)
- cslPageSize :: Lens' CoursesStudentsList (Maybe Int32)
- cslCallback :: Lens' CoursesStudentsList (Maybe Text)
REST Resource
type CoursesStudentsListResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("students" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListStudentsResponse))))))))))) Source #
A resource alias for classroom.courses.students.list
method which the
CoursesStudentsList
request conforms to.
Creating a Request
Creates a value of CoursesStudentsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CoursesStudentsList Source #
Returns a list of students of this course that the requester is permitted to view. This method returns the following error codes: * `NOT_FOUND` if the course does not exist. * `PERMISSION_DENIED` for access errors.
See: coursesStudentsList
smart constructor.
Instances
Request Lenses
cslUploadProtocol :: Lens' CoursesStudentsList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
cslCourseId :: Lens' CoursesStudentsList Text Source #
Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.
cslAccessToken :: Lens' CoursesStudentsList (Maybe Text) Source #
OAuth access token.
cslUploadType :: Lens' CoursesStudentsList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
cslPageToken :: Lens' CoursesStudentsList (Maybe Text) Source #
nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token.
cslPageSize :: Lens' CoursesStudentsList (Maybe Int32) Source #
Maximum number of items to return. Zero means no maximum. The server may return fewer than the specified number of results.
cslCallback :: Lens' CoursesStudentsList (Maybe Text) Source #
JSONP