Overview

Classes

  • Google_Service_Classroom
  • Google_Service_Classroom_Announcement
  • Google_Service_Classroom_Assignment
  • Google_Service_Classroom_AssignmentSubmission
  • Google_Service_Classroom_Attachment
  • Google_Service_Classroom_ClassroomEmpty
  • Google_Service_Classroom_CloudPubsubTopic
  • Google_Service_Classroom_Course
  • Google_Service_Classroom_CourseAlias
  • Google_Service_Classroom_CourseMaterial
  • Google_Service_Classroom_CourseMaterialSet
  • Google_Service_Classroom_CourseRosterChangesInfo
  • Google_Service_Classroom_Courses_Resource
  • Google_Service_Classroom_CoursesAliases_Resource
  • Google_Service_Classroom_CoursesAnnouncements_Resource
  • Google_Service_Classroom_CoursesCourseWork_Resource
  • Google_Service_Classroom_CoursesCourseWorkStudentSubmissions_Resource
  • Google_Service_Classroom_CoursesStudents_Resource
  • Google_Service_Classroom_CoursesTeachers_Resource
  • Google_Service_Classroom_CoursesTopics_Resource
  • Google_Service_Classroom_CourseWork
  • Google_Service_Classroom_CourseWorkChangesInfo
  • Google_Service_Classroom_Date
  • Google_Service_Classroom_DriveFile
  • Google_Service_Classroom_DriveFolder
  • Google_Service_Classroom_Feed
  • Google_Service_Classroom_Form
  • Google_Service_Classroom_GlobalPermission
  • Google_Service_Classroom_GradeHistory
  • Google_Service_Classroom_Guardian
  • Google_Service_Classroom_GuardianInvitation
  • Google_Service_Classroom_IndividualStudentsOptions
  • Google_Service_Classroom_Invitation
  • Google_Service_Classroom_Invitations_Resource
  • Google_Service_Classroom_Link
  • Google_Service_Classroom_ListAnnouncementsResponse
  • Google_Service_Classroom_ListCourseAliasesResponse
  • Google_Service_Classroom_ListCoursesResponse
  • Google_Service_Classroom_ListCourseWorkResponse
  • Google_Service_Classroom_ListGuardianInvitationsResponse
  • Google_Service_Classroom_ListGuardiansResponse
  • Google_Service_Classroom_ListInvitationsResponse
  • Google_Service_Classroom_ListStudentsResponse
  • Google_Service_Classroom_ListStudentSubmissionsResponse
  • Google_Service_Classroom_ListTeachersResponse
  • Google_Service_Classroom_ListTopicResponse
  • Google_Service_Classroom_Material
  • Google_Service_Classroom_ModifyAnnouncementAssigneesRequest
  • Google_Service_Classroom_ModifyAttachmentsRequest
  • Google_Service_Classroom_ModifyCourseWorkAssigneesRequest
  • Google_Service_Classroom_ModifyIndividualStudentsOptions
  • Google_Service_Classroom_MultipleChoiceQuestion
  • Google_Service_Classroom_MultipleChoiceSubmission
  • Google_Service_Classroom_Name
  • Google_Service_Classroom_ReclaimStudentSubmissionRequest
  • Google_Service_Classroom_Registration
  • Google_Service_Classroom_Registrations_Resource
  • Google_Service_Classroom_ReturnStudentSubmissionRequest
  • Google_Service_Classroom_SharedDriveFile
  • Google_Service_Classroom_ShortAnswerSubmission
  • Google_Service_Classroom_StateHistory
  • Google_Service_Classroom_Student
  • Google_Service_Classroom_StudentSubmission
  • Google_Service_Classroom_SubmissionHistory
  • Google_Service_Classroom_Teacher
  • Google_Service_Classroom_TimeOfDay
  • Google_Service_Classroom_Topic
  • Google_Service_Classroom_TurnInStudentSubmissionRequest
  • Google_Service_Classroom_UserProfile
  • Google_Service_Classroom_UserProfiles_Resource
  • Google_Service_Classroom_UserProfilesGuardianInvitations_Resource
  • Google_Service_Classroom_UserProfilesGuardians_Resource
  • Google_Service_Classroom_YouTubeVideo
  • Overview
  • Class
  • Tree

Class Google_Service_Classroom_UserProfilesGuardians_Resource

The "guardians" collection of methods. Typical usage is:

 $classroomService = new Google_Service_Classroom(...);
 $guardians = $classroomService->guardians;
Google_Service_Resource
Extended by Google_Service_Classroom_UserProfilesGuardians_Resource
Located at Classroom.php
Methods summary
public Google_Service_Classroom_ClassroomEmpty
# delete( string $studentId, string $guardianId, array $optParams = array() )

Deletes a guardian.

Deletes a guardian.

The guardian will no longer receive guardian notifications and the guardian will no longer be accessible via the API.

This method returns the following error codes:

  • PERMISSION_DENIED if no user that matches the provided student_id is

visible to the requesting user, if the requesting user is not permitted to manage guardians for the student identified by the student_id, if guardians are not enabled for the domain in question, or for other access errors. * INVALID_ARGUMENT if a student_id is specified, but its format cannot be recognized (it is not an email address, nor a student_id from the API). * NOT_FOUND if the requesting user is permitted to modify guardians for the requested student_id, but no Guardian record exists for that student with the provided guardian_id. (guardians.delete)

Parameters

$studentId
The student whose guardian is to be deleted. One of the following: * the numeric identifier for the user * the email address of the user * the string literal <code>"me"</code>, indicating the requesting user
$guardianId
The <code>id</code> field from a <code>Guardian</code>.
$optParams
Optional parameters.

Returns

Google_Service_Classroom_ClassroomEmpty
Google_Service_Classroom_ClassroomEmpty
public Google_Service_Classroom_Guardian
# get( string $studentId, string $guardianId, array $optParams = array() )

Returns a specific guardian.

Returns a specific guardian.

This method returns the following error codes:

  • PERMISSION_DENIED if no user that matches the provided student_id is

visible to the requesting user, if the requesting user is not permitted to view guardian information for the student identified by the student_id, if guardians are not enabled for the domain in question, or for other access errors. * INVALID_ARGUMENT if a student_id is specified, but its format cannot be recognized (it is not an email address, nor a student_id from the API, nor the literal string me). * NOT_FOUND if the requesting user is permitted to view guardians for the requested student_id, but no Guardian record exists for that student that matches the provided guardian_id. (guardians.get)

Parameters

$studentId
The student whose guardian is being requested. One of the following: * the numeric identifier for the user * the email address of the user * the string literal <code>"me"</code>, indicating the requesting user
$guardianId
The <code>id</code> field from a <code>Guardian</code>.
$optParams
Optional parameters.

Returns

Google_Service_Classroom_Guardian
Google_Service_Classroom_Guardian
public Google_Service_Classroom_ListGuardiansResponse
# listUserProfilesGuardians( string $studentId, array $optParams = array() )

Returns a list of guardians that the requesting user is permitted to view, restricted to those that match the request.

Returns a list of guardians that the requesting user is permitted to view, restricted to those that match the request.

To list guardians for any student that the requesting user may view guardians for, use the literal character - for the student ID.

This method returns the following error codes:

  • PERMISSION_DENIED if a student_id is specified, and the requesting

user is not permitted to view guardian information for that student, if "-" is specified as the student_id and the user is not a domain administrator, if guardians are not enabled for the domain in question, if the invited_email_address filter is set by a user who is not a domain administrator, or for other access errors. * INVALID_ARGUMENT if a student_id is specified, but its format cannot be recognized (it is not an email address, nor a student_id from the API, nor the literal string me). May also be returned if an invalid page_token is provided. * NOT_FOUND if a student_id is specified, and its format can be recognized, but Classroom has no record of that student. (guardians.listUserProfilesGuardians)

Parameters

$studentId
Filter results by the student who the guardian is linked to. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal <code>"me"</code>, indicating the requesting user * the string literal <code>"-"</code>, indicating that results should be returned for all students that the requesting user has access to view.
$optParams
Optional parameters.

Returns

Google_Service_Classroom_ListGuardiansResponse
Google_Service_Classroom_ListGuardiansResponse

Opt_param

string pageToken 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.
string invitedEmailAddress Filter results by the email address that the original invitation was sent to, resulting in this guardian link. This filter can only be used by domain administrators.
int pageSize 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.
© 2020 Google Inc.
Google Classroom API documentation generated by ApiGen 2.8.0