Hi David,

You can do something like:

...
service.ProgrammaticLogin()
nick_feed = service.RetrieveAllNicknames()
for nick_entry in nick_feed.entry:
  print nick_entry.nickname.name
  print nick_entry.login.user_name
...

Thanks,

--Tony

On Apr 14, 10:25 pm, David Ruwoldt <[email protected]> wrote:
> Dear All,
>
> I am trying to work out how to retrieve all nick names for each
> account and dump them out so they can then be checked. So far I have
> the below. I can not see how to enumerate over the nicks object and
> dump each user id and their nicks out. I have been looking through the
> API and found the NicknameFeed object class but it is not clear how to
> use the functions to achieve my goal. I get the impression the
> GetNextLink should be used but I have not found an description of how
> this should be used as yet. I am sure it is in there somewhere.
>
> Yours sincerely
>
> David Ruwoldt
>
> #!/usr/bin/python
>
> import sys
> import getopt
> import getpass
> import atom
> import gdata.apps.service
>
> service = gdata.apps.service.AppsService(email="[email protected]",
> domain="mydomain.com", passw
> ord="password")
> service.ProgrammaticLogin()
> nicks = gdata.apps.NicknameFeed
> nicks = service.RetrieveAllNicknames()
> print nicks.total_results
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to