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 the list of topics that the requester is permitted to view. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist.
See: Google Classroom API Reference for classroom.courses.topics.list
.
Synopsis
- type CoursesTopicsListResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("topics" :> (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] ListTopicResponse)))))))))))
- coursesTopicsList :: Text -> CoursesTopicsList
- data CoursesTopicsList
- ctlXgafv :: Lens' CoursesTopicsList (Maybe Xgafv)
- ctlUploadProtocol :: Lens' CoursesTopicsList (Maybe Text)
- ctlCourseId :: Lens' CoursesTopicsList Text
- ctlAccessToken :: Lens' CoursesTopicsList (Maybe Text)
- ctlUploadType :: Lens' CoursesTopicsList (Maybe Text)
- ctlPageToken :: Lens' CoursesTopicsList (Maybe Text)
- ctlPageSize :: Lens' CoursesTopicsList (Maybe Int32)
- ctlCallback :: Lens' CoursesTopicsList (Maybe Text)
REST Resource
type CoursesTopicsListResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("topics" :> (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] ListTopicResponse))))))))))) Source #
A resource alias for classroom.courses.topics.list
method which the
CoursesTopicsList
request conforms to.
Creating a Request
Creates a value of CoursesTopicsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CoursesTopicsList Source #
Returns the list of topics that the requester is permitted to view. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist.
See: coursesTopicsList
smart constructor.
Instances
Request Lenses
ctlUploadProtocol :: Lens' CoursesTopicsList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ctlCourseId :: Lens' CoursesTopicsList Text Source #
Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.
ctlAccessToken :: Lens' CoursesTopicsList (Maybe Text) Source #
OAuth access token.
ctlUploadType :: Lens' CoursesTopicsList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ctlPageToken :: Lens' CoursesTopicsList (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.
ctlPageSize :: Lens' CoursesTopicsList (Maybe Int32) Source #
Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results.
ctlCallback :: Lens' CoursesTopicsList (Maybe Text) Source #
JSONP