I have most of the Python client library methods working but I'm having
problems with retrieving all subscribers to an email list. The call
works fine and I believe I calculate the number of recipients
correctly. However, I cannot find the correct object attribute to
retrieve the recipient's information. I'm trying
"listentry.email_list.recipient" but that is not correct. Where can I
find the attribute name or can you just tell me the name?
Here is the code:
try:
emailListRecipientFeed =
service.RetrieveAllRecipients(fields[1])
elistList = emailListRecipientFeed.entry
nrrecipients = len(elistList)
reason = str(nrrecipients) + ","
if (emailListRecipientFeed != ""):
for listentry in elistList:
reason = reason + listentry.email_list.recipient
+ ";"
except gdata.apps.service.AppsForYourDomainException , e:
status="error"
reason=e.reason
And here is the error I receive:
Traceback (most recent call last):
File "./google.py", line 213, in <module>
print listentry.email_list.recipient
AttributeError: 'EmailListRecipientEntry' object has no attribute
'email_list'
Thanks in advance for your response,
Barron
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---