Natalia, Can you please tell us which Java library are you using ?
BTW, consider looking this: http://code.google.com/p/orkut-os-client/ Think the best way to interact with orkut right now, is using 3legged oauth library. -Robson Dantas 2010/11/4 Natalia de Dios <[email protected]> > Hi all, > > I'm trying to get info about my albums and pics from Orkut. I > currently have 2 albums, 5 pics in total. > > When I query for my albums, the code returns just one album. With an > album ID that doesn't correspond to any of mines, a thumbnail > corresponding to my profile photo and it says that the album isn't > empty and has 7 photos (the album owner ID corresponds to mine, is > OK). Then, when I query for pics into that album (using the returned > ID), it returns nothing. > > I tried copying the returned ID on Orkut's URL, but it doesn't find > any album. Also tried to manually insert my real album IDs into the > code for getting the photos, and no photo is returned. Here's my > code: > > > > Request request2 = AlbumsService.getAlbums(); > Response resp2 = client.send(request2); > List<Album> albums = resp2.getEntries(); > > Iterator<Album> i = albums.iterator(); > Album alb; > String id = ""; > while (i.hasNext()){ > alb = (Album)i.next(); > id = alb.getId(); > System.out.println("ID: "+id); > System.out.println("Owner ID: > "+alb.getOwnerId()); > System.out.println("Thumbnail: > "+alb.getThumbnailUrl()); > System.out.println("Size: "+alb.size()); > System.out.println("Empty: > "+alb.isEmpty()+"\n\n"); > } > > > Request request3 = MediaItemsService.getMediaItems(id); > Response resp3 = client.send(request3); > List<MediaItem> photos = resp3.getEntries(); > > Iterator<MediaItem> i2 = photos.iterator(); > MediaItem photo; > while (i2.hasNext()){ > photo = (MediaItem)i2.next(); > System.out.println("Photo: "+photo.THUMBNAIL_URL); > } > > > > Am I missing something?? I'd really appreciate your help with this. > > Thanks in advance. > > -- > You received this message because you are subscribed to the Google Groups > "OpenSocial Application Development" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<opensocial-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/opensocial-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "OpenSocial Application Development" 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/opensocial-api?hl=en.
