I am using python to retrieve a userentries information. For some reason I can obtain some parts but not others. I can obtain the entry.category but not the entry.category.scheme
More importantly I want to be able to grab a userEntries agreedToTerms attribute and return it.
userEntry = gc.service.RetrieveUser(username)
print userEntry.login
print userEntry.login.admin
print userEntry.login.suspended
print userEntry.login. agreedToTerms
<?xml version='1.0' encoding='UTF-8'?>
<ns0:login admin="false" agreedToTerms="true" changePasswordAtNextLogin="false" ipWhitelisted="false" suspended="false" userName="username" xmlns:ns0="
http://schemas.google.com/apps/2006" />
false
false
Traceback (most recent call last):
File "example.fail", line 14, in ?
print userEntry.login. agreedToTerms
AttributeError: 'Login' object has no attribute 'agreedToTerms'
What am I doing wrong?
-DN