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
.
- type CoursesGetResource = "v1" :> ("courses" :> (Capture "id" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Course))))))))))
- coursesGet :: Text -> CoursesGet
- data CoursesGet
- cgXgafv :: Lens' CoursesGet (Maybe Text)
- cgUploadProtocol :: Lens' CoursesGet (Maybe Text)
- cgPp :: Lens' CoursesGet Bool
- cgAccessToken :: Lens' CoursesGet (Maybe Text)
- cgUploadType :: Lens' CoursesGet (Maybe Text)
- cgBearerToken :: Lens' CoursesGet (Maybe Text)
- cgId :: Lens' CoursesGet Text
- cgCallback :: Lens' CoursesGet (Maybe Text)
REST Resource
type CoursesGetResource = "v1" :> ("courses" :> (Capture "id" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" 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.
Eq CoursesGet Source # | |
Data CoursesGet Source # | |
Show CoursesGet Source # | |
Generic CoursesGet Source # | |
GoogleRequest CoursesGet Source # | |
type Rep CoursesGet Source # | |
type Scopes CoursesGet Source # | |
type Rs CoursesGet Source # | |
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").
cgBearerToken :: Lens' CoursesGet (Maybe Text) Source #
OAuth bearer token.
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