Usually in Python you use one of the helper methods to get a specific <link> element out. If you look in the documentation, for example:
http://code.google.com/apis/picasaweb/developers_guide_python.html You'll notice "GetEditLink()" used on the entry objects to return that entry's edit link. What is an edit link? Well, to answer that you should read up more on the Data APIs and AtomPub: http://code.google.com/apis/gdata/overview.html Cheers, -Jeff On Tue, May 5, 2009 at 9:37 AM, hector...@gmail.com <hector...@gmail.com>wrote: > > Hi, > > Looking for a way to obtain URL information of an album, I found that > AlbumEntry objects contains a list of links. For example, the > following code: > > gd_client = gdata.photos.service.PhotosService() > gd_client.email = 'myu...@gmail.com' > gd_client.password = 'mypass > gd_client.source = 'exampleCo-exampleApp-1' > gd_client.ProgrammaticLogin() > albums = gd_client.GetUserFeed() > for album in albums.entry: > print 'title: %s, number of photos: %s, id: %s' % > (album.title.text, > album.numphotos.text, album.gphoto_id.text) > for a in album.link: > print 'link[].href: %s' % ( a.href) > > produces this output: > ... > title: title here, number of photos: 12, id: 1234567890123456789 > link[].href: > http://picasaweb.google.com/data/feed/api/user/myuser/albumid/1234567890123456789?authkey=somekey > link[].href: http://picasaweb.google.com/myuser/titlehere?authkey=somekey > link[].href: > http://picasaweb.google.com/data/entry/api/user/myuser/albumid/1234567890123456789?authkey=somekey > link[].href: > http://picasaweb.google.com/data/entry/api/user/myuser/albumid/1234567890123456789/1234567897757000?authkey=someykey > link[].href: > http://picasaweb.google.com/data/entry/api/user/myuser/albumid/1234567890123456789/acl?authkey=somekey > .... > > > Is there any document from where I can I find information on the > meaning of these links? I browsed he docs but couldn't find anything. > Looking at the source code, I found the definition of class Link > (AtomBase), but the description of the class does not say what are > those for. > I am new to the google data APIs, any pointer is welcome. > > > Regards, > Hector > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums API" group. To post to this group, send email to Google-Picasa-Data-API@googlegroups.com To unsubscribe from this group, send email to google-picasa-data-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Picasa-Data-API?hl=en -~----------~----~----~----~------~----~------~--~---