Sweet! Thanks a lot. I guess my only question is you refer to
properties that already exist (emailListRecipientFeed.entry,
emailListRecipientEntry.who.email) while the tutorial seems to explain
how to parse any feed from scratch. I guess I don't understand, is
there a reference for the existing methods or properties (whatever
they're called).
many thanks
On Dec 9, 1:36 pm, "Tony (Google)" <[EMAIL PROTECTED]> wrote:
> Hi David,
>
> You probably want to use the service.RetrieveAllRecipients(list_name)
> method if you want to get the members of an email list. The method
> will return a EmailListRecipientFeed object. You will need to get the
> entries out of it by doing something like:
>
> emailListRecipientFeed = service.RetrieveAllRecipients("us-sales-
> team")
>
> for emailListRecipientEntry in emailListRecipientFeed.entry:
> # Get the email
> emailListRecipientEntry.who.email
>
> To better understand the mapping between the atom feed and the data
> object, I suggest you to read the following article:
>
> http://code.google.com/p/gdata-python-client/wiki/WritingDataModelCla...
>
> Thanks,
>
> --Tony
>
> On Dec 8, 7:37 pm, DK05 <[EMAIL PROTECTED]> wrote:
>
> > WARNING: Noob question
>
> > I'm trying to somehow view or print the output of one of the python
> > client examples and I have no clue how to view the RetrieveEmailList()
> > object. I've searched on this forum and have come up with nothing. The
> > examples just say the object is created from an XML feed.
>
> > Is there some kind of method I can use to extract the email addresses
> > in the list? Have never used XML before and have no clue. I've
> > searched this forum and others, and have come up with nothing (or just
> > haven't recognized the answer).
>
> > ############
> > import gdata.apps.service
>
> > service = gdata.apps.service.AppsService(email='[EMAIL PROTECTED]',
> > domain='whatever.com', password='justdoit')
>
> > service.ProgrammaticLogin()
>
> > service.RetrieveEmailList('list')
> > #How do I get the actual members of the list out of this thing!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---