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 course. 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. * `NOT_FOUND` if no course exists with the requested ID.
See: Google Classroom API Reference for classroom.courses.get
.
Synopsis
- type CoursesGetResource = "v1" :> ("courses" :> (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] Course))))))))
- coursesGet :: Text -> CoursesGet
- data CoursesGet
- cgXgafv :: Lens' CoursesGet (Maybe Xgafv)
- cgUploadProtocol :: Lens' CoursesGet (Maybe Text)
- cgAccessToken :: Lens' CoursesGet (Maybe Text)
- cgUploadType :: Lens' CoursesGet (Maybe Text)
- cgId :: Lens' CoursesGet Text
- cgCallback :: Lens' CoursesGet (Maybe Text)
REST Resource
type CoursesGetResource = "v1" :> ("courses" :> (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] Course)))))))) Source #
A resource alias for classroom.courses.get
method which the
CoursesGet
request conforms to.
Creating a Request
:: Text | |
-> CoursesGet |
Creates a value of CoursesGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CoursesGet Source #
Returns a course. 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. * `NOT_FOUND` if no course exists with the requested ID.
See: coursesGet
smart constructor.
Instances
Request Lenses
cgUploadProtocol :: Lens' CoursesGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
cgAccessToken :: Lens' CoursesGet (Maybe Text) Source #
OAuth access token.
cgUploadType :: Lens' CoursesGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
cgId :: Lens' CoursesGet Text Source #
Identifier of the course to return. This identifier can be either the Classroom-assigned identifier or an alias.
cgCallback :: Lens' CoursesGet (Maybe Text) Source #
JSONP