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 topic. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or topic, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or topic does not exist.
See: Google Classroom API Reference for classroom.courses.topics.get
.
Synopsis
- type CoursesTopicsGetResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("topics" :> (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] Topic))))))))))
- coursesTopicsGet :: Text -> Text -> CoursesTopicsGet
- data CoursesTopicsGet
- ctgXgafv :: Lens' CoursesTopicsGet (Maybe Xgafv)
- ctgUploadProtocol :: Lens' CoursesTopicsGet (Maybe Text)
- ctgCourseId :: Lens' CoursesTopicsGet Text
- ctgAccessToken :: Lens' CoursesTopicsGet (Maybe Text)
- ctgUploadType :: Lens' CoursesTopicsGet (Maybe Text)
- ctgId :: Lens' CoursesTopicsGet Text
- ctgCallback :: Lens' CoursesTopicsGet (Maybe Text)
REST Resource
type CoursesTopicsGetResource = "v1" :> ("courses" :> (Capture "courseId" Text :> ("topics" :> (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] Topic)))))))))) Source #
A resource alias for classroom.courses.topics.get
method which the
CoursesTopicsGet
request conforms to.
Creating a Request
Creates a value of CoursesTopicsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CoursesTopicsGet Source #
Returns a topic. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or topic, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or topic does not exist.
See: coursesTopicsGet
smart constructor.
Instances
Request Lenses
ctgUploadProtocol :: Lens' CoursesTopicsGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ctgCourseId :: Lens' CoursesTopicsGet Text Source #
Identifier of the course.
ctgAccessToken :: Lens' CoursesTopicsGet (Maybe Text) Source #
OAuth access token.
ctgUploadType :: Lens' CoursesTopicsGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ctgCallback :: Lens' CoursesTopicsGet (Maybe Text) Source #
JSONP