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 an announcement. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or announcement, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or announcement does not exist.
See: Google Classroom API Reference for classroom.courses.announcements.get
.
Synopsis
- type CoursesAnnouncementsGetResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("announcements" :> (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] Announcement))))))))))
- coursesAnnouncementsGet :: Text -> Text -> CoursesAnnouncementsGet
- data CoursesAnnouncementsGet
- cagXgafv :: Lens' CoursesAnnouncementsGet (Maybe Xgafv)
- cagUploadProtocol :: Lens' CoursesAnnouncementsGet (Maybe Text)
- cagCourseId :: Lens' CoursesAnnouncementsGet Text
- cagAccessToken :: Lens' CoursesAnnouncementsGet (Maybe Text)
- cagUploadType :: Lens' CoursesAnnouncementsGet (Maybe Text)
- cagId :: Lens' CoursesAnnouncementsGet Text
- cagCallback :: Lens' CoursesAnnouncementsGet (Maybe Text)
REST Resource
type CoursesAnnouncementsGetResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("announcements" :> (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] Announcement)))))))))) Source #
A resource alias for classroom.courses.announcements.get
method which the
CoursesAnnouncementsGet
request conforms to.
Creating a Request
coursesAnnouncementsGet Source #
Creates a value of CoursesAnnouncementsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CoursesAnnouncementsGet Source #
Returns an announcement. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or announcement, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or announcement does not exist.
See: coursesAnnouncementsGet
smart constructor.
Instances
Request Lenses
cagUploadProtocol :: Lens' CoursesAnnouncementsGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
cagCourseId :: Lens' CoursesAnnouncementsGet Text Source #
Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.
cagAccessToken :: Lens' CoursesAnnouncementsGet (Maybe Text) Source #
OAuth access token.
cagUploadType :: Lens' CoursesAnnouncementsGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
cagCallback :: Lens' CoursesAnnouncementsGet (Maybe Text) Source #
JSONP