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 announcements that the requester is permitted to view. Course students may only view `PUBLISHED` announcements. Course teachers and domain administrators may view all announcements. 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.announcements.list
.
Synopsis
- type CoursesAnnouncementsListResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("announcements" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "orderBy" Text :> (QueryParams "announcementStates" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListAnnouncementsResponse)))))))))))))
- coursesAnnouncementsList :: Text -> CoursesAnnouncementsList
- data CoursesAnnouncementsList
- calXgafv :: Lens' CoursesAnnouncementsList (Maybe Xgafv)
- calUploadProtocol :: Lens' CoursesAnnouncementsList (Maybe Text)
- calOrderBy :: Lens' CoursesAnnouncementsList (Maybe Text)
- calAnnouncementStates :: Lens' CoursesAnnouncementsList [Text]
- calCourseId :: Lens' CoursesAnnouncementsList Text
- calAccessToken :: Lens' CoursesAnnouncementsList (Maybe Text)
- calUploadType :: Lens' CoursesAnnouncementsList (Maybe Text)
- calPageToken :: Lens' CoursesAnnouncementsList (Maybe Text)
- calPageSize :: Lens' CoursesAnnouncementsList (Maybe Int32)
- calCallback :: Lens' CoursesAnnouncementsList (Maybe Text)
REST Resource
type CoursesAnnouncementsListResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("announcements" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "orderBy" Text :> (QueryParams "announcementStates" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListAnnouncementsResponse))))))))))))) Source #
A resource alias for classroom.courses.announcements.list
method which the
CoursesAnnouncementsList
request conforms to.
Creating a Request
coursesAnnouncementsList Source #
Creates a value of CoursesAnnouncementsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CoursesAnnouncementsList Source #
Returns a list of announcements that the requester is permitted to view. Course students may only view `PUBLISHED` announcements. Course teachers and domain administrators may view all announcements. 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: coursesAnnouncementsList
smart constructor.
Instances
Request Lenses
calUploadProtocol :: Lens' CoursesAnnouncementsList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
calOrderBy :: Lens' CoursesAnnouncementsList (Maybe Text) Source #
Optional sort ordering for results. A comma-separated list of fields with an optional sort direction keyword. Supported field is `updateTime`. Supported direction keywords are `asc` and `desc`. If not specified, `updateTime desc` is the default behavior. Examples: `updateTime asc`, `updateTime`
calAnnouncementStates :: Lens' CoursesAnnouncementsList [Text] Source #
Restriction on the `state` of announcements returned. If this argument is left unspecified, the default value is `PUBLISHED`.
calCourseId :: Lens' CoursesAnnouncementsList Text Source #
Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.
calAccessToken :: Lens' CoursesAnnouncementsList (Maybe Text) Source #
OAuth access token.
calUploadType :: Lens' CoursesAnnouncementsList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
calPageToken :: Lens' CoursesAnnouncementsList (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.
calPageSize :: Lens' CoursesAnnouncementsList (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.
calCallback :: Lens' CoursesAnnouncementsList (Maybe Text) Source #
JSONP