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 teacher of a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to view teachers of this course or for access errors. * `NOT_FOUND` if no teacher of this course has the requested ID or if the course does not exist.
See: Google Classroom API Reference for classroom.courses.teachers.get
.
Synopsis
- type CoursesTeachersGetResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("teachers" :> (Capture "userId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Teacher))))))))))
- coursesTeachersGet :: Text -> Text -> CoursesTeachersGet
- data CoursesTeachersGet
- ctgXgafv :: Lens' CoursesTeachersGet (Maybe Xgafv)
- ctgUploadProtocol :: Lens' CoursesTeachersGet (Maybe Text)
- ctgCourseId :: Lens' CoursesTeachersGet Text
- ctgAccessToken :: Lens' CoursesTeachersGet (Maybe Text)
- ctgUploadType :: Lens' CoursesTeachersGet (Maybe Text)
- ctgUserId :: Lens' CoursesTeachersGet Text
- ctgCallback :: Lens' CoursesTeachersGet (Maybe Text)
REST Resource
type CoursesTeachersGetResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("teachers" :> (Capture "userId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Teacher)))))))))) Source #
A resource alias for classroom.courses.teachers.get
method which the
CoursesTeachersGet
request conforms to.
Creating a Request
Creates a value of CoursesTeachersGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CoursesTeachersGet Source #
Returns a teacher of a course. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to view teachers of this course or for access errors. * `NOT_FOUND` if no teacher of this course has the requested ID or if the course does not exist.
See: coursesTeachersGet
smart constructor.
Instances
Request Lenses
ctgUploadProtocol :: Lens' CoursesTeachersGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ctgCourseId :: Lens' CoursesTeachersGet Text Source #
Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.
ctgAccessToken :: Lens' CoursesTeachersGet (Maybe Text) Source #
OAuth access token.
ctgUploadType :: Lens' CoursesTeachersGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ctgUserId :: Lens' CoursesTeachersGet Text Source #
Identifier of the teacher to return. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `"me"`, indicating the requesting user
ctgCallback :: Lens' CoursesTeachersGet (Maybe Text) Source #
JSONP