管理课堂监护人 Api。
Manage Guardians of Classroom Api .
我正在使用教室的管理监护人 api,但出现错误:AttributeError:'Resource' 对象没有属性 'userProfiles'
invitations = self.service.userProfiles().guardianInvitations().list(studentId='esha.dammalapati@somedomain.com').execute()
只是为了关闭这个问题。确保您使用的是有效的电子邮件地址,因为那是 userProfile 所指的地方。
您可以在 userProfiles.get Try-it 中检查您是否使用了有效的电子邮件地址。
我正在使用教室的管理监护人 api,但出现错误:AttributeError:'Resource' 对象没有属性 'userProfiles'
invitations = self.service.userProfiles().guardianInvitations().list(studentId='esha.dammalapati@somedomain.com').execute()
只是为了关闭这个问题。确保您使用的是有效的电子邮件地址,因为那是 userProfile 所指的地方。
您可以在 userProfiles.get Try-it 中检查您是否使用了有效的电子邮件地址。