gogol-classroom-0.0.1: Google Classroom SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Classroom.Courses.List

Contents

Description

Returns a list of courses that the requesting user is permitted to view, restricted to those that match the request. This method returns the following error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the query argument is malformed. * `NOT_FOUND` if any users specified in the query arguments do not exist.

See: Google Classroom API Reference for classroom.courses.list.

Synopsis

REST Resource

type CoursesListResource = "v1" :> ("courses" :> (QueryParam "studentId" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "teacherId" Text :> (QueryParam "bearer_token" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get `[JSON]` ListCoursesResponse))))))))))))) Source

A resource alias for classroom.courses.list method which the CoursesList request conforms to.

Creating a Request

coursesList :: CoursesList Source

Creates a value of CoursesList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CoursesList Source

Returns a list of courses that the requesting user is permitted to view, restricted to those that match the request. This method returns the following error codes: * `PERMISSION_DENIED` for access errors. * `INVALID_ARGUMENT` if the query argument is malformed. * `NOT_FOUND` if any users specified in the query arguments do not exist.

See: coursesList smart constructor.

Request Lenses

clStudentId :: Lens' CoursesList (Maybe Text) Source

Restricts returned courses to those having a student with the specified identifier. 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

clXgafv :: Lens' CoursesList (Maybe Text) Source

V1 error format.

clUploadProtocol :: Lens' CoursesList (Maybe Text) Source

Upload protocol for media (e.g. "raw", "multipart").

clPp :: Lens' CoursesList Bool Source

Pretty-print response.

clUploadType :: Lens' CoursesList (Maybe Text) Source

Legacy upload protocol for media (e.g. "media", "multipart").

clTeacherId :: Lens' CoursesList (Maybe Text) Source

Restricts returned courses to those having a teacher with the specified identifier. 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

clPageToken :: Lens' CoursesList (Maybe Text) Source

nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token.

clPageSize :: Lens' CoursesList (Maybe Int32) Source

Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results.